My Project
 All Classes Files Functions Variables Enumerations Enumerator Friends Macros Pages
NetStr.h
Go to the documentation of this file.
1 #ifndef NETSTR_H
2 #define NETSTR_H
3 
11 #include "gcp/util/common/NetReadStr.h"
12 #include "gcp/util/common/NetSendStr.h"
13 
14 namespace gcp {
15  namespace util {
16 
21  class NetStr {
22  public:
23 
27  NetStr();
28 
32  NetStr(int fd, unsigned long readSize, unsigned long sendSize);
33 
37  virtual ~NetStr();
38 
43 
48 
52  void attach(int fd);
53 
57  void setReadBuffer(unsigned int* buffer, unsigned int size);
58 
62  void setSendBuffer(unsigned int* buffer, unsigned int size);
63 
67  int getFd();
68 
72  NetSendStr::NetSendId send();
73 
77  NetReadStr::NetReadId read();
78 
79  private:
80 
81  int fd_;
82  NetReadStr* netReadStr_;
83  NetSendStr* netSendStr_;
84 
85  }; // End class NetStr
86 
87  } // End namespace util
88 } // End namespace gcp
89 
90 
91 #endif // End #ifndef
92 
93 
NetReadStr * getReadStr()
Definition: NetStr.cc:61
Definition: NetSendStr.h:30
int getFd()
Definition: NetStr.cc:103
Definition: NetStr.h:21
void setReadBuffer(unsigned int *buffer, unsigned int size)
Definition: NetStr.cc:87
NetReadStr::NetReadId read()
Definition: NetStr.cc:119
void attach(int fd)
Definition: NetStr.cc:77
NetSendStr * getSendStr()
Definition: NetStr.cc:69
void setSendBuffer(unsigned int *buffer, unsigned int size)
Definition: NetStr.cc:95
NetStr()
Definition: NetStr.cc:12
virtual ~NetStr()
Definition: NetStr.cc:45
Definition: tVideoCapabilitiesEml.cc:67
NetSendStr::NetSendId send()
Definition: NetStr.cc:111
Definition: NetReadStr.h:30