./IRCclient.py [HOST PORT [OPTIONS]] | -z [OPTIONS]
Create a socket on HOST at PORT, and run it a client socket.
-i, –interactive, -z, –zenity Force Zenity interactivity : read args HOST and PORT interactively.
with Zenity and PyZenity (don’t use it unless you are sure to have both).
-ni, --non-interactive Disable Zenity interactivity : read args HOST and PORT from command line, Default.
-w Print << in beginning of every output (experimental).
-v Be verbous (print usefull informations about connections).
-h, --help Print this help message.
-a Print all message incomming from the client or outcomming to the server.
–debug Launch program in debug mod with pygdb.
$ ./PyRlwrap.py ./IRCclient.py naereen-corp.crans.org 9312 -v -a
- 09/2012
- By Lilian BESSON
- ENS de Cachan (M1 Mathematics & M1 Computer Science MPRI) mailto:lbesson@ens-cachan.fr
- For Naereen Corp.
- mailto:naereen-corporation@laposte.net https:sites.google.com/site/naereencorp/liste-des-projets/irc.
Turn off the support of ANSI Colors. Can be used other somewhere else, or on other modules, AFTER importing ANSIColors module !
Turn on the support of ANSI Colors. Can be used other somewhere else, or on other modules, AFTER importing ANSIColors module !
Args for all Zenity call
A remplacement for sys.exit : print an error message with Zenity before executing sys.exit.
1 to print messages
1 to print >> and << in output and input.
Create a socket designed to be a client, and connect it to @server. Return a socket.
Piece of text to be printed before each input
Piece of text to be printed before each output.
The help message, which can be printed to the user when invoking ‘\?’
Reaction to special message readed from the keyboard !
An infinite loop over the @msocket, which have to be a client socket assumed te be connected with @server (just used to print some usefull informations). Concurrently, read from stdin on client and write on stdout on server, and read on stdin on server and write on stdout on client. Use thread.
DEBUG, PRINT_ALL_MESSAGE, WRAPPER_PRINTED: are options for parametrize behaviour of client.
Help message for this program or this module (Keep in mind that it’s mainly designed to be a program, called from the command line)