#include <ConnectableSocket.h>
Inheritance diagram for ConnectableSocket:
Public Types | |
enum | IoState { state_eof = 0x01, state_failed = 0x02, state_raise_event = 0x04 } |
Public Member Functions | |
std::ostream & | operator<< (std::ostream &stream) const |
void | connectTo (const SocketAddress &address) |
int | read (void *buffer, int bytes) |
int | write (const void *buffer, int bytes) |
bool | isEof () const |
bool | isOk () const |
bool | isGood () const |
bool | eventOnEof () const |
void | eventOnEof (bool flag) |
void | clear () |
int | receiveFrom (SocketAddress &address, void *buffer, int bytes) |
SocketAddress | peerAddress () const |
bool | isConnected () const |
Protected Member Functions | |
ConnectableSocket (SOCKET socketHandle) | |
ConnectableSocket (int type, int domain, int protocol=0) | |
void | connectTo (sockaddr *address, int size) |
bool | getFlags (short mask) const |
Definition at line 35 of file ConnectableSocket.h.
|
Definition at line 39 of file ConnectableSocket.h. |
|
Definition at line 96 of file ConnectableSocket.cpp. |
|
Definition at line 102 of file ConnectableSocket.cpp. |
|
Definition at line 82 of file ConnectableSocket.cpp. References Socket::flags_, and state_raise_event. Referenced by connectTo(). |
|
Definition at line 116 of file ConnectableSocket.cpp. References clear(), Socket::getDescriptor(), and SOCKET_CALL_3. |
|
Definition at line 108 of file ConnectableSocket.cpp. Referenced by SOAPonHTTP::send(). |
|
Definition at line 59 of file ConnectableSocket.cpp. References Socket::flags_, and state_raise_event. |
|
Definition at line 52 of file ConnectableSocket.cpp. References Socket::flags_, and state_raise_event. |
|
Definition at line 89 of file ConnectableSocket.cpp. References Socket::flags_. |
|
Definition at line 150 of file ConnectableSocket.cpp. References peerAddress(). Referenced by operator<<(). |
|
Definition at line 45 of file ConnectableSocket.cpp. References Socket::flags_, and state_eof. Referenced by isGood(). |
|
Definition at line 75 of file ConnectableSocket.cpp. |
|
Definition at line 68 of file ConnectableSocket.cpp. References Socket::flags_, Socket::isOpen(), and state_failed. Referenced by isGood(), and receiveFrom(). |
|
TcpServer Socket library Copyright (c) 2000 Jasen Plietz All rights reserved. No warranties are extended. Use at your own risk. To contact the author with suggestions or comments, use Jasen@plietz.net Reimplemented from Socket. Definition at line 25 of file ConnectableSocket.cpp. References Socket::getDescriptor(), isConnected(), Socket::isOpen(), and peerAddress(). |
|
Definition at line 205 of file ConnectableSocket.cpp. References Socket::getDescriptor(), and SOCKET_CALL_3. Referenced by isConnected(), and operator<<(). |
|
Definition at line 184 of file ConnectableSocket.cpp. References NetworkException::eof_encountered, Socket::flags_, NetworkException::read_failed, socket_error, Socket::socketHandle, state_eof, state_failed, state_raise_event, and NetworkException::throwNetworkException(). Referenced by processSocket(), and SOAPonHTTP::send(). |
|
Definition at line 128 of file ConnectableSocket.cpp. References Socket::flags_, Socket::getDescriptor(), isOk(), SOCKET_CALL_6, and state_failed. |
|
Definition at line 164 of file ConnectableSocket.cpp. References Socket::flags_, socket_error, Socket::socketHandle, state_eof, state_failed, NetworkException::throwNetworkException(), and NetworkException::write_failed. Referenced by SOAPonHTTP::send(). |