MMSTCPClient Class Reference

#include <mmstcpclient.h>

List of all members.


Public Member Functions

 MMSTCPClient (string host="0.0.0.0", unsigned int port=9999)
void setAddress (string &host, unsigned int port)
void setAddress (const char *host, unsigned int port)
bool isConnected ()
bool connectToServer ()
bool disconnectFromServer ()
bool sendString (string rbuf)
bool receiveString (string *abuf)
bool receiveString (string *abuf, int buflen)
bool peekString (string *abuf, int buflen)
bool sendAndReceive (string rbuf, string *abuf)

Private Attributes

string host
string hostip
unsigned int port
int s

Detailed Description

Definition at line 40 of file mmstcpclient.h.


Constructor & Destructor Documentation

MMSTCPClient::MMSTCPClient ( string  host = "0.0.0.0",
unsigned int  port = 9999 
)

Definition at line 42 of file mmstcpclient.cpp.


Member Function Documentation

void MMSTCPClient::setAddress ( string &  host,
unsigned int  port 
)

Definition at line 222 of file mmstcpclient.cpp.

void MMSTCPClient::setAddress ( const char *  host,
unsigned int  port 
)

Definition at line 227 of file mmstcpclient.cpp.

bool MMSTCPClient::isConnected (  ) 

Definition at line 48 of file mmstcpclient.cpp.

bool MMSTCPClient::connectToServer (  ) 

Definition at line 52 of file mmstcpclient.cpp.

bool MMSTCPClient::disconnectFromServer (  ) 

Definition at line 93 of file mmstcpclient.cpp.

bool MMSTCPClient::sendString ( string  rbuf  ) 

Definition at line 100 of file mmstcpclient.cpp.

bool MMSTCPClient::receiveString ( string *  abuf  ) 

Definition at line 127 of file mmstcpclient.cpp.

bool MMSTCPClient::receiveString ( string *  abuf,
int  buflen 
)

Definition at line 148 of file mmstcpclient.cpp.

bool MMSTCPClient::peekString ( string *  abuf,
int  buflen 
)

Definition at line 177 of file mmstcpclient.cpp.

bool MMSTCPClient::sendAndReceive ( string  rbuf,
string *  abuf 
)

Definition at line 200 of file mmstcpclient.cpp.


Member Data Documentation

string MMSTCPClient::host [private]

Definition at line 42 of file mmstcpclient.h.

string MMSTCPClient::hostip [private]

Definition at line 43 of file mmstcpclient.h.

unsigned int MMSTCPClient::port [private]

Definition at line 44 of file mmstcpclient.h.

int MMSTCPClient::s [private]

Definition at line 45 of file mmstcpclient.h.


The documentation for this class was generated from the following files: