GdbServerSocketUnix Class Reference

Interface implementation for server socket wrapper on unix systems. More...

#include <gdb.h>

Inheritance diagram for GdbServerSocketUnix:
Inheritance graph
[legend]
Collaboration diagram for GdbServerSocketUnix:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 GdbServerSocketUnix (int port)
 ~GdbServerSocketUnix ()
virtual void Close (void)
virtual int ReadByte (void)
virtual void Write (const void *buf, size_t count)
virtual void SetBlockingMode (int mode)
virtual bool Connect (void)
virtual void CloseConnection (void)

Private Attributes

int sock
 socket for listening for a new client
int conn
 the TCP connection from gdb client
struct sockaddr_in address [1]

Detailed Description

Interface implementation for server socket wrapper on unix systems.

Definition at line 96 of file gdb.h.


Constructor & Destructor Documentation

GdbServerSocketUnix::GdbServerSocketUnix ( int  port  ) 

Definition at line 169 of file gdbserver.cpp.

References address, avr_error, conn, and sock.

GdbServerSocketUnix::~GdbServerSocketUnix (  ) 

Definition at line 193 of file gdbserver.cpp.


Member Function Documentation

void GdbServerSocketUnix::Close ( void   )  [virtual]

Implements GdbServerSocket.

Definition at line 197 of file gdbserver.cpp.

References CloseConnection(), and sock.

Here is the call graph for this function:

void GdbServerSocketUnix::CloseConnection ( void   )  [virtual]

Implements GdbServerSocket.

Definition at line 283 of file gdbserver.cpp.

References conn.

Referenced by Close().

Here is the caller graph for this function:

bool GdbServerSocketUnix::Connect ( void   )  [virtual]

Implements GdbServerSocket.

Definition at line 256 of file gdbserver.cpp.

References address, conn, and sock.

int GdbServerSocketUnix::ReadByte ( void   )  [virtual]

Implements GdbServerSocket.

Definition at line 202 of file gdbserver.cpp.

References avr_error, avr_warning, conn, and MAX_READ_RETRY.

void GdbServerSocketUnix::SetBlockingMode ( int  mode  )  [virtual]

Implements GdbServerSocket.

Definition at line 244 of file gdbserver.cpp.

References avr_warning, and conn.

void GdbServerSocketUnix::Write ( const void *  buf,
size_t  count 
) [virtual]

Implements GdbServerSocket.

Definition at line 229 of file gdbserver.cpp.

References avr_error, and conn.


Member Data Documentation

struct sockaddr_in GdbServerSocketUnix::address[1] [private]

Definition at line 100 of file gdb.h.

Referenced by Connect(), and GdbServerSocketUnix().

the TCP connection from gdb client

Definition at line 99 of file gdb.h.

Referenced by CloseConnection(), Connect(), GdbServerSocketUnix(), ReadByte(), SetBlockingMode(), and Write().

socket for listening for a new client

Definition at line 98 of file gdb.h.

Referenced by Close(), Connect(), and GdbServerSocketUnix().


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