Hi,<br><br>I wrote a sender and a receiver. The sender sends then waits for receiver from the receiver. The receiver waits for receive then send back and ack.<br><br>This is my socket call: socket(PF_INET, SOCK_DGRAM, 0)<br>
Then I set AF_INET for my sockaddr_in as the Beej suggested. <br><br>I tested on localhost instead of ilinux3<br><br>The receiver runs on ilinux3 (the network is localhost), and a macbook, but it doesn&#39;t run on c199. The error returned was: Address family not supported by protocol family.
<br><br>The sender runs fine.<br><br>I tried to use AF_INET for the socket() and AF_INET for sockaddr_in, the problem is the same.<br><br>Can anyone tell me what the problem is?<br><br><div class="gmail_quote">On Dec 5, 2007 10:22 PM,  &lt;
<a href="mailto:vern@cs.berkeley.edu">vern@cs.berkeley.edu</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="Ih2E3d">
&gt; I am just taking packets from the queue and putting them in the buffer<br>&gt; passed in from my_recv.<br><br></div>You should not put them in the buffer passed in to my_recv() unless the<br>data is in-order. &nbsp;That is, your transport protocol needs to manage its
<br>own buffer (for possibly out-of-order arrivals) and only transfers the<br>in-sequence bytestream to the buffer passed in.<br><div><div></div><div class="Wj3C7c"><br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Vern<br>_______________________________________________
<br>ee122 mailing list<br><a href="mailto:ee122@mailman.ICSI.Berkeley.EDU">ee122@mailman.ICSI.Berkeley.EDU</a><br><a href="http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/ee122" target="_blank">http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/ee122
</a><br></div></div></blockquote></div><br><br clear="all"><br>-- <br>Haley Nguyen