<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<style>
<!--
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline;}
code
{font-family:"Courier New";}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:Arial;
color:windowtext;}
@page Section1
{size:595.3pt 841.9pt;
margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.Section1
{page:Section1;}
-->
</style>
</head>
<body lang=BG link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-US style='font-size:
10.0pt;font-family:Arial'>I’ve been reading through the documentation of
inet module, trying to get familiar with all tcp socket options.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-US style='font-size:
10.0pt;font-family:Arial'>There is sth I don’t understand for this one:<o:p></o:p></span></font></p>
<p class=MsoNormal><i><font size=2 color=black face="Courier New"><span
lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black;
font-style:italic'><o:p> </o:p></span></font></i></p>
<p class=MsoNormal><i><font size=2 color=black face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New";color:black;font-style:italic'>{packet_size,
Integer}</span></font><font color=black><span style='color:black'> (TCP/IP
sockets) <o:p></o:p></span></font></i></p>
<p class=MsoNormal style='margin-left:72.85pt'><i><font size=3 color=black
face="Times New Roman"><span style='font-size:12.0pt;color:black;font-style:
italic'>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.</span></font></i><i><font color=black><span
lang=EN-US style='color:black;font-style:italic'><o:p></o:p></span></font></i></p>
<p class=MsoNormal style='margin-left:72.85pt'><i><font size=3 color=black
face="Times New Roman"><span lang=EN-US style='font-size:12.0pt;color:black;
font-style:italic'><o:p> </o:p></span></font></i></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-US style='font-size:
10.0pt;font-family:Arial'>What does “considered invalid” mean? Is the
packet just discarded? Or cause some error – socket closure for example?<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-US style='font-size:
10.0pt;font-family:Arial'>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?<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-US style='font-size:
10.0pt;font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-US style='font-size:
10.0pt;font-family:Arial'>Thanks,<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-US style='font-size:
10.0pt;font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-US style='font-size:
10.0pt;font-family:Arial'>jani<o:p></o:p></span></font></p>
</div>
</body>
</html>