22.07.2013 Views

Download File

Download File

Download File

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

printf("%s: from %s:UDP%u : %s \n" , argv[0],<br />

inet_ntoa(cliAddr.sin_addr), ntohs(cliAddr.sin_port),msg);<br />

sleep(1);<br />

sendto(sd,msg,n,flags,(struct sockaddr *)&cliAddr,cliLen);<br />

}/* end of server infinite loop */<br />

return 0;<br />

}<br />

/*<br />

Compiling………….<br />

$ cc udp_file_ser.c wrapsock.c -o udp_file_ser<br />

Execution…………..<br />

$ udp_file_ser<br />

*/<br />

NP Lab Manual , RNEC page: 51

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!