Many times in schools, colleges & offices surfing some sites are banned.

To overcome this you can unblock these or block some other websites and play pranks !

Follow the Instructions Below To Block a Website:

Open the folder C:\WINDOWS\system32\drivers\etc

There you will find a file named HOSTS

Click on the file and right click.

From the right click menu select Open with.

Now, select Notepad to open the file from the list.

Now, in the file under the line 127.0.0.1 localhost add another line as 127.0.0.2 http://www.facebook.com.

File > Save.

Follow the Instructions Below To UnBlock a Website:

-> Do Same as above upto and then,Now, open your web browser and try opening http://www.facebook.com, it will not load.To unblock sites just do the opposite. ( means to remove : 127.0.0.2 http://www.facebook.com. )

UNIT - II
11. Write a server program using TCP protocol which returns Client IP address and Port number.
12. Discuss the generic socket address structure,IPV4 socket address structure,IPV6 socket address structure.
13. Identify and discuss the queues maintained by the kernel with suitable diagrams.
14. Discuss the connect function and identify different error returns identified by connect function.
15. If TCP client doesn’t call bind, how will the address be bound to the client socket?
16. Explain value-result parameter passing mechanism with diagram.
17. What are the purpose of the ntohs(), htons(), socket(), listen() and inet_pton() functions in a socket program? Give the syntax of each.
18. Explain Little-endian byte order and big-endian byte order. Write program to determine host byte order.
19. Justify the need for the functions getsocketname and getsockpeername.
20. Explain byte manipulation functions. Give the syntax of each.

UNIT - III
21. Explain difference between wait and waitpid.
22. Write a “C” program for TCP echo server.
23. What is signal? How kernel does handle signal? Which signal does kernel send to parent process when child process terminates?
24. Write a “C” program for TCP echo client.
25. How does server handle Zombie child process?
26. Write a “C” program for TCP server to convert a string received from client into uppercase.
27. Write a “C” program for TCP server to reverse string received from client.
28. Write steps performed when server is crashing and rebooting.
29. What are the different error returns to the process when server host crashes?
30. Write steps perform by process when connection abort before accept returns.

UNIT – IV
31. Differentiate between close function and shutdown function. What is the use of how to argument used in the function shutdown?
32. Answer the following.
o What is the difference between select () and poll ()?
o Explain the functions getsockopt and setsockopt with arguments.
33. With suitable diagrams differentiate the five I/O models.
34. When is socket said to be ready for reading and writing data. Identify and discuss the conditions.
35. Write “C” program to implement TCP echo server using select().
36. Write “C” program to implement TCP echo server using poll().
37. Explain any five socket option for Generic socket.
38. Explain the five I/O model with suitable diagrams.
39. Explain SO_LINGER SOCKET option.
40. Explain nagle’s algorithm.

1. IBM is popularly known as 'Big Blue'.
2. Five IBMers have won Nobel Prizes for physics.
3. In 2008, IBM became the first company to ever earn more than 4,000 US patents in a single year.
4. IBM is also the highest patent earner, has a long list of tech inventions to its credit and