http - What controls whether TCP segments are delivered to socket passed to accept() or socket returned by accept()? -


in tcp socket code, create 2 sockets. first accepts new connections, , second accepts data client , created when new connection established.

what control bit in tcp header allows server know whether deliver segment serversocket (the 1 connection requests sent) or socket (the socket created communication once connection established)?

what control bit in tcp header allows server know whether deliver segment serversocket (the 1 connection requests sent) or socket (the socket created communication once connection established)?

apart syn, there isn't such control bit. if tcp packet arrives , there established tcp connection 4-tuple {source ip, source port, destination ip, destination port}, delivered local socket connection. if not, ack syn-ack if there 1 outstanding sequence number, causes half-formed connection placed on listen backlog queue. otherwise error , causes rst issued.


Comments

Popular posts from this blog

java - Spring Data JPA: Why findOne(id) executing delete query internally? -

python - Mongodb How to add addtional information when aggregating? -

java - Incorrect order of records in M-M relationship in hibernate -