Interface implementation for server socket wrapper on unix systems. More...
#include <gdb.h>


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] |
Interface implementation for server socket wrapper on unix systems.
Definition at line 96 of file gdb.h.
| GdbServerSocketUnix::GdbServerSocketUnix | ( | int | port | ) |
| GdbServerSocketUnix::~GdbServerSocketUnix | ( | ) |
Definition at line 193 of file gdbserver.cpp.
| void GdbServerSocketUnix::Close | ( | void | ) | [virtual] |
Implements GdbServerSocket.
Definition at line 197 of file gdbserver.cpp.
References CloseConnection(), and sock.

| void GdbServerSocketUnix::CloseConnection | ( | void | ) | [virtual] |
Implements GdbServerSocket.
Definition at line 283 of file gdbserver.cpp.
References conn.
Referenced by Close().

| bool GdbServerSocketUnix::Connect | ( | void | ) | [virtual] |
Implements GdbServerSocket.
Definition at line 256 of file gdbserver.cpp.
| 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.
struct sockaddr_in GdbServerSocketUnix::address[1] [private] |
Definition at line 100 of file gdb.h.
Referenced by Connect(), and GdbServerSocketUnix().
int GdbServerSocketUnix::conn [private] |
the TCP connection from gdb client
Definition at line 99 of file gdb.h.
Referenced by CloseConnection(), Connect(), GdbServerSocketUnix(), ReadByte(), SetBlockingMode(), and Write().
int GdbServerSocketUnix::sock [private] |
socket for listening for a new client
Definition at line 98 of file gdb.h.
Referenced by Close(), Connect(), and GdbServerSocketUnix().
1.6.3