socket options

Yani Dzhurov <>
Fri Jun 9 13:53:00 CEST 2006


I've been reading through the documentation of inet module, trying to get
familiar with all tcp socket options.

There is sth I don't understand for this one:

 

{packet_size, Integer} (TCP/IP sockets) 

Sets the max allowed length of the packet body. If the packet header
indicates that the length of the packet is longer than the max allowed
length, the packet is considered invalid. The same happens if the packet
header is too big for the socket receive buffer.

 

What does "considered invalid" mean? Is the packet just discarded? Or cause
some error - socket closure for example?

Also what happens when the receive buffer is full? May this cause some
socket error also? Or just waits until any data is read from the buffer and
move on receiving from its peer?

 

Thanks,

 

jani

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20060609/22e46ab1/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3326 bytes
Desc: not available
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20060609/22e46ab1/attachment.bin>


More information about the erlang-questions mailing list