Connect is responsible for sending SYN packets - Operating System
Programming Language (MCQ) questions
Q. Which is the system call that is responsible for sending of SYN packets?
- Published on 28 Aug 15
C programming (
Software Engineering (
Web Technologies (
Data Structure (
Operating System (
-Posted on 12 Nov 15
- socket() creates a new socket of a certain socket type, which is identified by an integer number, and allocates system resources to it.
- bind() is typically used on the server side, and associates a socket with a socket address structure, i.e. a specified local port number and IP address.
- listen() is used on the server side, and it causes to bound a TCP socket to enter listening state.
- connect() is used on the client side, and is assigned a free local port number to a socket. In case of a TCP socket, it causes an attempt to establish a new TCP connection.
The following three way handshakes happens to establish the connection in TCP when connect() is called by client.
1) The client requests a connection by sending a SYN (synchronize) message to the server.
2) The server acknowledges this request by sending SYN-ACK back to the client.
3) The client responds with an ACK, and the connection is established.
Post your comment / Share knowledge
Enter the code shown above:
(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)