TCPREADHEADER/de
From MCS Wiki AVR
< TCPREADHEADER(Difference between revisions)
(Created page with "= <span class="f_Header">Action</span> = This statement reads the TCP packet header from the specified socket. <span style="font-family: Arial;"> </span> <span style="...") |
m (1 revision) |
Latest revision as of 21:16, 15 February 2013
Contents |
= (**COPIED FROM ENGLISH PAGE**) === Action
This statement reads the TCP packet header from the specified socket.
Syntax
TCPREADHEADER socket
Remarks
This option is only available for the W5300 which includes a packet header with the packet size when align is set to 0.
TCP packets start with a 2 byte size header.
After you have read the TCP header, you can use TCPDATASIZE to read the number of bytes available in the packet.
TCPDATASIZE is a word variable you need to dimension yourself.
Socket is a constant or variable in the range from 0-7.
See also
UDPREAD, CONFIG TCPIP , UDPREADHEADER
Example
Languages | English • Deutsch |
---|