From: Adam W. <li...@co...> - 2004-12-13 06:08:08
|
Hi all, Am I misreading the implementation notes or is there no way to bind a server socket solely to localhost (so the server is only accessible to clients running on the local computer?) (SOCKET:SOCKET-SERVER &OPTIONAL [port-or-socket]) This function creates a socket an binds a port to the socket. The server exists to watch for client connect attempts. The optional argument is either a port (positive FIXNUM) or a SOCKET:SOCKET-STREAM (from whose peer the connections will be made). I suggest the interface should be: (SOCKET:SOCKET-SERVER &OPTIONAL [port-or-socket] [host]) Where a [host] of NIL binds to all network interfaces (thus being backwards compatible) and a supplied [host] only binds to the designated network interface (usually localhost/127.0.0.1 or the hostname). Regards, Adam |