This class simplifies the usage of the WinSock API.
More...
#include "Network.hpp"
|
| | WinSockT (unsigned short RequestedVersion=0x0002) |
| | Constructor: Initializes WinSock. More...
|
| |
| | ~WinSockT () |
| | Shuts down WinSock properly by calling WSACleanup(). More...
|
| |
| SOCKET | GetTCPServerSocket (unsigned short PortNr) const |
| | Creates a non-blocking TCP/IP listener socket, that is bound to port PortNr. More...
|
| |
| SOCKET | GetTCPClientSocket (const char *ServerAddress, unsigned short ServerPortNr) const |
| | Creates a non-blocking TCP/IP socket that is connected to ServerPortNr at ServerAddr. More...
|
| |
| SOCKET | GetUDPSocket (unsigned short PortNr) const |
| | Creates a non-blocking UDP socket that is bound to port PortNr. More...
|
| |
This class simplifies the usage of the WinSock API.
| WinSockT::WinSockT |
( |
unsigned short |
RequestedVersion = 0x0002 | ) |
|
Constructor: Initializes WinSock.
- Parameters
-
| RequestedVersion | WinSock version to request. |
- Exceptions
-
Shuts down WinSock properly by calling WSACleanup().
| SOCKET WinSockT::GetTCPClientSocket |
( |
const char * |
ServerAddress, |
|
|
unsigned short |
ServerPortNr |
|
) |
| const |
Creates a non-blocking TCP/IP socket that is connected to ServerPortNr at ServerAddr.
- Parameters
-
| ServerAddress | The server address to connect to. |
| ServerPortNr | The port number number to connect to. |
| SOCKET WinSockT::GetTCPServerSocket |
( |
unsigned short |
PortNr | ) |
const |
Creates a non-blocking TCP/IP listener socket, that is bound to port PortNr.
- Parameters
-
| PortNr | The port number number to bind this listener socket to. |
| SOCKET WinSockT::GetUDPSocket |
( |
unsigned short |
PortNr | ) |
const |
Creates a non-blocking UDP socket that is bound to port PortNr.
- Parameters
-
| PortNr | The port number this UDP socket is bound to. |
The documentation for this class was generated from the following files: