Friday, May 3, 2024
 Popular · Latest · Hot · Upcoming
53
rated 0 times [  53] [ 0]  / answers: 1 / hits: 43600  / 1 Year ago, fri, november 18, 2022, 4:19:24

Recently, I started using tmux; I'm trying to use the pair programming feature in that software.
During the process a socket file was created.
My question is: what are socket files, how am I to open them on Ubuntu and how are they used?


More From » tmux

 Answers
5

Sockets are a special file type, similar to TCP/IP sockets, providing inter-process networking protected by the file system's access control.



For example, when you open a listening socket in one terminal with netcat:



nc -lU socket.sock


then send data from another terminal by:



echo mytext | nc -U socket.sock


mytext appears on the first terminal.



By default nc stops listening after an End-of-File character.


[#28517] Friday, November 18, 2022, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
aclavadoug

Total Points: 317
Total Questions: 103
Total Answers: 125

Location: Bangladesh
Member since Wed, Mar 24, 2021
3 Years ago
;