[Openmcl-devel] Speaking of sockets...

Ron Garret ron at flownet.com
Tue Feb 9 11:30:48 PST 2021


Figured it out.  MAKE-SOCKET doesn’t do pathname expansion.  This works:

? (make-socket :address-family :file :type :stream :connect :passive :local-filename (namestring (pathname "~/test.sock")))
#<CCL::FILE-LISTENER-SOCKET #x30200105E4CD>

rg

On Feb 9, 2021, at 11:15 AM, Ron Garret <ron at flownet.com> wrote:

> Why doesn’t this work?
> 
> ? (make-socket :address-family :file :type :stream :connect :passive :local-filename "~/test.sock")
>> Error: on #<CCL::FILE-LISTENER-SOCKET #x302000E1E9BD> : 
>>       No such file or directory (error #2) during bind
> 
> I thought opening a passive-mode unix-domain socket was supposed to *create* the file.
> 
> rg
> 
> _______________________________________________
> Openmcl-devel mailing list
> Openmcl-devel at clozure.com
> https://lists.clozure.com/mailman/listinfo/openmcl-devel




More information about the Openmcl-devel mailing list