Namespace inet
UDPSendCommand
classControl info for sending data via UDP. To send a packet, send it to the UDP module with kind=UDP_C_SEND and an UDPSendCommand attached.
UDP_C_SEND/UDPSendCommand models both the Unix send() and sendto() calls. If the socket is connected, destAddr/destPort may be left blank (send()), otherwise it must contain the destination for the packet (sendto()).
See also: UDPCommandCode
Extends
Name | Type | Description |
---|---|---|
UDPControlInfo | (unknown -- not in documented files) |
Fields
Name | Type | Description |
---|---|---|
destAddr | L3Address |
destination IPv4 or IPv6 address |
destPort | int |
destination port |
srcAddr | L3Address |
source address |
interfaceId | int |
interface on which the packet must be sent (see InterfaceTable) |
Source code
// // Control info for sending data via UDP. To send a packet, send it to // the ~UDP module with kind=UDP_C_SEND and an ~UDPSendCommand attached. // // UDP_C_SEND/~UDPSendCommand models both the Unix send() and sendto() calls. // If the socket is connected, destAddr/destPort may be left blank (send()), // otherwise it must contain the destination for the packet (sendto()). // // @see ~UDPCommandCode // class UDPSendCommand extends UDPControlInfo { L3Address destAddr; // destination IPv4 or IPv6 address int destPort = -1; // destination port L3Address srcAddr; // source address int interfaceId = -1; // interface on which the packet must be sent (see ~InterfaceTable) }File: src/inet/transportlayer/contract/udp/UDPControlInfo.msg