IXE::io::AbstractSocket Class Reference
Abstract base class for Sockets.
More...
#include <Socket.h>
List of all members.
Public Member Functions |
|
bool | isOpen () const |
| | Returns the open state of the socket.
|
|
void | close () |
| | Closes this socket.
|
| size_t | read (char *buffer, size_t len) |
| | Read up to len bytes into buffer.
|
| size_t | readAll (char *buffer, size_t len) |
| | Read len bytes into buffer.
|
|
size_t | write (char const *buffer, size_t len) |
|
size_t | write (char const *buffer) |
|
size_t | write (std::string s) |
|
SOCKET | socket () |
Protected Member Functions |
|
| AbstractSocket (SOCKET sock=INVALID_SOCKET, InetAddress inetAddress=0, in_port_t port=0) |
|
void | copy (const AbstractSocket &r) |
Protected Attributes |
|
SOCKET | sock |
|
InetAddress | inetAddress |
|
in_port_t | port |
Detailed Description
Abstract base class for Sockets.
Member Function Documentation
| size_t IXE::io::AbstractSocket::read |
( |
char * |
buffer, |
|
|
size_t |
len | |
|
) |
| | |
Read up to len bytes into buffer.
If no messages are available at the socket, wait for a message to arrive, unless the socket is nonblocking.
References close().
Referenced by readAll().
| size_t IXE::io::AbstractSocket::readAll |
( |
char * |
buffer, |
|
|
size_t |
len | |
|
) |
| | |
Read len bytes into buffer.
If no messages are available at the socket, wait for a message to arrive, unless the socket is nonblocking.
References close(), and read().
The documentation for this class was generated from the following files:
- search/ixe/io/Socket.h
- search/ixe/io/Socket.cpp