Socket Class Reference

#include <mysocket.h>

Inheritance diagram for Socket:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 Socket (int port)
 ~Socket ()
ssize_t Read (std::string &a)
void Write (const std::string &s)
ssize_t Poll ()
void Write (const char *in)

Private Member Functions

void OpenSocket (int port)

Private Attributes

int sock
int conn

Detailed Description

Todo:
The implementation of Socket has to be cleaned. In the moment, the Socket implementation for MingW acts only as client, the unix implementation could act also as server, but is this necessary?

Definition at line 45 of file mysocket.h.


Constructor & Destructor Documentation

Socket::Socket ( int  port  ) 

Definition at line 112 of file mysocket.cpp.

References OpenSocket().

Here is the call graph for this function:

Socket::~Socket (  ) 

Definition at line 116 of file mysocket.cpp.


Member Function Documentation

void Socket::OpenSocket ( int  port  )  [private]

Definition at line 119 of file mysocket.cpp.

References avr_error, conn, and sock.

Referenced by Socket().

Here is the caller graph for this function:

ssize_t Socket::Poll (  ) 

Definition at line 211 of file mysocket.cpp.

References conn.

Referenced by UserInterface::Step().

Here is the caller graph for this function:

ssize_t Socket::Read ( std::string &  a  ) 

Definition at line 85 of file mysocket.cpp.

References conn.

Referenced by UserInterface::Step().

Here is the caller graph for this function:

void Socket::Write ( const char *  in  )  [inline]

Definition at line 65 of file mysocket.h.

References Write().

Here is the call graph for this function:

void Socket::Write ( const std::string &  s  ) 

Reimplemented in UserInterface.

Definition at line 100 of file mysocket.cpp.

References conn.

Referenced by Write().

Here is the caller graph for this function:


Member Data Documentation

int Socket::conn [private]

Definition at line 54 of file mysocket.h.

Referenced by OpenSocket(), Poll(), Read(), and Write().

int Socket::sock [private]

Definition at line 54 of file mysocket.h.

Referenced by OpenSocket().


The documentation for this class was generated from the following files:
Generated on Sun Feb 12 16:53:07 2012 for Simulavr by  doxygen 1.6.3