A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://www.geeksforgeeks.org/computer-networks/socket-in-computer-network/ below:

Socket in Computer Network - GeeksforGeeks

Socket in Computer Network

Last Updated : 12 Jul, 2025

A socket is one endpoint of a two way communication link between two programs running on the network. The socket mechanism provides a means of inter-process communication (IPC) by establishing named contact points between which the communication take place. 

How Sockets Work in Computer Networks

Like 'Pipe' is used to create pipes and sockets is created using 'socket' system call. The socket provides bidirectional FIFO Communication facility over the network.

Types of Sockets

There are two types of Sockets:

Common Function Calls in Socket Programming

Here is a summary of the common function calls used in socket programming:

Function Call  Description  Socket() To create a socket Bind() It's a socket identification like a telephone number to contact Listen() Ready to receive a connection  Connect() Ready to act as a sender  Accept() Confirmation, it is like accepting to receive a call from a sender  Write() To send data  Read() To receive data  Close() To close a connection

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4