Definition at line 47 of file EvtSocket.h.
◆ EvtSocketRecv()
Definition at line 67 of file EvtSocket.cc.
68{
70 m_recbuf = new char[MAXEVTSIZE];
71 if (accept_at_init)
72 m_sock->accept();
73}
◆ ~EvtSocketRecv()
Definition at line 75 of file EvtSocket.cc.
76{
77 delete m_sock;
78 delete[] m_recbuf;
79}
◆ recv()
Definition at line 81 of file EvtSocket.cc.
82{
83 int stat = m_sock->get(m_recbuf, MAXEVTSIZE);
84 if (stat <= 0) return NULL;
86
87 return evt;
88}
Class to manage streamed object.
◆ recv_buffer()
int recv_buffer |
( |
char * |
buf | ) |
|
Definition at line 100 of file EvtSocket.cc.
101{
102 int stat = m_sock->get(buf, MAXEVTSIZE);
103 return stat;
104}
◆ send()
Definition at line 90 of file EvtSocket.cc.
91{
92 return m_sock->put((
char*)msg->
buffer(), msg->
size());
93}
char * buffer()
Get buffer address.
int size() const
Get size of message including headers.
◆ send_buffer()
int send_buffer |
( |
int |
size, |
|
|
char * |
buf |
|
) |
| |
Definition at line 95 of file EvtSocket.cc.
96{
97 return m_sock->put(buf, nbytes);
98}
◆ sock()
◆ m_recbuf
◆ m_sock
The documentation for this class was generated from the following files: