IF Computer > MINERVA > Manual > Reference > Predicates > Communication between distributed Minerva processes. > listener_stop/3

listener_stop/3

MINERVA
ifcomputer logo
f
Expert Services on the Web

Stops the thread listening for input from a binary input stream

listener_stop(+Listener)

listener_start/3 stops the thread listening for input from a a binary input stream.

Arguments

Listener           object

Examples

main(_) :-
    server_start(1352, 3, accept_connection(_), _).

accept_connection(Socket) :- open(Socket, read, Input, [socket,buffered,binary]), open(Socket, write, Output, [socket,buffered,binary]), listener_start(Input, handle_request(_, _, Input, Output), _).

handle_request(logoff, Listener, Input, Output) :- !, close(Input), close(Output), listener_stop(Listener). handle_request(Request, Listener, Input, Output) :- ...

See also

server_start/4, server_stop/1, client_start/3, client_stop/1, listener_start/3, listener_stop/1, send/2, receive/2.

document: http://www.ifcomputer.co.jp/MINERVA/Manual/Reference/Predicates/sockets/listener_stop/print_en.html
published 2008/7/7 update 2002/3/19 (c) 1996-2006 IF Computer Japan
IF Computer 5-28-2 Sendagi, Bunkyo-ku Tel +81-3-5814-3352 info@ifcomputer.com
Customer Support Tokyo 113-0022 Japan   http://www.ifcomputer.com
Back> managed with ubiCMS