Recent questions tagged sockets

1 1 vote
2 2 answers
2.8k
2.8k views
Suppose that a Web server runs in Host C on port 80. Suppose this Web server uses persistent connections and is currently receiving requests from two different Hosts, A a...
0 0 votes
0 0 answers
456
456 views
what is the difference between tcp socket and udp socket ?
1 1 vote
1 1 answer
1.0k
1.0k views
what happens when a host receives a TCP segment whose port number or source IP address do not match with any of the ongoing sockets in the host?one of the answer i think ...
3 3 votes
1 1 answer
2.0k
2.0k views
When a TCP data packet arrives at a host, the operating system’s network stack uses the following fields to direct the segment to the appropriate socket:I. Transport prot...
2 2 votes
2 answers 2 answers
4.6k
4.6k views
Which of the following system calls not used in UDP echo server program?A) listen()B) socket()C) bind ()D)recvfrom()
39 39 votes
6 answers 6 answers
15.4k
15.4k views
Identify the correct order in which a server process must invoke the function calls accept, bind, listen, and recv according to UNIX socket API.$\textsf{listen, accept, b...
45 45 votes
4 answers 4 answers
16.7k
16.7k views
Which of the following socket API functions converts an unconnected active TCP socket into a passive socket?$\textsf{connect}$$\textsf{bind}$$\textsf{listen}$$\textsf{acc...
67 67 votes
3 answers 3 answers
24.4k
24.4k views
A client process P needs to make a TCP connection to a server process S. Consider the following situation: the server process S executes a $\text{socket()}$, a $\text{bin...
42 42 votes
5 answers 5 answers
20.6k
20.6k views
Which of the following system calls results in the sending of SYN packets?$\textsf{socket}$$\textsf{bind}$$\textsf{listen}$$\textsf{connect}$
To see more, click for the full list of questions or popular tags.