Name

bind

Synopsis

                        s.bind((host,port))

Binds socket s to accept connections from host host serving on port number port. host can be the empty string '' to accept connections from any host. It’s an error to call s .bind twice on any given socket object s.

Get Python in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.