mud/fluffos-2.23-ds03/packages/sockets_spec.c
2020-09-06 05:43:07 -07:00

27 lines
904 B
C

#include "spec.h"
/*
* socket efuns
*/
int socket_create(int, string | function, string | function | void);
int socket_bind(int, int, string | void);
int socket_listen(int, string | function);
int socket_accept(int, string | function, string | function);
int socket_connect(int, string, string | function, string | function);
int socket_write(int, mixed, string | void);
int socket_close(int);
int socket_release(int, object, string | function);
int socket_acquire(int, string | function, string | function, string | function);
string socket_error(int);
string socket_address(int | object, int default: 0);
/*
* ret[0] = (int) fd
* ret[1] = (string) state
* ret[2] = (string) mode
* ret[3] = (string) local address
* ret[4] = (string) remote address
* ret[5] = (object) owner
*/
mixed *socket_status(void | int);