[ee122] my_connect , my_listen ..... etc

Lisa Fowler fowler at eecs.berkeley.edu
Fri Nov 9 19:26:54 PST 2007

Good question.

You use the SOCK_DGRAM to create the unreliable underlying transport
protocol.  Above that is MNL, e.g. you would use the MNL_sendto()
instead of the UDP sendto() --- MNL_sendto() is a wrapper to the UDP

But while there's all of that, the task here is to create a library
that you will use instead of directly interacting with these UDP or
even MNL listen(), etc. notions.  So yes, you are making system call
wrappers.  Your custom library methods (wrappers of the UDP or MNL
functions) will provide the extra features that UDP does *not*

You should ideally make MINIMAL changes to your HTTP client/server by
only changing the TCP calls with calls into your library.

I hope that helps....


On Nov 9, 2007 6:53 PM, Davide Cerri <davide.cerri at gmail.com> wrote:
> hello,
> i am writing to understand why would we have to implement this functions?
> I thought that once i set my socket with SOCK_DGRAM i could use send ,
> listen and receive, normally with the only difference that packages
> would be shipped with UDP.
> Are those functions only a wrapper to the real functions, with the
> only difference that they would read and handle our header?
> thanks
> --
> ~/Davide Cerri
> _______________________________________________
> ee122 mailing list
> ee122 at mailman.ICSI.Berkeley.EDU
> http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/ee122

More information about the ee122 mailing list