TCPREADHEADER

Aus MCS Wiki AVR
(Unterschied zwischen Versionen)
Wechseln zu: Navigation, Suche
Admin (Diskussion | Beiträge)
(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="...")

Aktuelle Version vom 12. Februar 2013, 18:58 Uhr

Inhaltsverzeichnis

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

UDPREADCONFIG TCPIP , UDPREADHEADER

 

 

Example



Languages   English Deutsch  
Meine Werkzeuge
Namensräume
Varianten
Aktionen
Navigation
In anderen Sprachen
Sprache