is a data communications endpoint for exchanging data between processes executing within the same host operating system.
Questions tagged [socket]
413 questions
13
votes
1 answer
Can someone explain the different types of unix domain sockets?
If I run netstat --all | grep ^unix some of the socket paths that are outputted are preceded with a '@' and some aren't. I've noticed that those preceded with a '@' don't show up when browsing the file system with ls but the rest do.
What are these…

Shum
- 1,355
11
votes
0 answers
What is the purpose of sockets in layman terms?
I met several times the term "socket", so I looked it up on different
sites, but each of them required too much knowledge in order to
understand the explanation.
What I read were things like:
sockets fall into the same category as pipes and name…

Abdul Al Hazred
- 26,630
3
votes
0 answers
Does epoll give available bytes to read or write, and threshold feature?
kqueue gives available bytes to send or receive if file descriptior (such as socket) gets signal. and, kqueue gives threshold feature, for example, it does not signal until sufficient bytes are available to read or write if user wants.
Are these two…

Hyunjik Bae
- 163
2
votes
1 answer
Is there any authoritative place that says multi processes or threads accepting a listening socket is an atomic operation?
When I was reading some materials about Nginx, I noticed that one of the 2 traditional ways to accept incoming connections on a single socket is :
The second of the traditional approaches used by multithreaded servers
operating on a single port is…

Rick
- 1,157
1
vote
2 answers
How do you close port
I've got the same problem as mentioned here
nc: bind failed: Address already in use
i.e.
$ nc -l 3206
Ncat: bind to :::3206: Address already in use. QUITTING.
Can someone give a 1 line command without pages of explanations, references and…

Snowcrash
- 679
1
vote
1 answer
Socket remains ESTABLISHED even if remote process is stopped
I am running a celery - rabbitmq configuration between a client and a server. The client process opens a connection on the server at port 5672. Using netstat -np on the server I confirm that since the socket reports ESTABLISHED.
The process on the…

Demetris
- 187
0
votes
0 answers
SHIBD Daemon not creating Socl file
The SHIBD daemon is failing to start with the error message "no such file or directory". It appears that the daemon is not writing the file. Any ideas are helpful.

Matt
- 1
0
votes
2 answers
Why flipping is done on data from Big endian before storing in LE?
Suppose A is a BE machine and is sending 0x44332211 sending data to B which is LE. By default A will be using htonl of 0x44332211 which is nothing but 0x44332211.
Now when 0x44332211 reaches B,B knows that its a BE format, so B will flip by using…

Subi Suresh
- 503
0
votes
1 answer
websocat server with timestamp
I am running websocat (https://github.com/vi/websocat/) on macOS in server mode for debugging purposes.
I would like to display a timestamp on every incoming message.
However: I am struggling with parameter syntax: how would add that overlay…
0
votes
1 answer
What happens to sockets when a process dies to segfault?
Imagine I have a server that has a connected tcp socket with a remote client. If the server dies because of a segfault, will the socket be closed by the OS and the client be notified with a RST or will the client never know and the sockets stay open…

boredaf
- 181
0
votes
2 answers
Physical layer header is not present in the data read from raw sockets?
i have read about RAW sockets that they are UNIX domain sockets and don't generally go over the wire unlike TCP or UDP. They are used for interprocess communication. Also they are used in the implementation of new transport layer protocols and are…

Shekhar Kumar
- 103
- 3
0
votes
2 answers
What is the difference between lscpu Socket and networking Socket?
lscpu output looks like-
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 4
On-line CPU(s) list: 0-3
Thread(s) per core: 2
Core(s) per socket: 2
Socket(s): …

alhelal
- 1,301