Unix Domain Sockets
unix-socket-available?
unix-socket-connect
unix-socket-path?
6.3

Unix Domain Sockets

Ryan Culpepper <[email protected]>

 (require racket/unix-socket) package: unix-socket-lib

A boolean value that indicates whether unix domain sockets are available and supported on the current platform. The supported platforms are Linux and Mac OS X; unix domain sockets are not supported on Windows and other Unix variants.

procedure

(unix-socket-connect socket-path)  
input-port? output-port?
  socket-path : unix-socket-path?
Connects to the unix domain socket associated with socket-path and returns an input port and output port for communicating with the socket.

procedure

(unix-socket-path? v)  boolean?

  v : any/c
Returns #t if v is a valid unix domain socket path for the current system, according to the following cases:

Otherwise, returns #f.