Download File

Download File Download File

mycnis.weebly.com
from mycnis.weebly.com More from this publisher
22.07.2013 Views

} argv[0],inet_ntoa(cliAddr.sin_addr), ntohs(cliAddr.sin_port),msg); sleep(1); sendto(sd,msg,n,flags,(struct sockaddr *)&cliAddr,cliLen); }/* end of server infinite loop */ return 0; /* Compiling…………. $CC udp_strrev_ser.c wrapsock.c -o udpstrrevser Execution………….. $udpstrrevser */ NP Lab Manual , RNEC page: 42

Output: [student@localhost ~]$ cc udp_strrev_ser.c wrapsock.c -o udpstrrrevser [student@localhost ~]$ ./udpstrrevser ./ udpstrrevser: waiting for data on port UDP 1500 ./ udpstrrevser: from 169.254.17.41:UDP32782 : iah ./ udpstrrevser: from 169.254.17.41:UDP32782 : woh ./ udpstrrevser: from 169.254.17.41:UDP32782 : era ./ udpstrrevser: from 169.254.17.41:UDP32782 : u NP Lab Manual , RNEC page: 43

Output:<br />

[student@localhost ~]$ cc udp_strrev_ser.c wrapsock.c -o udpstrrrevser<br />

[student@localhost ~]$ ./udpstrrevser<br />

./ udpstrrevser: waiting for data on port UDP 1500<br />

./ udpstrrevser: from 169.254.17.41:UDP32782 : iah<br />

./ udpstrrevser: from 169.254.17.41:UDP32782 : woh<br />

./ udpstrrevser: from 169.254.17.41:UDP32782 : era<br />

./ udpstrrevser: from 169.254.17.41:UDP32782 : u<br />

NP Lab Manual , RNEC page: 43

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

Saved successfully!

Ooh no, something went wrong!