Logo

dev-resources.site

for different kinds of informations.

What are sockets in computer networks?

Published at
4/27/2021
Categories
sockets
computer
networks
Author
vkopmp07
Categories
3 categories in total
sockets
open
computer
open
networks
open
Author
8 person written this
vkopmp07
open
What are sockets in computer networks?

Two processes that run on the same machine, or different machines, communicate through sockets. Sockets are seen as the end of the two-way communication between two processes; they allow processes to communicate with each other ​using a file descriptor and are commonly used in client-server applications that allow ​for ​communication between multiple applications.

How sockets are created

A socket is created by concatenating the IP number of a system and a software port number (not a ​hardware port number). This allows the process to know the address of the system (the IP address) and the address where the information needs to be sent (the port number). The IP number and the port number are separated by a ​:.
Alt Text
The diagram above shows two different applications communicating with one another through sockets.

In this diagram, application 1 sends the data to IP number 192.168.16.21 of application 2, port 100, while application 2 sends the data to ​IP number 192.168.1.1 of application 1, port ​80.

sockets Article's
30 articles in total
Favicon
Master Linux File Types While Your Coffee Brews
Favicon
Why most HTTP servers are multithreaded and how to build one from scratch
Favicon
Talking to a Gmail POP3 server with Python
Favicon
You (probably) do not understand UDP
Favicon
Creating a nextjs chat app for learning to integrate sockets
Favicon
Tipos de Sockets em TCP e UDP: Escolhendo o Caminho Adequado
Favicon
Introdução aos Sockets em Python
Favicon
How to broadcast live data on your application?
Favicon
lets compare network sockets between Perl and Python
Favicon
Communicating with WebRTC or WebSocket
Favicon
A terminal real time application with Dart Sockets
Favicon
Building a Redis client from scratch in Go
Favicon
Socket sharding in Linux example with Go
Favicon
Real-Time Interactive Plotting (using Sockets, Python & Plotly)
Favicon
What are sockets in computer networks?
Favicon
Fun with Sockets!
Favicon
Integrating Sockets in Kotlin
Favicon
Basics of Sockets
Favicon
Simple tweet locator using Python, Flask SocketIO and Tweepy
Favicon
Captive Web Portal for ESP8266 with MicroPython - Part 3
Favicon
Using BSD Sockets in Swift
Favicon
I wrote a PHP Client for sonic, the autosuggestion engine, and now its official PHP client. Ask Me Anything 🤩
Favicon
Mercure (Simple Real-Time Updates)
Favicon
The Gopher Protocol in Brief
Favicon
Socket Programming in C: Introduction
Favicon
Receiving data from ESP8266 sensors
Favicon
Socket Programming in C: Communication Styles
Favicon
Socket Programming in C: What is a Socket?
Favicon
sockjs_test_server_nwjs – SockJS test server on NW.js
Favicon
Simplest technique to develop multi-threaded apps with UI update

Featured ones: