sockets_spec.c

ds2.10/fluffos-2.16-ds05/packages/sockets_spec.c · 824 B

From the archive ds2.10.zip

Download the archive   « Back to the archive contents

#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);

Site Stats

Snippets: 1791
Codebases: 571