EmbLogic's Blog

Sockets – Basics

A socket is a communication mechanism that allows client/server systems to be developed either locally,on a single machine, or across networks.
- It is a communication mechanism
- It allows client/server systems to developed either locally or across a network.
- Socket is an extension of pipe
- They make clear distinction between client and server.
- Socket can be named or unnamed.
- They make clear distinction between server and client.
- In a socket, one side is client/server for read/write/both and other side is a network interface.

There are 6 tasks in a socket :-
1. Create Socket.
2. Give name to socket.
3. Listen to socket for incoming connection.
4. Coonect the client to server.
5. Accept the request by server from client.
6. Close the socket

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>