Definition at line 26 of file REvtSocket.h.
◆ REvtSocketRecv()
Definition at line 15 of file REvtSocket.cc.
16{
17 m_sock =
new RSocketRecv(host.c_str(), (u_short)port);
18 m_recbuf = new char[MAXEVTSIZE];
19}
◆ ~REvtSocketRecv()
Definition at line 21 of file REvtSocket.cc.
22{
23 delete m_sock;
24 delete[] m_recbuf;
25}
◆ recv()
Definition at line 33 of file REvtSocket.cc.
34{
35 int stat = m_sock->get(m_recbuf, MAXEVTSIZE);
36 if (stat <= 0) return NULL;
38
39 return evt;
40}
Class to manage streamed object.
◆ recv_buffer()
int recv_buffer |
( |
char * |
buf | ) |
|
Definition at line 47 of file REvtSocket.cc.
48{
49 int stat = m_sock->get(buf, MAXEVTSIZE);
50 return stat;
51}
◆ send()
Definition at line 27 of file REvtSocket.cc.
28{
29
30 return m_sock->put((
char*)msg->
buffer(), msg->
size());
31}
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 42 of file REvtSocket.cc.
43{
44 return m_sock->put(buf, nbytes);
45}
◆ sock()
◆ m_recbuf
◆ m_sock
The documentation for this class was generated from the following files: