X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=contrib%2Fsb-bsd-sockets%2Fconstants.lisp;h=de0e2e8f8733165854e621c3e34d5edd17c619f4;hb=HEAD;hp=efd65ba073f6b4aebb36b99bdd6e2ecdf0d08286;hpb=4d653f81365917ace3da1e155f1bfe25fbc71507;p=sbcl.git diff --git a/contrib/sb-bsd-sockets/constants.lisp b/contrib/sb-bsd-sockets/constants.lisp index efd65ba..de0e2e8 100644 --- a/contrib/sb-bsd-sockets/constants.lisp +++ b/contrib/sb-bsd-sockets/constants.lisp @@ -44,7 +44,12 @@ #+linux (:integer so-passcred "SO_PASSCRED") (:integer so-rcvbuf "SO_RCVBUF") (:integer so-keepalive "SO_KEEPALIVE" - "Send periodic keepalives: if peer does not respond, we get SIGPIPE") + "Send periodic keepalives. If peer does not respond, we get SIGPIPE.") + #+linux (:integer tcp-keepcnt "TCP_KEEPCNT" + "Number of unacknowledged probes before the connection is considered dead.") + #+linux (:integer tcp-keepidle "TCP_KEEPIDLE" + "Seconds between the last data packet sent and the first keepalive probe.") + #+linux (:integer tcp-keepintvl "TCP_KEEPINTVL" "Seconds between keepalive probes.") (:integer so-oobinline "SO_OOBINLINE" "Put out-of-band data into the normal input queue when received") #+linux @@ -62,6 +67,12 @@ #+linux (:integer so-bindtodevice "SO_BINDTODEVICE") (:integer ifnamsiz "IFNAMSIZ") +;; socket shutdown flags +(:integer SHUT_RD "SHUT_RD") +(:integer SHUT_WR "SHUT_WR") +(:integer SHUT_RDWR "SHUT_RDWR") + +;; errors (:integer EADDRINUSE "EADDRINUSE") (:integer EAGAIN "EAGAIN") (:integer EBADF "EBADF") @@ -209,6 +220,8 @@ (addrlen socklen-t))) (:function close ("close" int (fd int))) + (:function shutdown ("shutdown" int + (fd int) (how int))) (:function recvfrom ("recvfrom" ssize-t (socket int) (buf (* t)) @@ -274,8 +287,8 @@ #+darwin (integer addrlen "socklen_t" "ai_addrlen") #-darwin (integer addrlen "size_t" "ai_addrlen") ((* sockaddr-in) addr "struct sockaddr*" "ai_addr") - (c-string canonname "char *" "ai_canonname") - ((* t) next "struct addrinfo*" "ai_next"))) + (c-string-pointer canonname "char *" "ai_canonname") + ((* (struct addrinfo)) next "struct addrinfo*" "ai_next"))) #+sb-bsd-sockets-addrinfo (:function getaddrinfo ("getaddrinfo"