Next Previous Up Top Contents Index

10.4.2 The <SERVER-SOCKET> class

accept

Open generic function

accept server-socket #rest args #key => result 

Blocks until a connect request is received, then it returns a connected instance of <socket>. The particular subclass of <socket> returned depends on the actual class of the argument, which must be a general instance of <server-socket>. Calling accept on <tcp-server-socket> returns a connected <tcp-socket>. The keyword arguments are passed to the creation of the <socket> instance. For UDP sockets accept returns immediately with an instance of <udp-socket>. No blocking happens for UDP sockets because they are connectionless. After reading from a UDP socket returned from accept the socket can be interrogated for the location of the sender using remote-host and remote-port.

System and I/O Reference - 31 MAR 2000

Next Previous Up Top Contents Index