server.h

foundation2_fluffos_v1/lib/lib/server.h · 744 B

From the archive foundation2_fluffos_v1.zip

Download the archive   « Back to the archive contents

#ifndef __SERVER_H__
#define __SERVER_H__

class server {
    int Descriptor;
    int Blocking;
    int Closing;
    string *Buffer;
}

int eventCreateSocket(int port);
static void eventServerListenCallback(int fd);
static void eventServerAbortCallback(int fd);
static void eventServerReadCallback(int fd, string str);
static void eventRead(int fd, string str);
static void eventServerWriteCallback(int fd);
varargs void eventWrite(int fd, string str, int close);
static void eventClose(class server sock);
static void eventSocketClosed(int fd);
int eventDestruct();
static void eventNewConnection(int fd);
static void eventSocketError(string str, int x);
function SetRead(function f);
int SetDestructOnClose(int x);

#endif /* __SERVER_H__ */

Site Stats

Snippets: 1791
Codebases: 571