Prepare
Practice
Interview
Aptitude
Reasoning
English
GD
Placement papers
HR
Current affairs
Engineering
MCA
MBA
Online test
Login
Connect is responsible for sending SYN packets - Operating System
Home
>>
Category
>>
Programming Language (MCQ) questions
>>
Operating System
Q. Which is the system call that is responsible for sending of SYN packets?
- Published on 28 Aug 15
a.
Bind
b.
Socket
c.
Connect
d.
Listen
ANSWER: Connect
Related Content
Networking (
207
)
Database (
97
)
C programming (
58
)
Software Engineering (
28
)
SQL (
5
)
HTML (
74
)
Web Technologies (
11
)
Data Structure (
140
)
Operating System (
96
)
Java (
25
)
Oracle (
5
)
C++ (
50
)
Algorithms (
7
)
PL/SQL (
13
)
JavaScript (
7
)
XML (
0
)
CSS (
1
)
Discussion
Nirja Shah
-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
Required!
Required!
Invalid Email Id!
Required!
Enter the code shown above:
Please enter the code shown above
(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)
MCQs
English
Tutorials
Download
▲