First bind assigns the local address. Listen marks the socket as passive and establishes its connection queue. Accept obtains a connected socket from that queue; recv then reads application data on it. Therefore B is the valid order.
More TCP: Flow Control, Congestion Control, Socket API questions
GATE 2015 CS (CS2) Q38– A TCP connection has bandwidth 1048560 bits/s. Let α be the RTT in milliseconds, rounded…
GATE 2015 CS (CS3) Q19– Consider: I TCP connections are full duplex. II TCP has no selective-acknowledgement…
GATE 2021 CS (CS2) Q17– P and Q choose initial TCP sequence numbers X and Y. P sends SYN=1,SEQ=X,ACK=0 to request…
GATE 2026 CS (CS1) Q18– With respect to a TCP connection between a client and a server, which one of the following…
GATE 2026 CS (CS1) Q44– A TCP sender successfully establishes a connection with a TCP receiver and starts the…
GATE 2026 CS (CS2) Q58– Consider a new TCP connection between a sender and a receiver. The receiver advertised…