new(p1, p2, p3 = v3) public

Creates a new socket object.

domain should be a communications domain such as: :INET, :INET6, :UNIX, etc.

socktype should be a socket type such as: :STREAM, :DGRAM, :RAW, etc.

protocol is optional and should be a protocol defined in the domain. If protocol is not given, 0 is used internally., :STREAM) # TCP socket, :DGRAM)  # UDP socket, :STREAM) # UNIX stream socket, :DGRAM)  # UNIX datagram socket
Show source
Register or log in to add new notes.