lscp_server.h   lscp_server.h 
skipping to change at line 61 skipping to change at line 61
lscp_socket_agent_t udp; lscp_socket_agent_t udp;
lscp_thread_t *pWatchdog; lscp_thread_t *pWatchdog;
int iWatchdog; int iWatchdog;
int iSleep; int iSleep;
} lscp_server_t; } lscp_server_t;
lscp_server_t* lscp_server_create (int iPort, lscp_server_proc_t pfnC allback, void *pvData); lscp_server_t* lscp_server_create (int iPort, lscp_server_proc_t pfnC allback, void *pvData);
lscp_status_t lscp_server_destroy (lscp_server_t *pServer); lscp_status_t lscp_server_destroy (lscp_server_t *pServer);
lscp_status_t lscp_server_broadcast (lscp_server_t *pServer, const char
*pchBuffer, int cchBuffer);
lscp_status_t lscp_server_result (lscp_connect_t *pConnect, const ch ar *pchBuffer, int cchBuffer); lscp_status_t lscp_server_result (lscp_connect_t *pConnect, const ch ar *pchBuffer, int cchBuffer);
lscp_status_t lscp_server_subscribe (lscp_connect_t *pConnect, int iPor t); lscp_status_t lscp_server_subscribe (lscp_connect_t *pConnect, int iPor t);
lscp_status_t lscp_server_unsubscribe (lscp_connect_t *pConnect); lscp_status_t lscp_server_unsubscribe (lscp_connect_t *pConnect);
#if defined(__cplusplus) #if defined(__cplusplus)
} }
#endif #endif
#endif // __LSCP_SERVER_H #endif // __LSCP_SERVER_H
 End of changes. 1 change blocks. 
0 lines changed or deleted 3 lines changed or added


 lscp_socket.h   lscp_socket.h 
skipping to change at line 43 skipping to change at line 43
typedef int lscp_socket_t; typedef int lscp_socket_t;
#define INVALID_SOCKET -1 #define INVALID_SOCKET -1
#define SOCKET_ERROR -1 #define SOCKET_ERROR -1
#define closesocket(s) close(s) #define closesocket(s) close(s)
#endif #endif
#define LSCP_BUFSIZ 1024 #define LSCP_BUFSIZ 1024
void lscp_socket_perror (const char *pszPrefix); void lscp_socket_perror (const char *pszPrefix);
#ifdef DEBUG
void lscp_socket_getopts (lscp_socket_t sock, const char *pszPrefix);
#endif
//------------------------------------------------------------------------- //-------------------------------------------------------------------------
// Threaded socket agent struct helpers. // Threaded socket agent struct helpers.
typedef struct _lscp_socket_agent_t { typedef struct _lscp_socket_agent_t {
lscp_socket_t sock; lscp_socket_t sock;
struct sockaddr_in addr; struct sockaddr_in addr;
lscp_thread_t *pThread; lscp_thread_t *pThread;
int iState; int iState;
 End of changes. 1 change blocks. 
0 lines changed or deleted 4 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/