Next: , Previous: Socket Options, Up: Networking


14.4 INET Domain Sockets

The TCP and UDP sockets that you know and love. Some representation issues:

— Class: inet-socket [sb-bsd-sockets]

Class precedence list: inet-socket, socket, standard-object, t

Class representing tcp and udp sockets.

Examples:

           (make-instance 'inet-socket :type :stream :protocol :tcp)
          
           (make-instance 'inet-socket :type :datagram :protocol :udp)

— Function: make-inet-address [sb-bsd-sockets] dotted-quads

Return a vector of octets given a string dotted-quads in the format "127.0.0.1". Signals an error if the string is malformed.

— Function: get-protocol-by-name [sb-bsd-sockets] name

Returns the network protocol number associated with the string name, using getprotobyname(2) which typically looks in nis or /etc/protocols