sock =
socket ()
¶sock =
socket (domain)
¶sock =
socket (domain, type)
¶sock =
socket (domain, type, protocol)
¶Creates a socket.
domain is an integer, where the value AF_INET can be used to create an IPv4 socket.
type is an integer describing the socket. When using IP, specifying SOCK_STREAM gives a TCP socket.
protocol is currently not used and should be 0 if specified.
If no input arguments are given, default values AF_INET and SOCK_STREAM are used.
See the local socket
reference for more details.
Package: sockets