11 lines
		
	
	
		
			822 B
		
	
	
	
		
			Factor
		
	
	
		
			Executable File
		
	
			
		
		
	
	
			11 lines
		
	
	
		
			822 B
		
	
	
	
		
			Factor
		
	
	
		
			Executable File
		
	
USING: help help.syntax help.markup io ;
 | 
						|
IN: io.server
 | 
						|
 | 
						|
HELP: with-server
 | 
						|
{ $values { "seq" "a sequence of address specifiers" } { "service" "a string or " { $link f } } { "quot" "a quotation" } }
 | 
						|
{ $description "Starts a TCP/IP server. The quotation is called in a new thread for each client connection, with the client connection being the " { $link stdio } " stream. Client connections are logged to the " { $link stdio } " stream at the time the server was started." } ;
 | 
						|
 | 
						|
HELP: with-datagrams
 | 
						|
{ $values { "seq" "a sequence of address specifiers" } { "service" "a string or " { $link f } } { "quot" "a quotation" } }
 | 
						|
{ $description "Starts a UDP/IP server. The quotation is called for each datagram packet received. Datagram packets are logged to the " { $link stdio } " stream at the time the server was started." } ;
 |