Package: SB-BSD-SOCKETS¶
A thinly-disguised BSD socket API for SBCL. Ideas stolen from the BSD socket API for C and Graham Barr’s IO::Socket classes for Perl.
We represent sockets as CLOS objects, and rename a lot of methods and arguments to fit Lisp style more closely.
Class¶
ADDRESS-FAMILY-NOT-SUPPORTED
ADDRESS-IN-USE-ERROR
BAD-FILE-DESCRIPTOR-ERROR
CONNECTION-REFUSED-ERROR
HOST-NOT-FOUND-ERROR
INTERRUPTED-ERROR
INVALID-ARGUMENT-ERROR
NAME-SERVICE-ERROR
NETDB-INTERNAL-ERROR
NETDB-SUCCESS-ERROR
NETWORK-UNREACHABLE-ERROR
NO-ADDRESS-ERROR
NO-BUFFERS-ERROR
NO-RECOVERY-ERROR
NOT-CONNECTED-ERROR
OPERATION-IN-PROGRESS
OPERATION-NOT-PERMITTED-ERROR
OPERATION-NOT-SUPPORTED-ERROR
OPERATION-TIMEOUT-ERROR
OUT-OF-MEMORY-ERROR
PROTOCOL-NOT-SUPPORTED-ERROR
SOCKET-ERROR
SOCKET-TYPE-NOT-SUPPORTED-ERROR
TRY-AGAIN-ERROR
UNKNOWN-PROTOCOL
UNSUPPORTED-OPERATOR
Constant¶
Function¶
ADDRESS-NUMBERS/V4
ADDRESS-NUMBERS/V6
ADDRINFO-ERROR
BOOL-TO-FOREIGN-INT
CALL-WITH-SOCKET-ADDR
CONDITION-FOR-ERRNO
CONDITION-FOR-NAME-SERVICE-ERRNO
CONDITION-FOR-NAME-SERVICE-ERROR-CODE
ENDPOINT-STRING/V4
ENDPOINT-STRING/V6
FEATUREP
FOREIGN-INT-TO-BOOL
FOREIGN-INT-TO-INTEGER
GET-HOST-BY-ADDRESS
GET-HOST-BY-NAME
GET-NAME-SERVICE-ERRNO
GET-NAME-SERVICE-ERROR-MESSAGE
GET-PROTOCOL-BY-NAME
GETPROTOBYNAME
IDENTITY-1
INTERRUPTED-P
MAKE-INET-ADDRESS
MAKE-INET-SOCKET
MAKE-INET6-ADDRESS
NAME-SERVICE-ERROR
NATURALIZE-UNSIGNED-BYTE-8-ARRAY
SOCKET-ERRNO
SOCKET-ERROR
SOCKOPT-BIND-TO-DEVICE
SOCKOPT-BROADCAST
SOCKOPT-BSD-COMPATIBLE
SOCKOPT-DEBUG
SOCKOPT-DONT-ROUTE
SOCKOPT-KEEP-ALIVE
SOCKOPT-OOB-INLINE
SOCKOPT-PASS-CREDENTIALS
SOCKOPT-PRIORITY
SOCKOPT-RECEIVE-BUFFER
SOCKOPT-RECEIVE-LOW-WATER
SOCKOPT-REUSE-ADDRESS
SOCKOPT-SEND-BUFFER
SOCKOPT-SEND-LOW-WATER
SOCKOPT-TCP-KEEPCNT
SOCKOPT-TCP-KEEPIDLE
SOCKOPT-TCP-KEEPINTVL
SOCKOPT-TCP-NODELAY
SOCKOPT-TYPE
UNPARSE-INET6-ADDRESS
UNSUPPORTED-SOCKET-OPTION
Generic-function¶
BITS-OF-SOCKADDR
FREE-SOCKADDR-FOR
HOST-ENT-ADDRESS-TYPE
HOST-ENT-ADDRESS
HOST-ENT-ADDRESSES
HOST-ENT-ALIASES
HOST-ENT-NAME
MAKE-SOCKADDR-FOR
NAME-SERVICE-ERROR-ERRNO-SYMBOL
NAME-SERVICE-ERROR-ERRNO
NAME-SERVICE-ERROR-ERROR-CODE-SYMBOL
NAME-SERVICE-ERROR-ERROR-CODE
NAME-SERVICE-ERROR-SYMBOL
NAME-SERVICE-ERROR-SYSCALL
NON-BLOCKING-MODE
SIZE-OF-SOCKADDR
SOCKET-ACCEPT
SOCKET-BIND
SOCKET-CLOSE
SOCKET-CONNECT
SOCKET-ERROR-ERRNO
SOCKET-ERROR-SYMBOL
SOCKET-ERROR-SYSCALL
SOCKET-FAMILY
SOCKET-FILE-DESCRIPTOR
SOCKET-LISTEN
SOCKET-MAKE-STREAM
SOCKET-NAME
SOCKET-NAMESTRING
SOCKET-OPEN-P
SOCKET-PEERNAME
SOCKET-PEERSTRING
SOCKET-PROTOCOL
SOCKET-RECEIVE
SOCKET-SEND
SOCKET-SHUTDOWN
SOCKET-TYPE
UNKNOWN-PROTOCOL-NAME