Command Details: Send_To
Category
Extended
Details
Command Code: | 18h |
Valid for: | Instance |
Description
This command sends data to a specified host on an unconnected SOCK-DGRAM-socket. Message segmentation may be used to send up to 1472 bytes (For more information, see appendix For more information, see Message Segmentation).
Command Details
To allow larger amount of data (i.e. >255 bytes) to be sent, the command data may be segmented (For more information, see Message Segmentation).
Field
Contents
Comments
CmdExt[0]
(reserved)
(set to zero)
CmdExt[1]
Segmentation Control
For more information, see Message Segmentation
Data[0]
Host IP address byte 4
The host address/port information shall only be included in the first segment. All data thereafter must start at Data[0]
Data[1]
Host IP address byte 3
Data[2]
Host IP address byte 2
Data[3]
Host IP address byte 1
Data[4]
Host port number (low byte)
Data[5]
Host port number (high byte)
Data[6...n]
Data to send
Response Details
Field
Contents
Comments
CmdExt[0]
(reserved)
(ignore)
CmdExt[1]
Data[0]
Number of sent bytes (low byte)
Only valid in the last segment
Data[1]
Number of sent bytes (high byte)