Sockets allow communication between two different processes on the same or different machines. To be more precise, it's a way to talk to other computers using standard Unix file descriptors. In Unix, every I/O action is done by writing or reading a file descriptor. A file descriptor is just an integer associated with an open file and it can be a network connection, a text file, a terminal, or something else.
To a programmer, a socket looks and behaves much like a low-level file descriptor. This is because commands such as read() and write() work with sockets in the same way they do with files and pipes.
Where is Socket Used?
A Unix Socket is used in a client-server application framework. A server is a process that performs some functions on request from a client. Most of the application-level protocols like FTP, SMTP, and POP3 make use of sockets to establish connection between client and server and then for exchanging data.
Syntax:
int socket(int domain, int type, int protocol)
Here., Domain refers to: Socket Family
Ex:AF_UNIX,AF_INET ,AF_NETLINK etc.
Protocol refers to: The type of Protocol we want to use
Ex:TCP,UDP,ICMP etc.
Type refers to: Socket Service Type
Socket Service Types:
The following socket types are.....
http://www.epistemesoft.com/Ariticle%20more.aspx…
To a programmer, a socket looks and behaves much like a low-level file descriptor. This is because commands such as read() and write() work with sockets in the same way they do with files and pipes.
Where is Socket Used?
A Unix Socket is used in a client-server application framework. A server is a process that performs some functions on request from a client. Most of the application-level protocols like FTP, SMTP, and POP3 make use of sockets to establish connection between client and server and then for exchanging data.
Syntax:
int socket(int domain, int type, int protocol)
Here., Domain refers to: Socket Family
Ex:AF_UNIX,AF_INET ,AF_NETLINK etc.
Protocol refers to: The type of Protocol we want to use
Ex:TCP,UDP,ICMP etc.
Type refers to: Socket Service Type
Socket Service Types:
The following socket types are.....
http://www.epistemesoft.com/Ariticle%20more.aspx…
Embedded Training in Chennai | Embedded Training in Anna Nagar | Embedded System Training in Anna Nagar | Embedded System Training in Chennai | Best Embedded System Training in Chennai | Best Embedded Systems Training in Chennai | Embedded Training Institute in Chennai | Embedded System Training Institute in Chennai | Embedded Course in Chennai | Embedded Training Center in Chennai
ReplyDeleteEmbedded Training in Chennai | Best Embedded Training in Chennai | Embedded System Training in Chennai | Embedded System Training Institute in Chennai | Best Embedded System Training Institute in Chennai | Embedded Course in Chennai | Embedded System Training Institutes in Chennai | Embedded System Training Center in Chennai | Best Embedded System Training in Chennai | Embedded Systems Training in Chennai | VLSI Training in Chennai | VLSI Training Institute in Chennai
ReplyDeleteembedded systems training in chennai
ReplyDeleteembedded systems training chennai
embedded training in chennai
embedded systems course in chennai
embedded course in chennai
top 10 embedded training institutes in chennai
embedded course in chennai
embedded system course chennai
embedded training institute in chennai
best embedded system training in chennai
best embedded training institute in chennai
embedded training institutes in chennai
best embedded training in chennai
vlsi training in chennai
embedded linux training in chennai