Grokking Operating Systems and Networking for Backend Engineers
Vote

0% completed

​

The Socket API: Listen, Accept and Connect

A small test server for Checkout opened port 8080 and then did nothing for three seconds. It did not call accept, and none of its connection code ran. During those three seconds, a client opened three connections to it, and each connect call returned in about a tenth of a millisecond:

Output:

client: connection 1 open after 0.20 ms, local port 38322 client: connection 2 open after 0.10 ms, local port 38332 client: connection 3 open after 0.10 ms, local port 38334

The client believed it was connected, and it was

.....

.....

.....

Like the course? Get enrolled and start learning!

Reading Progress

0%


Vote for new content