Next: , Previous:  


3 The Server

The C server is run by the motifd program. This will create both Inet and Unix sockets for the Lisp client to connect to. By default, the Inet and Unix sockets will be specific to the user.

When a Lisp client connects to the server, it forks a copy of itself. Thus each Lisp application has an exclusive connection to a single C server process. To terminate the server, just ^C it.

Switches to change behavior:

-global

Sockets created for use by everyone rather than being user-specific.

-local

No Inet socket is created and the Unix socket is process-specific

-noinet

Instructs the server not to create an Inet socket.

-nounix

Instructs the server not to create a Unix socket.

-nofork

Will keep the server from forking when connections are made. This is useful when debugging the server or when you want the server to die when the application terminates.

-trace

Will spit out lots of stuff about what the server is doing. This is only for debugging purposes.

Typically, users do not need to be concerned with server switches since, by default, servers are created automatically by your Lisp process. However, if you wish to share servers, or use servers across the network, you will need to run the server manually.