lscp_socket.h | lscp_socket.h | |||
---|---|---|---|---|
skipping to change at line 44 | skipping to change at line 44 | |||
#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 | #ifdef DEBUG | |||
void lscp_socket_getopts (lscp_socket_t sock, const char *pszPrefix); | void lscp_socket_getopts (const char *pszPrefix, lscp_socket_t sock); | |||
void lscp_socket_trace (const char *pszPrefix, struct sockaddr_in *pAddr, | ||||
const char *pchBuffer, int cchBuffer); | ||||
#endif | #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; | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 3 lines changed or added | |||