2: Application Layer7 Pseudo code TCP server Create socket (doorbellSocket) Bind socket to a specific port where clients can contact you Register with the kernel your willingness to listen that on socket for client to contact you (if didn't bind, listen would choose an ephemeral port) Loop Accept new connection (connectSocket) Read and Write Data Into connectSocket to Communicate with client Close connectSocket Close doorbellSocket
{}