#include <UDPSocket.h>
Inheritance diagram for UDPSocket:
Public Member Functions | |
void | Open (int fd=0) |
void | Send (const DCDT_Msg *msg) |
Send the message msg to the remote end of the connection. | |
void | SendHS (int addr, short port, HSMsgHeader *header, void *payload) |
Send an handshake message to addr:port ( normally a multicast address ). | |
void | Send (DCDT_Msg *msg, const char *dest, short port) |
Send the message msg to the specified address ( addr:port ). | |
void | Send (DCDT_Msg *msg, int addr, short port) |
DCDT_Msg * | Receive () |
Receive a message. | |
void | ReceiveHS (HSMsgHeader *&header, void *&payload) |
Receive a system message. | |
void | MC_Set (int group, int ifaddr) |
Associate us to the multicast group group of the interface ifaddr. | |
Private Attributes | |
int | multi_addr |
short | multi_port |
|
Associate us to the multicast group group of the interface ifaddr.
Definition at line 505 of file UDPSocket.h. References DCDT_TRC_COMM, multi_addr, and TRC_PRINT. Referenced by DCDT_Channel_IP::DynamicPrepare(). |
|
Implements Socket. Definition at line 49 of file UDPSocket.h. References DCDT_TRC_COMM, and TRC_PRINT. Referenced by DCDT_Channel_IP::DynamicPrepare(), DCDT_Channel_IP::Open(), DCDT_Channel_IP::Reopen(), and DCDT_Channel_IP::StaticPrepare(). |
|
Receive a message. Timers precedence: unlocking, receive, lost.
Implements Socket. Definition at line 345 of file UDPSocket.h. References DCDT_MsgHeader, DCDT_TRC_COMM, MAX_PAYLOAD_LEN, MSGHEADER_LEN, DCDT_Msg::ReadPayloadLen(), DCDT_Msg::SetPayload(), and TRC_PRINT. Referenced by DCDT_Channel_IP::Receive(). |
|
Receive a system message. Look only at receive timer. The calling procedure must ensure that there is enought room for the received message header and payload.
Definition at line 432 of file UDPSocket.h. References DCDT_TRC_COMM, HSMsgHeader, HSMSGHEADER_LEN, MAX_HSPAYLOAD_LEN, _HSMsgHeader::payload_len, and TRC_PRINT. Referenced by DCDT_Channel_IP::ReceiveHS(). |
|
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Definition at line 272 of file UDPSocket.h. References DCDT_TRC_COMM, DCDT_Msg::GetHeader(), DCDT_Msg::GetPayload(), MSGHEADER_LEN, DCDT_Msg::ReadPayloadLen(), and TRC_PRINT. |
|
Send the message msg to the specified address ( addr:port ). Timers precedence: unblock, send, lost.
Definition at line 204 of file UDPSocket.h. References DCDT_TRC_COMM, DCDT_Msg::GetHeader(), DCDT_Msg::GetPayload(), MSGHEADER_LEN, DCDT_Msg::ReadPayloadLen(), and TRC_PRINT. |
|
Send the message msg to the remote end of the connection.
Implements Socket. Definition at line 66 of file UDPSocket.h. References DCDT_TRC_COMM, DCDT_Msg::GetHeader(), DCDT_Msg::GetPayload(), MSGHEADER_LEN, DCDT_Msg::ReadPayloadLen(), and TRC_PRINT. Referenced by DCDT_Channel_IP::Open(), DCDT_Channel_IP::Reopen(), and DCDT_Channel_IP::Send(). |
|
Send an handshake message to addr:port ( normally a multicast address ).
Definition at line 131 of file UDPSocket.h. References DCDT_TRC_COMM, HSMsgHeader, _HSMsgHeader::payload_len, and TRC_PRINT. Referenced by DCDT_Channel_IP::SendAnswer(), and DCDT_Channel_IP::SendNotify(). |
|
Definition at line 44 of file UDPSocket.h. Referenced by MC_Set(). |
|
Definition at line 45 of file UDPSocket.h. |