147k views
3 votes
Suppose that you are developing an application in which you want to connect to a server to upload some data. You create a socket (UDP or TCP) to establish communication with the server. In doing so, you need to specify information that identifies what server, and what application on that server, you want to connect to. You need to specify at least 2 of the following, which ones?

a.The server's IP address or hostname.
b.The server's operating system.
c.The HTTP version used by the server.
d.The port number for the application on that server

1 Answer

4 votes

Answer:

a.The server's IP address or hostname.

d.The port number for the application on that server

Step-by-step explanation:

We can point out that a socket is a tool which contains or which comprises of a pair of value.

Also a socket is an end point which identifies each other. In this case the client connecting to the server.

From the options a and d meets the criteria.

User DrAlberT
by
5.0k points