Main Page Class Hierarchy Compound List File List Compound Members File Members

# socket_ew.c File Reference

`#include <stdlib.h>`
`#include <windows.h>`
`#include <earthworm.h>`
`#include <socket_ew.h>`

Go to the source code of this file.

## Defines
#define | SENDALL_MAX_LUMP 1024
## Functions
void | SocketSysInit (void)
void | SocketClose (int soko)
void | SocketPerror (char *note)
int | sendall (int socket, const char *msg, long msgLen, int flags)
int | socketGetError_ew ()
Time_ew | GetTime_ew ()
Time_ew | adjustTimeoutLength (int timeout_msec)
## Variables
int | SOCKET_SYS_INIT = 0

## Define Documentation

#define SENDALL_MAX_LUMP 1024

| Definition at line 86 of file socket_ew.c. Referenced by sendall().

## Function Documentation

Time_ew adjustTimeoutLength | ( | int | timeout_msec | ) |

| Definition at line 139 of file socket_ew.c. Referenced by accept_ew(), recv_all(), recv_ew(), recvfrom_ew(), send_ew(), sendto_ew(), wsWaitAscii(), and wsWaitBinHeader().

Time_ew GetTime_ew | ( |  | ) |

| Definition at line 122 of file socket_ew.c. Referenced by accept_ew(), recv_all(), recv_ew(), recvfrom_ew(), send_ew(), sendto_ew(), wsWaitAscii(), and wsWaitBinHeader().

int sendall | ( | int | socket,
|  | const char * | msg,
|  | long | msgLen,
|  | int | flags
| ) |

| Definition at line 88 of file socket_ew.c. References logit(), and SENDALL_MAX_LUMP.

void SocketClose | ( | int | soko | ) |

| Definition at line 59 of file socket_ew.c. References SocketPerror(). Referenced by wave_inquire(), and wave_request().

int socketGetError_ew | ( |  | ) |

| Definition at line 115 of file socket_ew.c. Referenced by accept_ew(), bind_ew(), closesocket_ew(), connect_ew(), listen_ew(), WormServerBase::Listener(), recv_all(), recv_ew(), recvfrom_ew(), select_ew(), send_ew(), WormServerBase::SendMessage(), sendto_ew(), socket_ew(), SocketPerror(), wsWaitAscii(), and wsWaitBinHeader().

void SocketPerror | ( | char * | note | ) |

| Definition at line 71 of file socket_ew.c. References logit(), and socketGetError_ew(). Referenced by SocketClose(), wave_inquire(), and wave_request().

void SocketSysInit | ( | void |  | ) |

| Definition at line 37 of file socket_ew.c. References logit(), and SOCKET_SYS_INIT. Referenced by socket_ew(), and WormServerBase::WormServerBase().

## Variable Documentation

int SOCKET_SYS_INIT = 0

| Definition at line 28 of file socket_ew.c. Referenced by socket_ew(), and SocketSysInit().