Open Ephys GUI
 All Classes Functions Variables
Public Member Functions | Friends
TCPSocket Class Reference

#include <PracticalSocket.h>

Inheritance diagram for TCPSocket:
CommunicatingSocket Socket

List of all members.

Public Member Functions

 TCPSocket () throw (SocketException)
 TCPSocket (const string &foreignAddress, unsigned short foreignPort) throw (SocketException)
- Public Member Functions inherited from CommunicatingSocket
void connect (const string &foreignAddress, unsigned short foreignPort) throw (SocketException)
void send (const void *buffer, int bufferLen) throw (SocketException)
int recv (void *buffer, int bufferLen) throw (SocketException)
string getForeignAddress () throw (SocketException)
unsigned short getForeignPort () throw (SocketException)
- Public Member Functions inherited from Socket
 ~Socket ()
string getLocalAddress () throw (SocketException)
unsigned short getLocalPort () throw (SocketException)
void setLocalPort (unsigned short localPort) throw (SocketException)
void setLocalAddressAndPort (const string &localAddress, unsigned short localPort=0) throw (SocketException)

Friends

class TCPServerSocket

Additional Inherited Members

- Protected Member Functions inherited from CommunicatingSocket
 CommunicatingSocket (int type, int protocol) throw (SocketException)
 CommunicatingSocket (int newConnSD)
- Protected Member Functions inherited from Socket
 Socket (int type, int protocol) throw (SocketException)
 Socket (int sockDesc)

Detailed Description

TCP socket for communication with other TCP sockets


Constructor & Destructor Documentation

TCPSocket::TCPSocket ( ) throw (SocketException)

Construct a TCP socket with no connection

Exceptions:
SocketExceptionthrown if unable to create TCP socket
TCPSocket::TCPSocket ( const string &  foreignAddress,
unsigned short  foreignPort 
) throw (SocketException)

Construct a TCP socket with a connection to the given foreign address and port

Parameters:
foreignAddressforeign address (IP address or name)
foreignPortforeign port
Exceptions:
SocketExceptionthrown if unable to create TCP socket

The documentation for this class was generated from the following file: