10#ifndef __RTTcpSocket_h__
11#define __RTTcpSocket_h__ included
34 int listen(
int port );
37 int getPrimary(
char * ip_address )
const;
38 static int lookup(
const char * host,
char * ip_address );
39 static int lookup_numeric(
const char * host,
char * ip_address );
41 int connect(
const char * address,
int port );
44 int read(
char *,
int );
45 int write(
const char *,
int );
47 enum State { Closed, Listen, SynSent, Established };
51 int getLocalName(
char *,
int )
const;
52 int getLocalPort(
void )
const;
54 void setMaxPendingConnections(
int);
57 enum { IpAddressSize = 16 };
59 enum { IpAddressSize = 4 };
67 int _max_pending_connections;
70 char _peer_ip[ IpAddressSize ];
73 int try_connect(
void );
Definition: RTIOMonitor.h:24
Definition: RTTcpSocket.h:24