SockIt

Client.h

Go to the documentation of this file.
00001 /*
00002  * Client.h
00003  *
00004  *  Created on: Jun 10, 2011
00005  *      Author: jtedesco
00006  */
00007 
00008 #ifndef CLIENT_H_
00009 #define CLIENT_H_
00010 
00011 #include "NetworkObject.h"
00012 
00017 class Client: public NetworkObject
00018 {
00019     public:
00020 
00024         Client();
00025 
00029         virtual ~Client() {}
00030 
00036         virtual void send(const string & data) = 0;
00037 
00043         virtual void send_bytes(const vector<byte> & bytes) = 0;
00044 
00050         virtual string get_host() = 0;
00051 
00057         virtual int get_port() = 0;
00058 
00063         FB_JSAPI_EVENT(resolve, 0, ());
00064 };
00065 
00066 
00067 #endif /* CLIENT_H_ */
 All Classes Files Functions Variables Typedefs Friends Defines