#include <network_ip_tcp.h>
Static interface to access network functionality.
Public Types | |
| using | ConnectCompletionHandler = NetworkTcpConnectionInterface::ConnectCompletionHandler | 
| using | AcceptCompletionHandler = NetworkTcpServerInterface::AcceptCompletionHandler | 
Static Public Member Functions | |
| static MAXON_METHOD Result< void > | OpenOutgoingConnection (const NetworkIpAddrPort &address, ConnectCompletionHandler handler, const AioServiceRef &ioService, const JobQueueRef &jobQueue) | 
| static MAXON_METHOD Result< NetworkTcpServerRef > | CreateServer (const NetworkIpAddrPort &localAddress, AcceptCompletionHandler handler, const AioServiceRef &ioService, const JobQueueRef &jobQueue) | 
Private Member Functions | |
| MAXON_INTERFACE_NONVIRTUAL (NetworkTcpInterface, MAXON_REFERENCE_NORMAL, "net.maxon.interface.networktcp") | |
      
  | 
  private | 
      
  | 
  static | 
Enqueues an asynchronous TCP connection attempt to the given address. As soon as the attempt is done, the given handler delegate is called.
| [in] | address | Address to connect to. | 
| [in] | handler | Handler delegate. | 
| [in] | ioService | I/O service for the connection. | 
| [in] | jobQueue | Job queue for the connection. | 
      
  | 
  static | 
Creates an asynchronous TCP server bound to the given address. As soon as a connection is incoming, the given handler delegate is called.
| [in] | localAddress | Address to connect to. | 
| [in] | handler | Handler delegate. | 
| [in] | ioService | I/O service for the connection. | 
| [in] | jobQueue | Job queue for the connection. |