Which of the following system calls results in the sending of SYN packets?
A. socket
B. bind
C. listen
D. connect
GATE 2008 · Computer Networks · Sockets · medium
Answer: connect() results in the sending of SYN packets. Answer: D. connect
Review what each socket call does: socket() — creates socket, no network activity.
bind() — assigns local address to socket, no network activity.
listen() — puts socket in passive mode to accept connections, no network activity.
connect() — actively initiates TCP connection to specified server address.
Identify which call sends SYN: When connect() is called by the client, the TCP/IP stack automatically sends a SYN packet to the server's IP:port. This initiates the three-way handshake. No other listed call triggers packet transmission.