Client Server Model and Blocking Mode Flashcards
True or False
A TCP client is connection-oriented.
True
What 3 things does a socket name for TCP/IP consist of?
A socket name for TCP/IP consists of the IP address and port number, as well as the protocol.
True or False
The server initializes the socket address structure and calls the accept() function to name its socket.
False
Which of the following is required to create a valid socket association for a TCP connection?
a. server socket name
b. none of these are correct
c. client socket name
d. both a client socket and a server socket name
a. server socket name
The _________ parameter is the number of incoming connection requests you want the stack to queue while you process connection(s) your server has already accepted.
backlog
What is the proper name of the object returned, when you open a socket using the socket( ) function?
a. a handle
b. a beeping noise
c. a descriptor
d. a socket
a descriptor
When a server socket and a client socket successfully connect, their two names combine to form what is known as a(n) __________________.
association
True or False
One difference between sendto() and recvfrom() is the content of the sockaddr parameter.
True
True or False
A client is required to name its socket just like a server.
False
True or False
For two sockets to communicate as client and server they must have the same socket types.
True
True or False
A server must name its socket to allow the client to find it on the network.
True
Name one of the two functions that are used to obtain data from a sending client or server.
recv()
What are the three steps involved in combining the two socket names that form the association?
Server prepares for an association
Client initiates the association
Server completes the association
The _________ function returns a new socket for a newly created connection after accepting a pending connection request from a listening socket.
accept()
True or False
When using a TCP socket, you can’t use the send() function unless you have had a successful connect() call.
True