#include <udpsocket.h>

Public Member Functions | |
| UDPSocket () | |
| The constructor. | |
| ~UDPSocket () | |
| The destructor. | |
| int | Bind (const char *_address, unsigned short _port) |
| Binds an outbound UDP/IP socket to the specified address and port. | |
| int | Listen (unsigned short _port) |
| Binds an inbound UDP/IP socket on the specified port. | |
Private Member Functions | |
| int | SetAttributes (socket_t _socket) |
| Sets some important attributes on the socket. | |
Used for connectionless UDP/IP communication. Note that this is one-way, and there must be a second UDP/IP socket created for communication in the opposite direction.
| int Bind | ( | const char * | _address, | |
| unsigned short | _port | |||
| ) |
Binds an outbound UDP/IP socket to the specified address and port.
| _address | The remote address to bind to. Can be a hostname, as it will be resolved by gethostbyname(). | |
| _port | The remote port to bind to. |
| int Listen | ( | unsigned short | _port | ) | [virtual] |
Binds an inbound UDP/IP socket on the specified port.
| _port | The port to bind. |
Implements CoreSocket.
| int SetAttributes | ( | socket_t | _socket | ) | [private, virtual] |
Sets some important attributes on the socket.
Will set SO_LINGER and TCP_NODELAY on TCP sockets.
| _socket | The socket to modify. |
Implements CoreSocket.
1.5.8