Computer Science, asked by EAGUKARTHIK8341, 1 year ago

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 writersparadise
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.
Answered by pkhoney03
0

Answer:2

Explanation:

Similar questions