Top "Sockets" questions

An endpoint of a bi-directional inter-process communication flow.

How to detect a remote side socket close?

How do you detect if Socket#close() has been called on a socket on the remote side?

java networking sockets tcp
Detecting TCP Client Disconnect

Let's say I'm running a simple server and have accept()ed a connection from a client. What is the best …

c++ sockets tcp
Sockets: Discover port availability using Java

How do I programmatically determine the availability of a port in a given machine using Java? i.e given a …

java sockets port
Chrome hangs after certain amount of data transfered - waiting for available socket

I've got a browser game and I have recently started adding audio to the game. Chrome does not load the …

sockets google-chrome http networking streaming
How to check if a socket is connected/disconnected in C#?

How can you check if a network socket (System.Net.Sockets.Socket) is still connected if the other host doesn't …

c# sockets connection
When is TCP option SO_LINGER (0) required?

I think I understand the formal meaning of the option. In some legacy code I'm handling now, the option is …

sockets networking tcp setsockopt so-linger
htons() function in socket programing

I am new to socket programming and I am trying to understand the operation of htons(). I've read a few …

c sockets unix-socket
centos: Another MySQL daemon already running with the same unix socket

I have a strange error when starting mysqld service: Another MySQL daemon already running with the same unix socket. I've …

mysql sockets unix centos6
How to connect to a remote Windows machine to execute commands using python?

I am new to Python and I am trying to make a script that connects to a remote windows machine …

python windows sockets wmi remote-server
How do I use setsockopt(SO_REUSEADDR)?

I am running my own http server on a raspberry pi. The problem is when I stop the program and …

c sockets raspberry-pi