DCSModulesAPI
1.0.0
DCS sub project containing all the control modules as libraries.
|
Network control using sockets. More...
Namespaces | |
Client | |
Client-side handling features. | |
Server | |
Server-side handling features. | |
Classes | |
struct | WindowsSocketInformation |
Typedefs | |
typedef DCS::GenericHandle | Socket |
A generic socket. | |
Functions | |
DCS_API void | Init () |
Initializes the Network module. | |
DCS_API bool | GetStatus () |
Check if the Network module is initilized. | |
DCS_API void | Destroy () |
Destroys the Network module. | |
DCS_INTERNAL_TEST WSADATA | InitWinSock () |
DCS_INTERNAL_TEST void | CleanupWinSock () |
DCS_INTERNAL_TEST SOCKET | CreateServerSocket (i32 listen_port) |
DCS_INTERNAL_TEST SOCKET | CreateClientSocket (const char *host, i32 port) |
DCS_INTERNAL_TEST void | ServerListen (SOCKET server) |
DCS_INTERNAL_TEST SOCKET | ServerAcceptConnection (SOCKET server) |
DCS_INTERNAL_TEST void | CloseSocketConnection (SOCKET client) |
DCS_INTERNAL_TEST bool | ValidateSocket (SOCKET s) |
DCS_INTERNAL_TEST i32 | ReceiveData (SOCKET client, unsigned char *buffer, i32 buff_len) |
DCS_INTERNAL_TEST i32 | SendData (SOCKET client, const unsigned char *buffer, i32 buff_len) |
DCS_INTERNAL_TEST i32 | SendPriorityData (SOCKET client, const unsigned char *buffer, i32 buff_len) |
DCS_INTERNAL_TEST void | GetSocketIpAddress (SOCKET s, char *buffer) |
Network control using sockets.