00001 00014 /* -= TIPI =- */ 00015 00016 #include "com_defs.h" 00017 #ifndef _LCSCOM_H 00018 #define _LCSCOM_H 00019 00020 #define MAXCONN 20 00025 #define MAXSLEEP 128 00026 00027 /* -= FUNZIONI =- */ 00035 serverChannel_t createServerChannel(const char* path); 00036 00043 int closeSocket(serverChannel_t s); 00044 00051 channel_t acceptConnection(serverChannel_t s); 00052 00063 int receiveMessage(channel_t sc, message_t *msg); 00071 int sendMessage(channel_t sc, message_t *msg); 00078 int closeConnection(channel_t sc); 00086 channel_t openConnection(const char* path); 00087 00088 #endif