#include "lscp/thread.h"
#include <unistd.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netinet/tcp.h>
#include <arpa/inet.h>
#include <netdb.h>
Go to the source code of this file.
|
void | lscp_socket_perror (const char *pszPrefix) |
|
void | lscp_socket_herror (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) |
|
void | lscp_socket_agent_init (lscp_socket_agent_t *pAgent, lscp_socket_t sock, struct sockaddr_in *pAddr, int cAddr) |
|
lscp_status_t | lscp_socket_agent_start (lscp_socket_agent_t *pAgent, lscp_thread_proc_t pfnProc, void *pvData, int iDetach) |
|
lscp_status_t | lscp_socket_agent_join (lscp_socket_agent_t *pAgent) |
|
lscp_status_t | lscp_socket_agent_free (lscp_socket_agent_t *pAgent) |
|
◆ closesocket
#define closesocket |
( |
|
s | ) |
close(s) |
◆ INVALID_SOCKET
#define INVALID_SOCKET -1 |
◆ LSCP_BUFSIZ
◆ SOCKET_ERROR
◆ lscp_socket_agent_t
◆ lscp_socket_t
◆ lscp_socket_agent_free()
◆ lscp_socket_agent_init()
◆ lscp_socket_agent_join()
◆ lscp_socket_agent_start()
◆ lscp_socket_getopts()
void lscp_socket_getopts |
( |
const char * |
pszPrefix, |
|
|
lscp_socket_t |
sock |
|
) |
| |
◆ lscp_socket_herror()
void lscp_socket_herror |
( |
const char * |
pszPrefix | ) |
|
◆ lscp_socket_perror()
void lscp_socket_perror |
( |
const char * |
pszPrefix | ) |
|
◆ lscp_socket_trace()
void lscp_socket_trace |
( |
const char * |
pszPrefix, |
|
|
struct sockaddr_in * |
pAddr, |
|
|
const char * |
pchBuffer, |
|
|
int |
cchBuffer |
|
) |
| |