#include <POClient.h>
Public Types | |
enum | CLIENT_STATE { CONNECTED, WAIT_CLIST, DISCONNECTED } |
Public Slots | |
void | sendMessage (const POAddress &adr, const POMessage *msg) |
void | sendMessage (const POMessage *msg) |
Signals | |
void | socketConnected (POClient *client) |
void | connectionEstablished (POClient *client) |
void | receivedMessage (const POMessage *msg) |
void | connectionLost (POClient *) |
void | newPOBox (const string &clientname, const string &boxname) |
Public Member Functions | |
POClient (int fd) | |
POClient (const string &host, int port) | |
~POClient () | |
string | getClientName () const |
int | getState () const |
vector< string > | getAllBoxes () const |
|
|
|
Joins an existing socket
|
|
Opens a new socket to the specified host and port, when the socket is connected SocketConnected() will be emited at which point the server will be waiting for a POBoxListMsg from the local PostOffice
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Sends the message regardless of destination
|
|
Assumes that the message->from field has been set and then sees if the remote PostOffice has a mailbox for adr->pobox;
|
|
|