Question: Match the general server - side action stated with the specific TCP socket - related action that implements it . Group of answer choices Create

Match the general server-side action stated with the specific TCP socket-related action that implements it.
Group of answer choices
Create a socket.
[ Choose ]Use the call socket(AF_INET, SOCK_DGRAM)The client must explicitly include the servers IP address, port #, when sendingSend using the socket created using socket(AF_INET, SOCK_STREAM)The client uses connect() to explicitly bind its socket to specific server, and so the server IP address and port number need not be explicitly stated in a send operation.As the result of an accept(), a new socket is created, which binds the client that made the corresponding connect() and server together via this new socket without the need to explicitly specify the destination IP address and port # when sending.Use the call socket(AF_INET, SOCK_STREAM)Send using the socket created using socket(AF_INET, SOCK_DGRAM)Send using a socket not explicitly created via a call to socket()
When sending to a client, this is how a specific client is identified.
[ Choose ]Use the call socket(AF_INET, SOCK_DGRAM)The client must explicitly include the servers IP address, port #, when sendingSend using the socket created using socket(AF_INET, SOCK_STREAM)The client uses connect() to explicitly bind its socket to specific server, and so the server IP address and port number need not be explicitly stated in a send operation.As the result of an accept(), a new socket is created, which binds the client that made the corresponding connect() and server together via this new socket without the need to explicitly specify the destination IP address and port # when sending.Use the call socket(AF_INET, SOCK_STREAM)Send using the socket created using socket(AF_INET, SOCK_DGRAM)Send using a socket not explicitly created via a call to socket()
Send to server, using this socket.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!