Definition at line 26 of file EvtSocket.h.
◆ EvtSocketSend()
Definition at line 15 of file EvtSocket.cc.
16{
17 m_sock =
new SocketSend(host.c_str(), (u_short)port);
18 m_recbuf = new char[MAXEVTSIZE];
19}
◆ ~EvtSocketSend()
Definition at line 21 of file EvtSocket.cc.
22{
23 delete m_sock;
24 delete[] m_recbuf;
25}
◆ recv()
Definition at line 33 of file EvtSocket.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 EvtSocket.cc.
48{
49 int stat = m_sock->get(buf, MAXEVTSIZE);
50 return stat;
51}
◆ recv_pxd_buffer()
int recv_pxd_buffer |
( |
char * |
buf | ) |
|
Definition at line 53 of file EvtSocket.cc.
54{
55 int stat = m_sock->get_pxd(buf, MAXEVTSIZE);
56 return stat;
57}
◆ send()
Definition at line 27 of file EvtSocket.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 EvtSocket.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: