Socket Class Reference

Inherits std::ostream.

List of all members.

Public Member Functions

 Socket (int socketID)
 Create an incoming server socket.
bool isValid () const
 Check wether the state of the socket is valid or not.
bool dataAvailable ()
 Check wether there is new data available.
std::string readLine ()
 Read a line from the socket.
void close ()
 Close the connection.

Friends

class ::sockbuf

Detailed Description

Definition at line 36 of file socket.hpp.


Constructor & Destructor Documentation

Socket ( int  socketID  ) 

Create an incoming server socket.

Parameters:
port Port to listen on.

Definition at line 141 of file socket.cpp.


Member Function Documentation

void close (  ) 

Close the connection.

Send a nice message to the user.

Definition at line 278 of file socket.cpp.

Referenced by Datasender::breakloop().


The documentation for this class was generated from the following files:
Generated on Thu Dec 23 15:05:29 2010 for OrocosComponentLibrary by  doxygen 1.6.3