|
|
|
|
Documentation |
|
Main Page Namespace List Class Hierarchy Alphabetical List Compound List File List Namespace Members Compound Members File Members Related Pages Search
NLNET::CUdpSock Class ReferenceCUdpSock: Unreliable datagram socket via UDP.
More...
#include <udp_sock.h>
Inheritance diagram for NLNET::CUdpSock:
List of all members.
Detailed Description
CUdpSock: Unreliable datagram socket via UDP.
See base class CSock. -
Author:
-
Olivier Cado , Nevrax France
-
Date:
-
2000-2001
Definition at line 42 of file udp_sock.h.
Constructor & Destructor Documentation
NLNET::CUdpSock::CUdpSock |
( |
bool |
logging = true |
) |
|
|
|
Constructor.
-
Parameters:
-
logging |
Disable logging if the server socket object is used by the logging system, to avoid infinite recursion |
Definition at line 62 of file udp_sock.cpp.
References NLNET::CSock::createSocket. |
Member Function Documentation
void NLNET::CUdpSock::bind |
( |
uint16 |
port |
) |
|
|
|
Binds the socket to the specified port.
Call bind() for an unreliable socket if the host acts as a server and expects to receive messages. If the host acts as a client, call directly sendTo(), in this case you need not bind the socket.
Definition at line 74 of file udp_sock.cpp.
References addr, and NLNET::CSock::setLocalAddress. |
bool NLNET::CUdpSock::receive |
( |
uint8 * |
buffer, |
|
|
uint32 & |
len, |
|
|
bool |
throw_exception = true |
|
) |
|
|
bool NLNET::CUdpSock::receivedFrom |
( |
uint8 * |
buffer, |
|
|
uint & |
len, |
|
|
CInetAddress & |
addr, |
|
|
bool |
throw_exception = true |
|
) |
|
|
Member Data Documentation
bool NLNET::CUdpSock::_Bound [private]
|
|
The documentation for this class was generated from the following files:
|
|