Describe how sockets can be used to communicate in a network.Also explain socket creation and usage
Unix Domain Sockets:
The ``Unix domain sockets'' don't actually represent a network protocol; they can only connect to sockets on the same machine. (at the time of this writing for the standard Linux kernel). When used as a stream, they are fairly similar to named pipes, but with significant advantages. In particular, Unix domain socket is connection-oriented; each new connection to the socket results in a new communication channel, a very different situation than with named pipes. Because of this property, Unix domain sockets are often used instead of named pipes to implement IPC for many important services.
Useful Links:-
http://www.cs.usfca.edu/~parrt/course/601/lectures/sockets.html
http://en.wikipedia.org/wiki/Internet_socket
http://compnetworking.about.com/od/itinformationtechnology/l/aa083100a.htm
Unix Domain Sockets:
The ``Unix domain sockets'' don't actually represent a network protocol; they can only connect to sockets on the same machine. (at the time of this writing for the standard Linux kernel). When used as a stream, they are fairly similar to named pipes, but with significant advantages. In particular, Unix domain socket is connection-oriented; each new connection to the socket results in a new communication channel, a very different situation than with named pipes. Because of this property, Unix domain sockets are often used instead of named pipes to implement IPC for many important services.
Useful Links:-
http://www.cs.usfca.edu/~parrt/course/601/lectures/sockets.html
http://en.wikipedia.org/wiki/Internet_socket
http://compnetworking.about.com/od/itinformationtechnology/l/aa083100a.htm
No comments:
Post a Comment