Bind() function in Python socket programming is used to:
1. Specify the port for service on the specified host
2. Read data from the socket
3.Send data to the socket
4.Initiate the connection
Answers
Answered by
8
The correct answer is the option 1 - Specify the port for service on the specified host.
A server uses a bind() method function to connect as it binds the server to a specific IP address and service port so that it can identify and listen to all the incoming requests that are to be received at that IP address and port.
The bind() function associates the socket to its local address, which is the address where the server-side binds so that the clients can use that IP address in order to connect to the server.
A server uses a bind() method function to connect as it binds the server to a specific IP address and service port so that it can identify and listen to all the incoming requests that are to be received at that IP address and port.
The bind() function associates the socket to its local address, which is the address where the server-side binds so that the clients can use that IP address in order to connect to the server.
Answered by
0
Answer:2
Explanation:
Similar questions