Safe Haskell | Safe |
---|
Client
Description
This untrusted module implements the client side of a player, which communicates with its server side via TCP.
Documentation
client :: Handle -> Handle -> Handle -> DC ()
returns a client
stdin stdout servDC
action that, when run
starts up the client side of a player, using "resign" as the
quit message (see Command).
-
stdin
andstdout
are the standard input and output for communicating with the user's terminal; they should have labeldcPublic
. -
serv
is the handle for communicating with the server side of the player; it should have labeldcPublic
. - The
DC
action should be run with current labeldcPublic
, and it maintains this current label throughout its execution.