00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040 #ifndef __TCP_HPP__
00041 #define __TCP_HPP__
00042
00043 #include "protocol.hpp"
00044
00045 namespace ipsi
00046 {
00047
00059 struct TCP : public Protocol
00060 {
00061 public:
00062 virtual ~TCP() {};
00063
00070 virtual bool connection ( std::string address, unsigned int port );
00071
00076 virtual bool deconnection ( );
00077
00081 virtual void getInfo ( );
00082
00088 virtual void send ( const char* data, size_t sz );
00089
00098 virtual void receive ( size_t sz, unsigned char* buf, size_t* buf_sz );
00099 };
00100 }
00101
00102 #endif