#include <SslConnection.h>
Inheritance diagram for SslConnection::
Public Methods | |
SslConnection () | |
virtual | ~SslConnection () |
virtual SocketAddress * | getSocketAddress () |
virtual void | setSocketAddress (SocketAddress *) |
virtual int | connect () |
Connect to the IP address/port that is internally stored in this node. More... | |
virtual void | close () |
Close the stream to this node. More... | |
virtual int | listen () |
Used to accept incoming connections. More... | |
virtual ConnectionInterface * | accept () |
Accept handles incoming connect requests. More... | |
virtual bool | isConnected () |
Return true if we are connected to this Node, false otherwise. More... | |
virtual bool | isConnectedTo (IpAddress ipAddr) |
Return true if this nodes IP address matches the parameter, and we are currently connected to it. More... | |
virtual int | getStream () |
virtual void | setStream (int stream) |
You can only set the stream if it isnt being used. More... | |
virtual int | read (unsigned char *buffer, int bufferSize, int amountToRead=0) |
Read data from the connection. More... | |
virtual int | write (unsigned char *buffer, int amountToWrite) |
Write the data to the stream. More... | |
virtual ConnectionInterface::ObjectType | getConnectionType () |
virtual void | toStream (std::ostream &out) |
Private Attributes | |
ConnectionInterface * | m_connection |
Ssl * | m_sslStream |
ssl descriptor. More... |
Definition at line 23 of file SslConnection.h.
|
Definition at line 8 of file SslConnection.cpp. Referenced by accept().
|
|
Definition at line 14 of file SslConnection.cpp. |
|
Accept handles incoming connect requests. Member function "listen" must be called before this function is called.
Reimplemented from ConnectionInterface. Definition at line 167 of file SslConnection.cpp. |
|
Close the stream to this node.
Reimplemented from ConnectionInterface. Definition at line 204 of file SslConnection.cpp. Referenced by connect(), and ~SslConnection().
|
|
Connect to the IP address/port that is internally stored in this node.
Reimplemented from ConnectionInterface. Definition at line 32 of file SslConnection.cpp. |
|
Reimplemented from ConnectionInterface. Definition at line 22 of file SslConnection.cpp. |
|
Reimplemented from ConnectionInterface. Definition at line 255 of file SslConnection.cpp. Referenced by toStream().
|
|
Reimplemented from ConnectionInterface. Definition at line 221 of file SslConnection.cpp. |
|
Return true if we are connected to this Node, false otherwise.
Reimplemented from ConnectionInterface. Definition at line 230 of file SslConnection.cpp. Referenced by close().
|
|
Return true if this nodes IP address matches the parameter, and we are currently connected to it.
Reimplemented from ConnectionInterface. Definition at line 240 of file SslConnection.cpp. |
|
Used to accept incoming connections. This sets up the socket to listen, but this does not start accepting connections. (It returns immediately)
Reimplemented from ConnectionInterface. Definition at line 154 of file SslConnection.cpp. |
|
Read data from the connection.
Reimplemented from ConnectionInterface. Definition at line 77 of file SslConnection.cpp. |
|
Reimplemented from ConnectionInterface. Definition at line 261 of file SslConnection.cpp. |
|
You can only set the stream if it isnt being used.
Reimplemented from ConnectionInterface. Definition at line 249 of file SslConnection.cpp. |
|
Reimplemented from BasicObject. Definition at line 267 of file SslConnection.cpp. |
|
Write the data to the stream.
Reimplemented from ConnectionInterface. Definition at line 125 of file SslConnection.cpp. |
|
Definition at line 48 of file SslConnection.h. |
|
ssl descriptor.
Definition at line 51 of file SslConnection.h. |