Tag: tcp

63 votes
4 answers
2.8K views
WebSockets ping/pong, why not TCP keepalive?

WebSockets have the option of sending pings to the other end, where the other end is supposed to respond with

avatar
Sena
0 1 0 9
asked 07 September, 2021
58 votes
4 answers
1.5K views
What is the fundamental difference between WebSockets and pure TCP?

I've read about WebSockets and I wonder why browser couldn't simply open trivial TCP connection and

avatar
Tuan
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
52 votes
5 answers
2.6K views
How can a web server handle multiple user's incoming requests at a time on a single port (80)?

How does a web server handle multiple incoming requests at the same time on a single port(80)? Example : At t

avatar
Trudy
0 1 0 9
asked 07 September, 2021