#include <TcpSocket.h>
Public Member Functions | |
TcpSocket () | |
Public constructor. | |
virtual | ~TcpSocket () |
Vitual destructor. | |
common::ErrorCodeType | Open (IpAddress &rIpAddress) |
Opens socket. | |
common::ErrorCodeType | Accept (TcpSocket &rSocket, bool block) |
Accepts connection. | |
common::ErrorCodeType | GetPeerAddress (IpAddress &rAddress) |
Gets peer address. | |
common::ErrorCodeType | Send (const void *pData, size_t byteCount) |
Sends data to socket. | |
common::ErrorCodeType | Receive (void *pData, int maxByteCount, int &rActualByteCount) |
Receives data from socket. | |
common::ErrorCodeType | Close () |
Closes socket. | |
Private Attributes | |
TCPsocket | m_TcpSocket |
Private socket data. | |
Friends | |
class | SocketSet |
Friend of SocketSet. |
TcpSocket | ( | ) |
Public constructor.
~TcpSocket | ( | ) | [virtual] |
Vitual destructor.
common::ErrorCodeType Open | ( | IpAddress & | rIpAddress | ) |
Opens socket.
Failure otherwise.
rIpAddress | Address to open. |
common::ErrorCodeType Accept | ( | TcpSocket & | rSocket, | |
bool | block | |||
) |
Accepts connection.
Failure otherwise.
rSocket | Socket to accept. |
block | True if we want to block. |
common::ErrorCodeType GetPeerAddress | ( | IpAddress & | rAddress | ) |
Gets peer address.
Failure otherwise.
rAddress | Peer address. |
common::ErrorCodeType Send | ( | const void * | pData, | |
size_t | byteCount | |||
) |
Sends data to socket.
Failure otherwise.
pData | Data pointer. |
byteCount | Byte count. |
common::ErrorCodeType Receive | ( | void * | pData, | |
int | maxByteCount, | |||
int & | rActualByteCount | |||
) |
Receives data from socket.
Failure otherwise.
pData | Data pointer. |
maxByteCount | Max byte count. |
rActualByteCount | Actual byte count. |
common::ErrorCodeType Close | ( | ) |
Closes socket.
TCPsocket m_TcpSocket [private] |
Private socket data.
Navigation
Home Page
Screen Shots
Developers
Documentation
Doxygen
Namespace List
Class List
Class Hierarchy
File List
Todo List
Links
SDL Library
License
SourceForge Project
Forums
Download
Regimental Command
Copyright © 2008
Randi J. Relander