Tag: sockets

65 votes
2 answers
2.2K views
How do SO_REUSEADDR and SO_REUSEPORT differ?

The man pages and programmer documentations for the socket options SO_REUSEADDR and SO_REUSEPORT are different

avatar
Thurman
0 1 0 9
asked 07 September, 2021
61 votes
6 answers
2.3K views
Closing WebSocket correctly (HTML5, Javascript)

I am playing around with HTML5 WebSockets. I was wondering, how do I close the connection gracefully? Like, wh

avatar
Frederick
0 1 0 9
asked 07 September, 2021
55 votes
6 answers
376 views
Difference between socket and websocket?

I'm building web app that needs to communicate with another application using socket connections. This is

avatar
Chelsea
0 1 0 9
asked 07 September, 2021
54 votes
0 answers
1.2K views
How can I write accept function in my library in socket programming?

I am trying to write the code with my own library. I did this for the other functions such as 'bind'

avatar
Sena
0 1 0 9
asked 07 September, 2021