SockIt

NetworkObject.h

Go to the documentation of this file.
00001 
00027 /*
00028  * NetworkObject.h
00029  *
00030  *  Created on: Jun 10, 2011
00031  *      Author: jtedesco
00032  */
00033 
00034 #ifndef NETWORKOBJECT_H_
00035 #define NETWORKOBJECT_H_
00036 
00037 #include <string>
00038 #include <map>
00039 #include <vector>
00040 #include <queue>
00041 
00042 #include "JSAPIAuto.h"
00043 
00044 using std::string;
00045 using std::vector;
00046 using std::map;
00047 using std::queue;
00048 using std::wstring;
00049 
00050 typedef uint16_t byte;
00051 typedef wstring binary;
00052 
00053 class NetworkObject: public FB::JSAPIAuto
00054 {
00055     public:
00056 
00060         NetworkObject();
00061 
00065         virtual ~NetworkObject() {}
00066 
00071         virtual void shutdown() = 0;
00072 
00076         FB_JSAPI_EVENT(error, 1, (const string &));
00077 
00081         FB_JSAPI_EVENT(close, 0, ());
00082 
00089         FB_JSAPI_EVENT(data, 1, (FB::JSAPIPtr));
00090 };
00091 
00092 #endif /* NETWORKOBJECT_H_ */
 All Classes Files Functions Variables Typedefs Friends Defines