TCP/IP socket connection.  
 More...
#include <tcp_connection.h>
TCP/IP socket connection. 
◆ TCPConnection() [1/3]
      
        
          | clan::TCPConnection::TCPConnection | ( |  | ) |  | 
      
 
 
◆ TCPConnection() [2/3]
      
        
          | clan::TCPConnection::TCPConnection | ( | const SocketName & | endpoint | ) |  | 
      
 
Blocking connect to end point. 
 
 
◆ ~TCPConnection()
      
        
          | clan::TCPConnection::~TCPConnection | ( |  | ) |  | 
      
 
 
◆ TCPConnection() [3/3]
      
        
          | clan::TCPConnection::TCPConnection | ( | const std::shared_ptr< TCPSocket > & | impl | ) |  | 
      
 
 
◆ close()
      
        
          | void clan::TCPConnection::close | ( |  | ) |  | 
      
 
 
◆ get_local_name()
      
        
          | SocketName clan::TCPConnection::get_local_name | ( |  | ) |  | 
      
 
Returns the socket name of the local end point. 
 
 
◆ get_remote_name()
      
        
          | SocketName clan::TCPConnection::get_remote_name | ( |  | ) |  | 
      
 
Returns the socket name of the peer end point. 
 
 
◆ get_socket_handle()
  
  | 
        
          | SocketHandle * clan::TCPConnection::get_socket_handle | ( |  | ) |  |  | overrideprotectedvirtual | 
 
 
◆ init_sockets()
  
  | 
        
          | static void clan::TCPConnection::init_sockets | ( |  | ) |  |  | static | 
 
 
◆ is_null()
  
  | 
        
          | bool clan::TCPConnection::is_null | ( |  | ) | const |  | inline | 
 
Returns true if it is a null object. 
 
 
◆ read()
      
        
          | int clan::TCPConnection::read | ( | void * | data, | 
        
          |  |  | int | size ) | 
      
 
Read data from TCP socket. 
- Returns
- Bytes read, 0 if remote closed connection, or -1 if buffer is empty 
 
 
◆ write()
      
        
          | int clan::TCPConnection::write | ( | const void * | data, | 
        
          |  |  | int | size ) | 
      
 
Write data to TCP socket. 
- Returns
- Bytes written, or -1 if buffer is full 
 
 
The documentation for this class was generated from the following file: