|
| NetworkEndpointTCP (NetworkModule *pNetworkModule) |
|
virtual | ~NetworkEndpointTCP () |
|
virtual eError | Close (uint_t bOrderly) |
| Close and dispose of all NetworkEndpointInstance records.
|
|
virtual eError | StartAdvertising (void) |
| Enable listening for broadcast packets.
|
|
virtual eError | StopAdvertising (void) |
| Disable listening for broadcast packets.
|
|
eError | CreateEndpoint (NetworkEndpointInstance::CallbackProc pCallback, const NetAddr_t *pAddress, NetworkEndpointInstance **ppEndpoint, uint_t bCreateSockets, eSocketFlags uSocketFlags, uint_t bPassiveMode, uint32_t uGameID, eOpenType uOpenType) |
|
| NetworkEndpoint (NetworkModule *pNetworkModule) |
| Default constructor.
|
|
virtual | ~NetworkEndpoint () |
| Default destructor.
|
|
NetworkManager * | GetNetworkManager (void) const |
| Return the parent NetworkManager.
|
|
NetworkModule * | GetNetworkModule (void) const |
| Return the parent NetworkModule.
|
|
NetworkEndpointInstance * | GetNetworkEndpointInstance (void) const |
| Return the connected NetworkEndpointInstance.
|
|
void | SetCallback (CallbackProc pCallback) |
| Set the callback function pointer.
|
|
void | SetCallbackContext (void *pContext) |
| Set the callback function's context pointer.
|
|
void | SetOpenType (eOpenType uOpenType) |
|
eOpenType | GetOpenType (void) const |
| Get the open type of the endpoint.
|
|
eNetworkProtocol | GetType (void) const |
| Get the protocol type of the endpoint.
|
|
void | SetState (eState uState) |
|
eState | GetState (void) const |
| Get the state of the endpoint.
|
|
eError | GetInfo (NetworkModuleInfo_t *pOutput) const |
| Get information about the parent NetworkModule.
|
|
eError | GetLocalAddress (String *pOutput) |
| Return the address of the local endpoint instance.
|
|
eError | GetRemoteAddress (String *pOutput) |
| Return the address of the remote endpoint instance.
|
|
eError | NotificationLock (eSocketFlags uFlags) |
| Obtain the endpoint lock.
|
|
eError | NotificationUnlock (eSocketFlags uFlags) |
| Release the endpoint lock.
|
|
eError | AcceptConnection (CallbackProc pCallback, void *pContext, void *pExtra) |
| Try to accept a requested connection.
|
|
eError | RejectConnection (void *pExtra) |
| Reject the connection.
|
|
uint_t | IsAlive (void) |
| Return TRUE if there is an active connection.
|
|
eError | SetTimeOut (uint32_t uTimeout=NetworkEndpointInstance::kDefaultTimeout) |
| Set the timeout in milliseconds.
|
|
virtual eError | Poll (void) noexcept |
| Poll for events.
|
|
eError | Send (uintptr_t *pBytesSent, const void *pData, uintptr_t uDataSize, NetworkEndpointInstance::eBlockMode uMode=NetworkEndpointInstance::kNonBlocking) |
| Send data using guaranteed protocol.
|
|
eError | Receive (uintptr_t *pBytesReceived, void *pData, uintptr_t uDataSize) |
| Receive data using guaranteed protocol.
|
|
eError | SendDatagram (uintptr_t *pBytesSent, const void *pData, uintptr_t uDataSize, NetworkEndpointInstance::eBlockMode uMode=NetworkEndpointInstance::kNonBlocking) |
| Send data using datagram protocol.
|
|
eError | ReceiveDatagram (uintptr_t *pBytesReceived, void *pData, uintptr_t uDataSize) |
| Receive data using non-guaranteed protocol.
|
|