#include <gridclienttcpconnection.hpp>
Public Member Functions | |
| GridClientRawSyncTcpConnection () | |
| ~GridClientRawSyncTcpConnection () | |
| virtual void | connect (const std::string &host, int port) |
| virtual void | authenticate (const std::string &clientId, const std::string &creds) |
| virtual std::string | sessionToken () |
| virtual void | send (const GridClientTcpPacket &gridTcpPacket, GridClientTcpPacket &result) |
| virtual void | sendPing () |
| virtual void | close () |
Synchronous raw implementation of TCP connection.
| GridClientRawSyncTcpConnection::GridClientRawSyncTcpConnection | ( | ) |
Non-SSL TCP connection constructor.
| GridClientRawSyncTcpConnection::~GridClientRawSyncTcpConnection | ( | ) |
Destructor.
| virtual void GridClientRawSyncTcpConnection::authenticate | ( | const std::string & | clientId, | |
| const std::string & | creds | |||
| ) | [virtual] |
Authenticate client and store session token for later use.
| clientId | Client ID to authenticate. | |
| creds | Credentials to use. |
Implements GridClientTcpConnection.
| void GridClientRawSyncTcpConnection::close | ( | ) | [virtual] |
Closes connection.
Reimplemented from GridClientConnection.
| virtual void GridClientRawSyncTcpConnection::connect | ( | const std::string & | host, | |
| int | port | |||
| ) | [virtual] |
Connect to a host/port.
| pHost | Host name. | |
| pPort | Port to connect to. |
Implements GridClientTcpConnection.
| void GridClientRawSyncTcpConnection::send | ( | const GridClientTcpPacket & | gridTcpPacket, | |
| GridClientTcpPacket & | result | |||
| ) | [virtual] |
Sends a TCP packet over connection and receives a reply.
| gridTcpPacket | Binary data to send. | |
| result | Binary response. |
Implements GridClientTcpConnection.
| void GridClientRawSyncTcpConnection::sendPing | ( | ) | [virtual] |
Sends a ping packet to the peer.
Sends a TCP ping packet over connection.
Implements GridClientConnection.
| std::string GridClientRawSyncTcpConnection::sessionToken | ( | ) | [virtual] |
Returns session token associated with this connection.
Implements GridClientTcpConnection.
1.7.1