X-Git-Url: http://git.kpe.io/?p=kmrcl.git;a=blobdiff_plain;f=sockets.lisp;h=0ab5d941ffaf385c1bf792a7bcf62b81439beca0;hp=f7c8408476e038fd188f69a86f3eaba458b4c1f7;hb=e83a72f1e88062d7e17ac77c17cc9c32d51f3c13;hpb=5738e60dc3724dc7d022d0fd2d5f2dbe337be470 diff --git a/sockets.lisp b/sockets.lisp index f7c8408..0ab5d94 100644 --- a/sockets.lisp +++ b/sockets.lisp @@ -7,7 +7,7 @@ ;;;; Programmer: Kevin M. Rosenberg with excerpts from portableaserve ;;;; Date Started: Jun 2003 ;;;; -;;;; $Id: sockets.lisp,v 1.5 2003/07/21 00:52:56 kevin Exp $ +;;;; $Id: sockets.lisp,v 1.6 2003/07/21 08:41:19 kevin Exp $ ;;;; ************************************************************************* (in-package #:kmrcl) @@ -127,13 +127,13 @@ setsockopt SO_REUSEADDR if :reuse is not nil" "Convert from dotted string to 32-bit integer." (declare (string dotted)) (if errorp - (let ((ll (string-tokens (substitute #\Space #\. dotted)))) + (let ((ll (delimited-string-to-list dotted #\.))) (+ (ash (first ll) 24) (ash (second ll) 16) (ash (third ll) 8) (fourth ll))) (ignore-errors - (let ((ll (string-tokens (substitute #\Space #\. dotted)))) - (+ (ash (first ll) 24) (ash (second ll) 16) - (ash (third ll) 8) (fourth ll)))))) + (let ((ll (delimited-string-to-list dotted #\.))) + (+ (ash (first ll) 24) (ash (second ll) 16) + (ash (third ll) 8) (fourth ll)))))) #+sbcl (defun ipaddr-to-hostname (ipaddr &key ignore-cache)