Changeset 431
- Timestamp:
- 10/13/08 02:05:28 (7 weeks ago)
- Location:
- usocket/branches/experimental-udp
- Files:
-
- 7 modified
-
backend/allegro.lisp (modified) (3 diffs)
-
backend/cmucl.lisp (modified) (2 diffs)
-
backend/openmcl.lisp (modified) (3 diffs)
-
backend/sbcl.lisp (modified) (1 diff)
-
package.lisp (modified) (1 diff)
-
server.lisp (modified) (1 diff)
-
usocket.lisp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
usocket/branches/experimental-udp/backend/allegro.lisp
r429 r431 65 65 (socket:make-socket :remote-host (host-to-hostname host) 66 66 :remote-port port 67 :local-host ( when local-host (host-to-hostname local-host))67 :local-host (host-to-hostname local-host) 68 68 :local-port local-port 69 69 :format (to-format element-type) … … 80 80 :remote-host (host-to-hostname host) 81 81 :remote-port port 82 :local-host ( when local-host (host-to-hostname local-host))82 :local-host (host-to-hostname local-host) 83 83 :local-port local-port 84 84 :format (to-format element-type)) … … 86 86 :address-family :internet 87 87 :local-host local-host 88 :local-port ( when local-host (host-to-hostname local-host))88 :local-port (host-to-hostname local-host) 89 89 :format (to-format element-type))))))) 90 90 (ecase protocol -
usocket/branches/experimental-udp/backend/cmucl.lisp
r429 r431 68 68 (with-mapped-conditions (socket) 69 69 (ext:connect-to-inet-socket (host-to-hbo host) port :stream 70 :local-host (if local-host 71 (host-to-hbo local-host)) 70 :local-host (host-to-hbo local-host) 72 71 :local-port local-port))) 73 72 (if socket … … 85 84 (setf socket (with-mapped-conditions (socket) 86 85 (ext:connect-to-inet-socket (host-to-hbo host) port :datagram 87 :local-host (if local-host 88 (host-to-hbo local-host)) 86 :local-host (host-to-hbo local-host) 89 87 :local-port local-port))) 90 88 (progn -
usocket/branches/experimental-udp/backend/openmcl.lisp
r429 r431 82 82 (:stream 83 83 (let ((mcl-sock 84 (openmcl-socket:make-socket :remote-host (host-to-h ostnamehost)84 (openmcl-socket:make-socket :remote-host (host-to-hbo host) 85 85 :remote-port port 86 :local-host ( when local-host (host-to-hostname local-host))86 :local-host (host-to-hbo local-host) 87 87 :local-port local-port 88 88 :format (to-format element-type) … … 97 97 (openmcl-socket:make-socket :address-family :internet 98 98 :type :datagram 99 :local-host (if local-host 100 (host-to-hbo local-host)) 99 :local-host (host-to-hbo local-host) 101 100 :local-port local-port))) 102 101 (when (and host port) … … 141 140 (with-mapped-conditions (usocket) 142 141 (openmcl-socket:send-to (socket usocket) buffer length 143 :remote-host ( if address (host-to-hbo address))142 :remote-host (host-to-hbo address) 144 143 :remote-port port))) 145 144 -
usocket/branches/experimental-udp/backend/sbcl.lisp
r429 r431 241 241 usocket)) 242 242 (:datagram 243 (when ( andlocal-host local-port)243 (when (or local-host local-port) 244 244 (sb-bsd-sockets:socket-bind socket 245 (host-to-vector-quad local-host) 246 local-port)) 245 (host-to-vector-quad 246 (or local-host *wildcard-host*)) 247 (or local-port *auto-port*))) 247 248 (when (and host port) 248 249 (sb-bsd-sockets:socket-connect socket (host-to-hbo host) port)) -
usocket/branches/experimental-udp/package.lisp
r429 r431 81 81 #:insufficient-implementation ; conditions regarding usocket support level 82 82 #:unsupported 83 #:unimplemented) 84 85 #+lispworks 86 (:import-from :comm 87 #:*socket_af_inet* 88 #:*socket_pf_unspec* 89 #:*sockopt_sol_socket* 90 #:%send 91 #:bind 92 #:close-socket 93 #:connect 94 #:getsockopt 95 #:in_addr 96 #:initialize-sockaddr_in 97 #:ntohl 98 #:ntohs 99 #:s_addr 100 #:setsockopt 101 #:sin_addr 102 #:sin_port 103 #:sockaddr 104 #:sockaddr_in)) 83 #:unimplemented)) -
usocket/branches/experimental-udp/server.lisp
r426 r431 11 11 (max-buffer-size +max-datagram-packet-size+)) 12 12 (let ((socket (socket-connect nil nil 13 :protocol : udp13 :protocol :datagram 14 14 :local-host host 15 15 :local-port port -
usocket/branches/experimental-udp/usocket.lisp
r429 r431 408 408 "Translate a string or vector quad to a stringified hostname." 409 409 (etypecase host 410 (null nil) 410 411 (string host) 411 412 ((or (vector t 4) … … 461 462 (defun host-to-hbo (host) 462 463 (etypecase host 464 (null nil) 463 465 (string (let ((ip (ignore-errors 464 466 (dotted-quad-to-vector-quad host))))
