UPDATED Simple lab programs - TCP, UDP, and MAC programs.. here
(Complete set of updated programs here )
Note:
1. When using recvfrom() in UDP, always initialise the last argument to the sizeof(client structure); Lack of doing so has caused a lot of cryptic errors...
2. Always memset( ) the whole structure before filling in port and IP.
3. PF_INET is to be used in socket( ) calls, and and AF_INET in sin_family.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment