gg
This commit is contained in:
35
server/doc/man/man3/Log.3
Normal file
35
server/doc/man/man3/Log.3
Normal file
@ -0,0 +1,35 @@
|
||||
.TH "Log" 3 "Wed Apr 15 2015" "Version 1.0" "Server DNC" \" -*- nroff -*-
|
||||
.ad l
|
||||
.nh
|
||||
.SH NAME
|
||||
Log \- Module \fBLog\fP\&.
|
||||
|
||||
.SH SYNOPSIS
|
||||
.br
|
||||
.PP
|
||||
.SS "Classes"
|
||||
|
||||
.in +1c
|
||||
.ti -1c
|
||||
.RI "class \fBbcolors\fP"
|
||||
.br
|
||||
.RI "\fIDefine constant color value for different level\&. \fP"
|
||||
.ti -1c
|
||||
.RI "class \fBLog\fP"
|
||||
.br
|
||||
.RI "\fI\fBLog\fP Manager\&. \fP"
|
||||
.ti -1c
|
||||
.RI "class \fBlvl\fP"
|
||||
.br
|
||||
.RI "\fIDefine constant value for level utils\&. \fP"
|
||||
.ti -1c
|
||||
.RI "class \fBSingleLevelFilter\fP"
|
||||
.br
|
||||
.RI "\fIFilter for one level\&. \fP"
|
||||
.in -1c
|
||||
.SH "Detailed Description"
|
||||
.PP
|
||||
Module \fBLog\fP\&.
|
||||
.SH "Author"
|
||||
.PP
|
||||
Generated automatically by Doxygen for Server DNC from the source code\&.
|
39
server/doc/man/man3/Log.py.3
Normal file
39
server/doc/man/man3/Log.py.3
Normal file
@ -0,0 +1,39 @@
|
||||
.TH "/home/sidya/PycharmProjects/DNC/serveur/Log.py" 3 "Wed Apr 15 2015" "Version 1.0" "Server DNC" \" -*- nroff -*-
|
||||
.ad l
|
||||
.nh
|
||||
.SH NAME
|
||||
/home/sidya/PycharmProjects/DNC/serveur/Log.py \-
|
||||
.SH SYNOPSIS
|
||||
.br
|
||||
.PP
|
||||
.SS "Classes"
|
||||
|
||||
.in +1c
|
||||
.ti -1c
|
||||
.RI "class \fBLog\&.bcolors\fP"
|
||||
.br
|
||||
.RI "\fIDefine constant color value for different level\&. \fP"
|
||||
.ti -1c
|
||||
.RI "class \fBLog\&.lvl\fP"
|
||||
.br
|
||||
.RI "\fIDefine constant value for level utils\&. \fP"
|
||||
.ti -1c
|
||||
.RI "class \fBLog\&.SingleLevelFilter\fP"
|
||||
.br
|
||||
.RI "\fIFilter for one level\&. \fP"
|
||||
.ti -1c
|
||||
.RI "class \fBLog\&.Log\fP"
|
||||
.br
|
||||
.RI "\fI\fBLog\fP Manager\&. \fP"
|
||||
.in -1c
|
||||
.SS "Namespaces"
|
||||
|
||||
.in +1c
|
||||
.ti -1c
|
||||
.RI " \fBLog\fP"
|
||||
.br
|
||||
.RI "\fIModule \fBLog\fP\&. \fP"
|
||||
.in -1c
|
||||
.SH "Author"
|
||||
.PP
|
||||
Generated automatically by Doxygen for Server DNC from the source code\&.
|
62
server/doc/man/man3/Log_Log.3
Normal file
62
server/doc/man/man3/Log_Log.3
Normal file
@ -0,0 +1,62 @@
|
||||
.TH "Log.Log" 3 "Wed Apr 15 2015" "Version 1.0" "Server DNC" \" -*- nroff -*-
|
||||
.ad l
|
||||
.nh
|
||||
.SH NAME
|
||||
Log.Log \- \fBLog\fP Manager\&.
|
||||
|
||||
.SH SYNOPSIS
|
||||
.br
|
||||
.PP
|
||||
.PP
|
||||
Inherits object\&.
|
||||
.SS "Public Member Functions"
|
||||
|
||||
.in +1c
|
||||
.ti -1c
|
||||
.RI "def \fB__init__\fP (self, directory)"
|
||||
.br
|
||||
.RI "\fIDefine 3 differents utils : activity\&.log -> all activity warning\&.log -> only warning error\&.log -> error Write all message on terminal too\&. \fP"
|
||||
.ti -1c
|
||||
.RI "def \fBprintL\fP (self, pMsg, pLvl)"
|
||||
.br
|
||||
.RI "\fIAdd color and write in log with an define level\&. \fP"
|
||||
.in -1c
|
||||
.SS "Public Attributes"
|
||||
|
||||
.in +1c
|
||||
.ti -1c
|
||||
.RI "\fBlogger\fP"
|
||||
.br
|
||||
.in -1c
|
||||
.SH "Detailed Description"
|
||||
.PP
|
||||
\fBLog\fP Manager\&.
|
||||
.SH "Constructor & Destructor Documentation"
|
||||
.PP
|
||||
.SS "def Log\&.Log\&.__init__ ( self, directory)"
|
||||
|
||||
.PP
|
||||
Define 3 differents utils : activity\&.log -> all activity warning\&.log -> only warning error\&.log -> error Write all message on terminal too\&.
|
||||
.SH "Member Function Documentation"
|
||||
.PP
|
||||
.SS "def Log\&.Log\&.printL ( self, pMsg, pLvl)"
|
||||
|
||||
.PP
|
||||
Add color and write in log with an define level\&.
|
||||
.PP
|
||||
\fBParameters:\fP
|
||||
.RS 4
|
||||
\fIpMsg\fP message to write in log
|
||||
.br
|
||||
\fIpLvl\fP level of log message
|
||||
.RE
|
||||
.PP
|
||||
|
||||
.SH "Member Data Documentation"
|
||||
.PP
|
||||
.SS "Log\&.Log\&.logger"
|
||||
|
||||
|
||||
.SH "Author"
|
||||
.PP
|
||||
Generated automatically by Doxygen for Server DNC from the source code\&.
|
72
server/doc/man/man3/Log_SingleLevelFilter.3
Normal file
72
server/doc/man/man3/Log_SingleLevelFilter.3
Normal file
@ -0,0 +1,72 @@
|
||||
.TH "Log.SingleLevelFilter" 3 "Wed Apr 15 2015" "Version 1.0" "Server DNC" \" -*- nroff -*-
|
||||
.ad l
|
||||
.nh
|
||||
.SH NAME
|
||||
Log.SingleLevelFilter \- Filter for one level\&.
|
||||
|
||||
.SH SYNOPSIS
|
||||
.br
|
||||
.PP
|
||||
.PP
|
||||
Inherits Filter\&.
|
||||
.SS "Public Member Functions"
|
||||
|
||||
.in +1c
|
||||
.ti -1c
|
||||
.RI "def \fB__init__\fP (self, \fBpasslevel\fP, \fBreject\fP)"
|
||||
.br
|
||||
.RI "\fIConstructor\&. \fP"
|
||||
.ti -1c
|
||||
.RI "def \fBfilter\fP (self, record)"
|
||||
.br
|
||||
.in -1c
|
||||
.SS "Public Attributes"
|
||||
|
||||
.in +1c
|
||||
.ti -1c
|
||||
.RI "\fBpasslevel\fP"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "\fBreject\fP"
|
||||
.br
|
||||
.in -1c
|
||||
.SH "Detailed Description"
|
||||
.PP
|
||||
Filter for one level\&.
|
||||
|
||||
|
||||
.PP
|
||||
.nf
|
||||
|
||||
.fi
|
||||
.PP
|
||||
|
||||
.SH "Constructor & Destructor Documentation"
|
||||
.PP
|
||||
.SS "def Log\&.SingleLevelFilter\&.__init__ ( self, passlevel, reject)"
|
||||
|
||||
.PP
|
||||
Constructor\&.
|
||||
.PP
|
||||
\fBParameters:\fP
|
||||
.RS 4
|
||||
\fIpasslevel\fP level to filter
|
||||
.br
|
||||
\fIreject\fP true on reject state
|
||||
.RE
|
||||
.PP
|
||||
|
||||
.SH "Member Function Documentation"
|
||||
.PP
|
||||
.SS "def Log\&.SingleLevelFilter\&.filter ( self, record)"
|
||||
|
||||
.SH "Member Data Documentation"
|
||||
.PP
|
||||
.SS "Log\&.SingleLevelFilter\&.passlevel"
|
||||
|
||||
.SS "Log\&.SingleLevelFilter\&.reject"
|
||||
|
||||
|
||||
.SH "Author"
|
||||
.PP
|
||||
Generated automatically by Doxygen for Server DNC from the source code\&.
|
47
server/doc/man/man3/Log_bcolors.3
Normal file
47
server/doc/man/man3/Log_bcolors.3
Normal file
@ -0,0 +1,47 @@
|
||||
.TH "Log.bcolors" 3 "Wed Apr 15 2015" "Version 1.0" "Server DNC" \" -*- nroff -*-
|
||||
.ad l
|
||||
.nh
|
||||
.SH NAME
|
||||
Log.bcolors \- Define constant color value for different level\&.
|
||||
|
||||
.SH SYNOPSIS
|
||||
.br
|
||||
.PP
|
||||
.SS "Static Public Attributes"
|
||||
|
||||
.in +1c
|
||||
.ti -1c
|
||||
.RI "string \fBDEBUG\fP = '\\033[94m '"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "string \fBINFO\fP = ' \\033[95m '"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "string \fBWARNING\fP = ' \\033[93m '"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "string \fBFAIL\fP = ' \\033[91m '"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "string \fBENDC\fP = ' \\033[0m '"
|
||||
.br
|
||||
.in -1c
|
||||
.SH "Detailed Description"
|
||||
.PP
|
||||
Define constant color value for different level\&.
|
||||
.SH "Member Data Documentation"
|
||||
.PP
|
||||
.SS "string Log\&.bcolors\&.DEBUG = '\\033[94m '\fC [static]\fP"
|
||||
|
||||
.SS "string Log\&.bcolors\&.ENDC = ' \\033[0m '\fC [static]\fP"
|
||||
|
||||
.SS "string Log\&.bcolors\&.FAIL = ' \\033[91m '\fC [static]\fP"
|
||||
|
||||
.SS "string Log\&.bcolors\&.INFO = ' \\033[95m '\fC [static]\fP"
|
||||
|
||||
.SS "string Log\&.bcolors\&.WARNING = ' \\033[93m '\fC [static]\fP"
|
||||
|
||||
|
||||
.SH "Author"
|
||||
.PP
|
||||
Generated automatically by Doxygen for Server DNC from the source code\&.
|
52
server/doc/man/man3/Log_lvl.3
Normal file
52
server/doc/man/man3/Log_lvl.3
Normal file
@ -0,0 +1,52 @@
|
||||
.TH "Log.lvl" 3 "Wed Apr 15 2015" "Version 1.0" "Server DNC" \" -*- nroff -*-
|
||||
.ad l
|
||||
.nh
|
||||
.SH NAME
|
||||
Log.lvl \- Define constant value for level utils\&.
|
||||
|
||||
.SH SYNOPSIS
|
||||
.br
|
||||
.PP
|
||||
.SS "Static Public Attributes"
|
||||
|
||||
.in +1c
|
||||
.ti -1c
|
||||
.RI "int \fBNOTSET\fP = 0"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "int \fBDEBUG\fP = 10"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "int \fBINFO\fP = 20"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "int \fBWARNING\fP = 30"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "int \fBFAIL\fP = 40"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "int \fBCRITICAL\fP = 50"
|
||||
.br
|
||||
.in -1c
|
||||
.SH "Detailed Description"
|
||||
.PP
|
||||
Define constant value for level utils\&.
|
||||
.SH "Member Data Documentation"
|
||||
.PP
|
||||
.SS "int Log\&.lvl\&.CRITICAL = 50\fC [static]\fP"
|
||||
|
||||
.SS "int Log\&.lvl\&.DEBUG = 10\fC [static]\fP"
|
||||
|
||||
.SS "int Log\&.lvl\&.FAIL = 40\fC [static]\fP"
|
||||
|
||||
.SS "int Log\&.lvl\&.INFO = 20\fC [static]\fP"
|
||||
|
||||
.SS "int Log\&.lvl\&.NOTSET = 0\fC [static]\fP"
|
||||
|
||||
.SS "int Log\&.lvl\&.WARNING = 30\fC [static]\fP"
|
||||
|
||||
|
||||
.SH "Author"
|
||||
.PP
|
||||
Generated automatically by Doxygen for Server DNC from the source code\&.
|
11
server/doc/man/man3/README.md.3
Normal file
11
server/doc/man/man3/README.md.3
Normal file
@ -0,0 +1,11 @@
|
||||
.TH "/home/sidya/PycharmProjects/DNC/serveur/README.md" 3 "Wed Apr 15 2015" "Version 1.0" "Server DNC" \" -*- nroff -*-
|
||||
.ad l
|
||||
.nh
|
||||
.SH NAME
|
||||
/home/sidya/PycharmProjects/DNC/serveur/README.md \-
|
||||
.SH SYNOPSIS
|
||||
.br
|
||||
.PP
|
||||
.SH "Author"
|
||||
.PP
|
||||
Generated automatically by Doxygen for Server DNC from the source code\&.
|
536
server/doc/man/man3/Server.3
Normal file
536
server/doc/man/man3/Server.3
Normal file
@ -0,0 +1,536 @@
|
||||
.TH "Server" 3 "Wed Apr 15 2015" "Version 1.0" "Server DNC" \" -*- nroff -*-
|
||||
.ad l
|
||||
.nh
|
||||
.SH NAME
|
||||
Server \- Module server\&.
|
||||
|
||||
.SH SYNOPSIS
|
||||
.br
|
||||
.PP
|
||||
.SS "Functions"
|
||||
|
||||
.in +1c
|
||||
.ti -1c
|
||||
.RI "def \fBmain\fP ()"
|
||||
.br
|
||||
.RI "\fILoad Configuration and Start the \fBServer\fP\&. \fP"
|
||||
.ti -1c
|
||||
.RI "def \fBhandle_connection\fP (connection, client_address)"
|
||||
.br
|
||||
.RI "\fIHandle a connection from a client\&. \fP"
|
||||
.ti -1c
|
||||
.RI "def \fBhandle_request\fP (connection, data)"
|
||||
.br
|
||||
.RI "\fIHandle a request\&. \fP"
|
||||
.ti -1c
|
||||
.RI "def \fBbroadcast_message\fP (connection, message)"
|
||||
.br
|
||||
.RI "\fIBroadcast a message to all the users connected except to the sender of the request\&. \fP"
|
||||
.ti -1c
|
||||
.RI "def \fBuser_list_active\fP (connection)"
|
||||
.br
|
||||
.RI "\fISend the list of enable user\&. \fP"
|
||||
.ti -1c
|
||||
.RI "def \fBuser_list_away\fP (connection)"
|
||||
.br
|
||||
.RI "\fISend the list of disable user\&. \fP"
|
||||
.ti -1c
|
||||
.RI "def \fBchange_name\fP (connection, pseudo)"
|
||||
.br
|
||||
.RI "\fIChange the nickname of the user\&. \fP"
|
||||
.ti -1c
|
||||
.RI "def \fBnew_name\fP (connection, pseudo)"
|
||||
.br
|
||||
.RI "\fIAffect the nickname of the user for the first time\&. \fP"
|
||||
.ti -1c
|
||||
.RI "def \fBask_private_message\fP (connection, pseudo)"
|
||||
.br
|
||||
.RI "\fIAsk for a private discussion between the sender of the request and the pseudo\&. \fP"
|
||||
.ti -1c
|
||||
.RI "def \fBaccept_private_message\fP (connection, pseudo)"
|
||||
.br
|
||||
.RI "\fIAccept a private discussion\&. \fP"
|
||||
.ti -1c
|
||||
.RI "def \fBreject_private_message\fP (connection, pseudo)"
|
||||
.br
|
||||
.RI "\fIReject a private discussion\&. \fP"
|
||||
.ti -1c
|
||||
.RI "def \fBprivate_message\fP (connection, pseudo, msg)"
|
||||
.br
|
||||
.RI "\fISend a private message if a private discussion had been accepted\&. \fP"
|
||||
.ti -1c
|
||||
.RI "def \fBask_file\fP (connection, pseudo, file)"
|
||||
.br
|
||||
.RI "\fIAsk for a file transfer between the sender of the request and the pseudo\&. \fP"
|
||||
.ti -1c
|
||||
.RI "def \fBaccept_file\fP (connection, pseudo, file, port)"
|
||||
.br
|
||||
.RI "\fIAccept a file transfer\&. \fP"
|
||||
.ti -1c
|
||||
.RI "def \fBreject_file\fP (connection, pseudo, file)"
|
||||
.br
|
||||
.RI "\fIReject a file transfer\&. \fP"
|
||||
.ti -1c
|
||||
.RI "def \fBenable_user\fP (connection)"
|
||||
.br
|
||||
.RI "\fIEnable user\&. \fP"
|
||||
.ti -1c
|
||||
.RI "def \fBdisable_user\fP (connection)"
|
||||
.br
|
||||
.RI "\fIDisable user\&. \fP"
|
||||
.ti -1c
|
||||
.RI "def \fBquit_user\fP (connection)"
|
||||
.br
|
||||
.RI "\fIDisconnect user\&. \fP"
|
||||
.ti -1c
|
||||
.RI "def \fBget_connection_by_pseudo\fP (pseudo)"
|
||||
.br
|
||||
.RI "\fIGet the socket descriptor by a pseudo\&. \fP"
|
||||
.in -1c
|
||||
.SS "Variables"
|
||||
|
||||
.in +1c
|
||||
.ti -1c
|
||||
.RI "int \fBUSERLIST_ENABLE\fP = 300"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "int \fBUSERLIST_DISABLE\fP = 301"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "int \fBHAS_JOIN\fP = 302"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "int \fBHAS_LEFT\fP = 303"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "int \fBNEW_MSG\fP = 304"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "int \fBNAME_CHANGED\fP = 305"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "int \fBNEW_PM\fP = 306"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "int \fBASKING_FOR_PM\fP = 307"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "int \fBPRIVATE_DISCU_ACCEPTED_FROM\fP = 308"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "int \fBPRIVATE_DISCU_REFUSED_FROM\fP = 309"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "int \fBIS_NOW_ENABLE\fP = 310"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "int \fBIS_NOW_DISABLE\fP = 311"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "int \fBHAS_ASKED_FILE\fP = 312"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "int \fBCAN_SEND_FILE\fP = 313"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "int \fBHAS_REJECT_FILE\fP = 314"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "int \fBSUCC_CHANNEL_JOINED\fP = 200"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "int \fBSUCC_CHANNEL_QUIT\fP = 201"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "int \fBSUCC_MESSAGE_SENDED\fP = 202"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "int \fBSUCC_NICKNAME_CHANGED\fP = 203"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "int \fBSUCC_PM_SENDED\fP = 205"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "int \fBSUCCESSFUL_ASKED_CONV\fP = 206"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "int \fBSUCCESSFUL_ACCEPTED_CONV\fP = 207"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "int \fBSUCCESSFUL_REFUSED_CONV\fP = 208"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "int \fBSUCC_ENABLED\fP = 209"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "int \fBSUCC_DISABLED\fP = 210"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "int \fBSUCC_PMFILE\fP = 211"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "int \fBSUCC_ACCEPTED_FILE\fP = 212"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "int \fBSUCC_REFUSED_FILE\fP = 213"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "int \fBERR_NICKNAME_ALREADY_USED\fP = 400"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "int \fBERR_NO_NICKNAME\fP = 401"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "int \fBERR_CONV_NOT_ALLOWED\fP = 402"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "int \fBDEST_NOT_FOUND\fP = 403"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "int \fBERR_ALREADY_ASKED_FOR_PM\fP = 404"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "int \fBERR_NO_INVIT_TO_CONV_FOUND\fP = 405"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "int \fBERR_UNKNOWN_ACCEPTED_FILE\fP = 406"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "int \fBCOMMAND_NOT_FOUND\fP = 407"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "int \fBERR_INVALID_NICKNAME\fP = 408"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "int \fBERR_INTERNAL_SERVER_ERROR\fP = 409"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "int \fBERR_NOT_DISABLED\fP = 410"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "int \fBERR_NOT_ENABLED\fP = 411"
|
||||
.br
|
||||
.in -1c
|
||||
.SH "Detailed Description"
|
||||
.PP
|
||||
Module server\&.
|
||||
.SH "Function Documentation"
|
||||
.PP
|
||||
.SS "def Server\&.accept_file ( connection, pseudo, file, port)"
|
||||
|
||||
.PP
|
||||
Accept a file transfer\&.
|
||||
.PP
|
||||
\fBParameters:\fP
|
||||
.RS 4
|
||||
\fIconnection\fP the socket descriptor of the person who accept a file transfer
|
||||
.br
|
||||
\fIpseudo\fP the pseudo of the person who asked for a file transfer
|
||||
.RE
|
||||
.PP
|
||||
|
||||
.SS "def Server\&.accept_private_message ( connection, pseudo)"
|
||||
|
||||
.PP
|
||||
Accept a private discussion\&.
|
||||
.PP
|
||||
\fBParameters:\fP
|
||||
.RS 4
|
||||
\fIconnection\fP the socket descriptor of the person who accept the private discussion
|
||||
.br
|
||||
\fIpseudo\fP the pseudo of the person who asked for a private discussion
|
||||
.RE
|
||||
.PP
|
||||
|
||||
.SS "def Server\&.ask_file ( connection, pseudo, file)"
|
||||
|
||||
.PP
|
||||
Ask for a file transfer between the sender of the request and the pseudo\&.
|
||||
.PP
|
||||
\fBParameters:\fP
|
||||
.RS 4
|
||||
\fIconnection\fP the socket descriptor of the sender
|
||||
.br
|
||||
\fIpseudo\fP the pseudo of target of the demand
|
||||
.RE
|
||||
.PP
|
||||
|
||||
.SS "def Server\&.ask_private_message ( connection, pseudo)"
|
||||
|
||||
.PP
|
||||
Ask for a private discussion between the sender of the request and the pseudo\&.
|
||||
.PP
|
||||
\fBParameters:\fP
|
||||
.RS 4
|
||||
\fIconnection\fP the socket descriptor of the sender
|
||||
.br
|
||||
\fIpseudo\fP the pseudo of target of the demand
|
||||
.RE
|
||||
.PP
|
||||
|
||||
.SS "def Server\&.broadcast_message ( connection, message)"
|
||||
|
||||
.PP
|
||||
Broadcast a message to all the users connected except to the sender of the request\&.
|
||||
.PP
|
||||
\fBParameters:\fP
|
||||
.RS 4
|
||||
\fIconnection\fP the socket descriptor of the request sender
|
||||
.br
|
||||
\fImessage\fP message to broadcast (String)
|
||||
.RE
|
||||
.PP
|
||||
|
||||
.SS "def Server\&.change_name ( connection, pseudo)"
|
||||
|
||||
.PP
|
||||
Change the nickname of the user\&.
|
||||
.PP
|
||||
\fBParameters:\fP
|
||||
.RS 4
|
||||
\fIconnection\fP the socket descriptor of the target
|
||||
.br
|
||||
\fIpseudo\fP new nickname for the user (String)
|
||||
.RE
|
||||
.PP
|
||||
|
||||
.SS "def Server\&.disable_user ( connection)"
|
||||
|
||||
.PP
|
||||
Disable user\&.
|
||||
.PP
|
||||
\fBParameters:\fP
|
||||
.RS 4
|
||||
\fIconnection\fP the socket descriptor of the person to disable
|
||||
.RE
|
||||
.PP
|
||||
|
||||
.SS "def Server\&.enable_user ( connection)"
|
||||
|
||||
.PP
|
||||
Enable user\&.
|
||||
.PP
|
||||
\fBParameters:\fP
|
||||
.RS 4
|
||||
\fIconnection\fP the socket descriptor of the person to enable
|
||||
.RE
|
||||
.PP
|
||||
|
||||
.SS "def Server\&.get_connection_by_pseudo ( pseudo)"
|
||||
|
||||
.PP
|
||||
Get the socket descriptor by a pseudo\&.
|
||||
.PP
|
||||
\fBParameters:\fP
|
||||
.RS 4
|
||||
\fIpseudo\fP pseudo
|
||||
.RE
|
||||
.PP
|
||||
\fBReturns:\fP
|
||||
.RS 4
|
||||
the socket descriptor of the pseudo or None
|
||||
.RE
|
||||
.PP
|
||||
|
||||
.SS "def Server\&.handle_connection ( connection, client_address)"
|
||||
|
||||
.PP
|
||||
Handle a connection from a client\&. Wait for request from the client
|
||||
.PP
|
||||
\fBParameters:\fP
|
||||
.RS 4
|
||||
\fIconnection\fP the socket descriptor of the connection
|
||||
.br
|
||||
\fIclient_adress\fP ('ip', port) of the connection
|
||||
.RE
|
||||
.PP
|
||||
|
||||
.SS "def Server\&.handle_request ( connection, data)"
|
||||
|
||||
.PP
|
||||
Handle a request\&.
|
||||
.PP
|
||||
\fBParameters:\fP
|
||||
.RS 4
|
||||
\fIconnection\fP the socket descriptor of the request sender
|
||||
.br
|
||||
\fIdata\fP the request to handle in String
|
||||
.RE
|
||||
.PP
|
||||
|
||||
.SS "def Server\&.main ()"
|
||||
|
||||
.PP
|
||||
Load Configuration and Start the \fBServer\fP\&.
|
||||
.SS "def Server\&.new_name ( connection, pseudo)"
|
||||
|
||||
.PP
|
||||
Affect the nickname of the user for the first time\&.
|
||||
.PP
|
||||
\fBParameters:\fP
|
||||
.RS 4
|
||||
\fIconnection\fP the socket descriptor of the target
|
||||
.br
|
||||
\fIpseudo\fP nickname for the user (String)
|
||||
.RE
|
||||
.PP
|
||||
|
||||
.SS "def Server\&.private_message ( connection, pseudo, msg)"
|
||||
|
||||
.PP
|
||||
Send a private message if a private discussion had been accepted\&.
|
||||
.PP
|
||||
\fBParameters:\fP
|
||||
.RS 4
|
||||
\fIconnection\fP the soccket descriptor of the sender
|
||||
.br
|
||||
\fIpseudo\fP the pseudo of the private message target
|
||||
.br
|
||||
\fImsg\fP the message to send
|
||||
.RE
|
||||
.PP
|
||||
|
||||
.SS "def Server\&.quit_user ( connection)"
|
||||
|
||||
.PP
|
||||
Disconnect user\&.
|
||||
.PP
|
||||
\fBParameters:\fP
|
||||
.RS 4
|
||||
\fIconnection\fP the socket descriptor of the person to disconnect
|
||||
.RE
|
||||
.PP
|
||||
|
||||
.SS "def Server\&.reject_file ( connection, pseudo, file)"
|
||||
|
||||
.PP
|
||||
Reject a file transfer\&.
|
||||
.PP
|
||||
\fBParameters:\fP
|
||||
.RS 4
|
||||
\fIconnection\fP the socket descriptor of the person who reject a file transfer
|
||||
.br
|
||||
\fIpseudo\fP the pseudo of the person who asked for a file transfer
|
||||
.RE
|
||||
.PP
|
||||
|
||||
.SS "def Server\&.reject_private_message ( connection, pseudo)"
|
||||
|
||||
.PP
|
||||
Reject a private discussion\&.
|
||||
.PP
|
||||
\fBParameters:\fP
|
||||
.RS 4
|
||||
\fIconnection\fP the socket descriptor of the person who reject private discussion
|
||||
.br
|
||||
\fIpseudo\fP the pseudo of the person who asked for a private discussion
|
||||
.RE
|
||||
.PP
|
||||
|
||||
.SS "def Server\&.user_list_active ( connection)"
|
||||
|
||||
.PP
|
||||
Send the list of enable user\&.
|
||||
.PP
|
||||
\fBParameters:\fP
|
||||
.RS 4
|
||||
\fIconnection\fP the socket descriptor of the target
|
||||
.RE
|
||||
.PP
|
||||
|
||||
.SS "def Server\&.user_list_away ( connection)"
|
||||
|
||||
.PP
|
||||
Send the list of disable user\&.
|
||||
.PP
|
||||
\fBParameters:\fP
|
||||
.RS 4
|
||||
\fIconnection\fP the socket descriptor of the target
|
||||
.RE
|
||||
.PP
|
||||
|
||||
.SH "Variable Documentation"
|
||||
.PP
|
||||
.SS "int Server\&.ASKING_FOR_PM = 307"
|
||||
|
||||
.SS "int Server\&.CAN_SEND_FILE = 313"
|
||||
|
||||
.SS "int Server\&.COMMAND_NOT_FOUND = 407"
|
||||
|
||||
.SS "int Server\&.DEST_NOT_FOUND = 403"
|
||||
|
||||
.SS "int Server\&.ERR_ALREADY_ASKED_FOR_PM = 404"
|
||||
|
||||
.SS "int Server\&.ERR_CONV_NOT_ALLOWED = 402"
|
||||
|
||||
.SS "int Server\&.ERR_INTERNAL_SERVER_ERROR = 409"
|
||||
|
||||
.SS "int Server\&.ERR_INVALID_NICKNAME = 408"
|
||||
|
||||
.SS "int Server\&.ERR_NICKNAME_ALREADY_USED = 400"
|
||||
|
||||
.SS "int Server\&.ERR_NO_INVIT_TO_CONV_FOUND = 405"
|
||||
|
||||
.SS "int Server\&.ERR_NO_NICKNAME = 401"
|
||||
|
||||
.SS "int Server\&.ERR_NOT_DISABLED = 410"
|
||||
|
||||
.SS "int Server\&.ERR_NOT_ENABLED = 411"
|
||||
|
||||
.SS "int Server\&.ERR_UNKNOWN_ACCEPTED_FILE = 406"
|
||||
|
||||
.SS "int Server\&.HAS_ASKED_FILE = 312"
|
||||
|
||||
.SS "int Server\&.HAS_JOIN = 302"
|
||||
|
||||
.SS "int Server\&.HAS_LEFT = 303"
|
||||
|
||||
.SS "int Server\&.HAS_REJECT_FILE = 314"
|
||||
|
||||
.SS "int Server\&.IS_NOW_DISABLE = 311"
|
||||
|
||||
.SS "int Server\&.IS_NOW_ENABLE = 310"
|
||||
|
||||
.SS "int Server\&.NAME_CHANGED = 305"
|
||||
|
||||
.SS "int Server\&.NEW_MSG = 304"
|
||||
|
||||
.SS "int Server\&.NEW_PM = 306"
|
||||
|
||||
.SS "int Server\&.PRIVATE_DISCU_ACCEPTED_FROM = 308"
|
||||
|
||||
.SS "int Server\&.PRIVATE_DISCU_REFUSED_FROM = 309"
|
||||
|
||||
.SS "int Server\&.SUCC_ACCEPTED_FILE = 212"
|
||||
|
||||
.SS "int Server\&.SUCC_CHANNEL_JOINED = 200"
|
||||
|
||||
.SS "int Server\&.SUCC_CHANNEL_QUIT = 201"
|
||||
|
||||
.SS "int Server\&.SUCC_DISABLED = 210"
|
||||
|
||||
.SS "int Server\&.SUCC_ENABLED = 209"
|
||||
|
||||
.SS "int Server\&.SUCC_MESSAGE_SENDED = 202"
|
||||
|
||||
.SS "int Server\&.SUCC_NICKNAME_CHANGED = 203"
|
||||
|
||||
.SS "int Server\&.SUCC_PM_SENDED = 205"
|
||||
|
||||
.SS "int Server\&.SUCC_PMFILE = 211"
|
||||
|
||||
.SS "int Server\&.SUCC_REFUSED_FILE = 213"
|
||||
|
||||
.SS "int Server\&.SUCCESSFUL_ACCEPTED_CONV = 207"
|
||||
|
||||
.SS "int Server\&.SUCCESSFUL_ASKED_CONV = 206"
|
||||
|
||||
.SS "int Server\&.SUCCESSFUL_REFUSED_CONV = 208"
|
||||
|
||||
.SS "int Server\&.USERLIST_DISABLE = 301"
|
||||
|
||||
.SS "int Server\&.USERLIST_ENABLE = 300"
|
||||
|
||||
.SH "Author"
|
||||
.PP
|
||||
Generated automatically by Doxygen for Server DNC from the source code\&.
|
223
server/doc/man/man3/Server.py.3
Normal file
223
server/doc/man/man3/Server.py.3
Normal file
@ -0,0 +1,223 @@
|
||||
.TH "/home/sidya/PycharmProjects/DNC/serveur/Server.py" 3 "Wed Apr 15 2015" "Version 1.0" "Server DNC" \" -*- nroff -*-
|
||||
.ad l
|
||||
.nh
|
||||
.SH NAME
|
||||
/home/sidya/PycharmProjects/DNC/serveur/Server.py \-
|
||||
.SH SYNOPSIS
|
||||
.br
|
||||
.PP
|
||||
.SS "Namespaces"
|
||||
|
||||
.in +1c
|
||||
.ti -1c
|
||||
.RI " \fBServer\fP"
|
||||
.br
|
||||
.RI "\fIModule server\&. \fP"
|
||||
.in -1c
|
||||
.SS "Functions"
|
||||
|
||||
.in +1c
|
||||
.ti -1c
|
||||
.RI "def \fBServer\&.main\fP ()"
|
||||
.br
|
||||
.RI "\fILoad Configuration and Start the \fBServer\fP\&. \fP"
|
||||
.ti -1c
|
||||
.RI "def \fBServer\&.handle_connection\fP (connection, client_address)"
|
||||
.br
|
||||
.RI "\fIHandle a connection from a client\&. \fP"
|
||||
.ti -1c
|
||||
.RI "def \fBServer\&.handle_request\fP (connection, data)"
|
||||
.br
|
||||
.RI "\fIHandle a request\&. \fP"
|
||||
.ti -1c
|
||||
.RI "def \fBServer\&.broadcast_message\fP (connection, message)"
|
||||
.br
|
||||
.RI "\fIBroadcast a message to all the users connected except to the sender of the request\&. \fP"
|
||||
.ti -1c
|
||||
.RI "def \fBServer\&.user_list_active\fP (connection)"
|
||||
.br
|
||||
.RI "\fISend the list of enable user\&. \fP"
|
||||
.ti -1c
|
||||
.RI "def \fBServer\&.user_list_away\fP (connection)"
|
||||
.br
|
||||
.RI "\fISend the list of disable user\&. \fP"
|
||||
.ti -1c
|
||||
.RI "def \fBServer\&.change_name\fP (connection, pseudo)"
|
||||
.br
|
||||
.RI "\fIChange the nickname of the user\&. \fP"
|
||||
.ti -1c
|
||||
.RI "def \fBServer\&.new_name\fP (connection, pseudo)"
|
||||
.br
|
||||
.RI "\fIAffect the nickname of the user for the first time\&. \fP"
|
||||
.ti -1c
|
||||
.RI "def \fBServer\&.ask_private_message\fP (connection, pseudo)"
|
||||
.br
|
||||
.RI "\fIAsk for a private discussion between the sender of the request and the pseudo\&. \fP"
|
||||
.ti -1c
|
||||
.RI "def \fBServer\&.accept_private_message\fP (connection, pseudo)"
|
||||
.br
|
||||
.RI "\fIAccept a private discussion\&. \fP"
|
||||
.ti -1c
|
||||
.RI "def \fBServer\&.reject_private_message\fP (connection, pseudo)"
|
||||
.br
|
||||
.RI "\fIReject a private discussion\&. \fP"
|
||||
.ti -1c
|
||||
.RI "def \fBServer\&.private_message\fP (connection, pseudo, msg)"
|
||||
.br
|
||||
.RI "\fISend a private message if a private discussion had been accepted\&. \fP"
|
||||
.ti -1c
|
||||
.RI "def \fBServer\&.ask_file\fP (connection, pseudo, file)"
|
||||
.br
|
||||
.RI "\fIAsk for a file transfer between the sender of the request and the pseudo\&. \fP"
|
||||
.ti -1c
|
||||
.RI "def \fBServer\&.accept_file\fP (connection, pseudo, file, port)"
|
||||
.br
|
||||
.RI "\fIAccept a file transfer\&. \fP"
|
||||
.ti -1c
|
||||
.RI "def \fBServer\&.reject_file\fP (connection, pseudo, file)"
|
||||
.br
|
||||
.RI "\fIReject a file transfer\&. \fP"
|
||||
.ti -1c
|
||||
.RI "def \fBServer\&.enable_user\fP (connection)"
|
||||
.br
|
||||
.RI "\fIEnable user\&. \fP"
|
||||
.ti -1c
|
||||
.RI "def \fBServer\&.disable_user\fP (connection)"
|
||||
.br
|
||||
.RI "\fIDisable user\&. \fP"
|
||||
.ti -1c
|
||||
.RI "def \fBServer\&.quit_user\fP (connection)"
|
||||
.br
|
||||
.RI "\fIDisconnect user\&. \fP"
|
||||
.ti -1c
|
||||
.RI "def \fBServer\&.get_connection_by_pseudo\fP (pseudo)"
|
||||
.br
|
||||
.RI "\fIGet the socket descriptor by a pseudo\&. \fP"
|
||||
.in -1c
|
||||
.SS "Variables"
|
||||
|
||||
.in +1c
|
||||
.ti -1c
|
||||
.RI "int \fBServer\&.USERLIST_ENABLE\fP = 300"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "int \fBServer\&.USERLIST_DISABLE\fP = 301"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "int \fBServer\&.HAS_JOIN\fP = 302"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "int \fBServer\&.HAS_LEFT\fP = 303"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "int \fBServer\&.NEW_MSG\fP = 304"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "int \fBServer\&.NAME_CHANGED\fP = 305"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "int \fBServer\&.NEW_PM\fP = 306"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "int \fBServer\&.ASKING_FOR_PM\fP = 307"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "int \fBServer\&.PRIVATE_DISCU_ACCEPTED_FROM\fP = 308"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "int \fBServer\&.PRIVATE_DISCU_REFUSED_FROM\fP = 309"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "int \fBServer\&.IS_NOW_ENABLE\fP = 310"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "int \fBServer\&.IS_NOW_DISABLE\fP = 311"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "int \fBServer\&.HAS_ASKED_FILE\fP = 312"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "int \fBServer\&.CAN_SEND_FILE\fP = 313"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "int \fBServer\&.HAS_REJECT_FILE\fP = 314"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "int \fBServer\&.SUCC_CHANNEL_JOINED\fP = 200"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "int \fBServer\&.SUCC_CHANNEL_QUIT\fP = 201"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "int \fBServer\&.SUCC_MESSAGE_SENDED\fP = 202"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "int \fBServer\&.SUCC_NICKNAME_CHANGED\fP = 203"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "int \fBServer\&.SUCC_PM_SENDED\fP = 205"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "int \fBServer\&.SUCCESSFUL_ASKED_CONV\fP = 206"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "int \fBServer\&.SUCCESSFUL_ACCEPTED_CONV\fP = 207"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "int \fBServer\&.SUCCESSFUL_REFUSED_CONV\fP = 208"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "int \fBServer\&.SUCC_ENABLED\fP = 209"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "int \fBServer\&.SUCC_DISABLED\fP = 210"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "int \fBServer\&.SUCC_PMFILE\fP = 211"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "int \fBServer\&.SUCC_ACCEPTED_FILE\fP = 212"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "int \fBServer\&.SUCC_REFUSED_FILE\fP = 213"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "int \fBServer\&.ERR_NICKNAME_ALREADY_USED\fP = 400"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "int \fBServer\&.ERR_NO_NICKNAME\fP = 401"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "int \fBServer\&.ERR_CONV_NOT_ALLOWED\fP = 402"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "int \fBServer\&.DEST_NOT_FOUND\fP = 403"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "int \fBServer\&.ERR_ALREADY_ASKED_FOR_PM\fP = 404"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "int \fBServer\&.ERR_NO_INVIT_TO_CONV_FOUND\fP = 405"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "int \fBServer\&.ERR_UNKNOWN_ACCEPTED_FILE\fP = 406"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "int \fBServer\&.COMMAND_NOT_FOUND\fP = 407"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "int \fBServer\&.ERR_INVALID_NICKNAME\fP = 408"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "int \fBServer\&.ERR_INTERNAL_SERVER_ERROR\fP = 409"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "int \fBServer\&.ERR_NOT_DISABLED\fP = 410"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "int \fBServer\&.ERR_NOT_ENABLED\fP = 411"
|
||||
.br
|
||||
.in -1c
|
||||
.SH "Author"
|
||||
.PP
|
||||
Generated automatically by Doxygen for Server DNC from the source code\&.
|
25
server/doc/man/man3/__init__.py.3
Normal file
25
server/doc/man/man3/__init__.py.3
Normal file
@ -0,0 +1,25 @@
|
||||
.TH "__init__.py" 3 "Wed Apr 15 2015" "Version 1.0" "Server DNC" \" -*- nroff -*-
|
||||
.ad l
|
||||
.nh
|
||||
.SH NAME
|
||||
__init__.py \-
|
||||
.SH SYNOPSIS
|
||||
.br
|
||||
.PP
|
||||
.SS "Namespaces"
|
||||
|
||||
.in +1c
|
||||
.ti -1c
|
||||
.RI " \fBserveur\fP"
|
||||
.br
|
||||
.in -1c
|
||||
.SS "Variables"
|
||||
|
||||
.in +1c
|
||||
.ti -1c
|
||||
.RI "string \fBserveur\&.__author__\fP = 'sidya'"
|
||||
.br
|
||||
.in -1c
|
||||
.SH "Author"
|
||||
.PP
|
||||
Generated automatically by Doxygen for Server DNC from the source code\&.
|
@ -0,0 +1,8 @@
|
||||
.TH "md__home_sidya__pycharm_projects__d_n_c_serveur__r_e_a_d_m_e" 3 "Wed Apr 15 2015" "Version 1.0" "Server DNC" \" -*- nroff -*-
|
||||
.ad l
|
||||
.nh
|
||||
.SH NAME
|
||||
md__home_sidya__pycharm_projects__d_n_c_serveur__r_e_a_d_m_e \- DNC
|
||||
serveur
|
||||
.PP
|
||||
Requierement : -> python 3\&.4
|
8
server/doc/man/man3/md__r_e_a_d_m_e.3
Normal file
8
server/doc/man/man3/md__r_e_a_d_m_e.3
Normal file
@ -0,0 +1,8 @@
|
||||
.TH "md__r_e_a_d_m_e" 3 "Wed Apr 15 2015" "Version 1.0" "Server DNC" \" -*- nroff -*-
|
||||
.ad l
|
||||
.nh
|
||||
.SH NAME
|
||||
md__r_e_a_d_m_e \- DNC
|
||||
serveur
|
||||
.PP
|
||||
Requierement : -> python 3\&.4
|
32
server/doc/man/man3/serveur.3
Normal file
32
server/doc/man/man3/serveur.3
Normal file
@ -0,0 +1,32 @@
|
||||
.TH "serveur" 3 "Wed Apr 15 2015" "Version 1.0" "Server DNC" \" -*- nroff -*-
|
||||
.ad l
|
||||
.nh
|
||||
.SH NAME
|
||||
serveur \-
|
||||
.SH SYNOPSIS
|
||||
.br
|
||||
.PP
|
||||
.SS "Namespaces"
|
||||
|
||||
.in +1c
|
||||
.ti -1c
|
||||
.RI " \fBLog\fP"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI " \fBServer\fP"
|
||||
.br
|
||||
.in -1c
|
||||
.SS "Variables"
|
||||
|
||||
.in +1c
|
||||
.ti -1c
|
||||
.RI "string \fB__author__\fP = 'sidya'"
|
||||
.br
|
||||
.in -1c
|
||||
.SH "Variable Documentation"
|
||||
.PP
|
||||
.SS "string serveur\&.__author__ = 'sidya'"
|
||||
|
||||
.SH "Author"
|
||||
.PP
|
||||
Generated automatically by Doxygen for Server DNC from the source code\&.
|
31
server/doc/man/man3/serveur_Log.3
Normal file
31
server/doc/man/man3/serveur_Log.3
Normal file
@ -0,0 +1,31 @@
|
||||
.TH "serveur.Log" 3 "Wed Apr 15 2015" "Version 1.0" "Server DNC" \" -*- nroff -*-
|
||||
.ad l
|
||||
.nh
|
||||
.SH NAME
|
||||
serveur.Log \-
|
||||
.SH SYNOPSIS
|
||||
.br
|
||||
.PP
|
||||
.SS "Data Structures"
|
||||
|
||||
.in +1c
|
||||
.ti -1c
|
||||
.RI "class \fBbcolors\fP"
|
||||
.br
|
||||
.RI "\fIDefine constant color value for different level\&. \fP"
|
||||
.ti -1c
|
||||
.RI "class \fBLog\fP"
|
||||
.br
|
||||
.RI "\fI\fBLog\fP Manager\&. \fP"
|
||||
.ti -1c
|
||||
.RI "class \fBlvl\fP"
|
||||
.br
|
||||
.RI "\fIDefine constant value for level utils\&. \fP"
|
||||
.ti -1c
|
||||
.RI "class \fBSingleLevelFilter\fP"
|
||||
.br
|
||||
.RI "\fIFilter for one level\&. \fP"
|
||||
.in -1c
|
||||
.SH "Author"
|
||||
.PP
|
||||
Generated automatically by Doxygen for Server DNC from the source code\&.
|
62
server/doc/man/man3/serveur_Log_Log.3
Normal file
62
server/doc/man/man3/serveur_Log_Log.3
Normal file
@ -0,0 +1,62 @@
|
||||
.TH "serveur.Log.Log" 3 "Wed Apr 15 2015" "Version 1.0" "Server DNC" \" -*- nroff -*-
|
||||
.ad l
|
||||
.nh
|
||||
.SH NAME
|
||||
serveur.Log.Log \- \fBLog\fP Manager\&.
|
||||
|
||||
.SH SYNOPSIS
|
||||
.br
|
||||
.PP
|
||||
.PP
|
||||
Inherits object\&.
|
||||
.SS "Public Member Functions"
|
||||
|
||||
.in +1c
|
||||
.ti -1c
|
||||
.RI "def \fB__init__\fP (self, directory)"
|
||||
.br
|
||||
.RI "\fIDefine 3 differents utils : activity\&.log -> all activity warning\&.log -> only warning error\&.log -> error Write all message on terminal too\&. \fP"
|
||||
.ti -1c
|
||||
.RI "def \fBprintL\fP (self, pMsg, pLvl)"
|
||||
.br
|
||||
.RI "\fIAdd color and write in log with an define level\&. \fP"
|
||||
.in -1c
|
||||
.SS "Data Fields"
|
||||
|
||||
.in +1c
|
||||
.ti -1c
|
||||
.RI "\fBlogger\fP"
|
||||
.br
|
||||
.in -1c
|
||||
.SH "Detailed Description"
|
||||
.PP
|
||||
\fBLog\fP Manager\&.
|
||||
.SH "Constructor & Destructor Documentation"
|
||||
.PP
|
||||
.SS "def serveur\&.Log\&.Log\&.__init__ ( self, directory)"
|
||||
|
||||
.PP
|
||||
Define 3 differents utils : activity\&.log -> all activity warning\&.log -> only warning error\&.log -> error Write all message on terminal too\&.
|
||||
.SH "Member Function Documentation"
|
||||
.PP
|
||||
.SS "def serveur\&.Log\&.Log\&.printL ( self, pMsg, pLvl)"
|
||||
|
||||
.PP
|
||||
Add color and write in log with an define level\&.
|
||||
.PP
|
||||
\fBParameters:\fP
|
||||
.RS 4
|
||||
\fIpMsg\fP message to write in log
|
||||
.br
|
||||
\fIpLvl\fP level of log message
|
||||
.RE
|
||||
.PP
|
||||
|
||||
.SH "Field Documentation"
|
||||
.PP
|
||||
.SS "serveur\&.Log\&.Log\&.logger"
|
||||
|
||||
|
||||
.SH "Author"
|
||||
.PP
|
||||
Generated automatically by Doxygen for Server DNC from the source code\&.
|
72
server/doc/man/man3/serveur_Log_SingleLevelFilter.3
Normal file
72
server/doc/man/man3/serveur_Log_SingleLevelFilter.3
Normal file
@ -0,0 +1,72 @@
|
||||
.TH "serveur.Log.SingleLevelFilter" 3 "Wed Apr 15 2015" "Version 1.0" "Server DNC" \" -*- nroff -*-
|
||||
.ad l
|
||||
.nh
|
||||
.SH NAME
|
||||
serveur.Log.SingleLevelFilter \- Filter for one level\&.
|
||||
|
||||
.SH SYNOPSIS
|
||||
.br
|
||||
.PP
|
||||
.PP
|
||||
Inherits Filter\&.
|
||||
.SS "Public Member Functions"
|
||||
|
||||
.in +1c
|
||||
.ti -1c
|
||||
.RI "def \fB__init__\fP (self, \fBpasslevel\fP, \fBreject\fP)"
|
||||
.br
|
||||
.RI "\fIConstructor\&. \fP"
|
||||
.ti -1c
|
||||
.RI "def \fBfilter\fP (self, record)"
|
||||
.br
|
||||
.in -1c
|
||||
.SS "Data Fields"
|
||||
|
||||
.in +1c
|
||||
.ti -1c
|
||||
.RI "\fBpasslevel\fP"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "\fBreject\fP"
|
||||
.br
|
||||
.in -1c
|
||||
.SH "Detailed Description"
|
||||
.PP
|
||||
Filter for one level\&.
|
||||
|
||||
|
||||
.PP
|
||||
.nf
|
||||
|
||||
.fi
|
||||
.PP
|
||||
|
||||
.SH "Constructor & Destructor Documentation"
|
||||
.PP
|
||||
.SS "def serveur\&.Log\&.SingleLevelFilter\&.__init__ ( self, passlevel, reject)"
|
||||
|
||||
.PP
|
||||
Constructor\&.
|
||||
.PP
|
||||
\fBParameters:\fP
|
||||
.RS 4
|
||||
\fIpasslevel\fP level to filter
|
||||
.br
|
||||
\fIreject\fP true on reject state
|
||||
.RE
|
||||
.PP
|
||||
|
||||
.SH "Member Function Documentation"
|
||||
.PP
|
||||
.SS "def serveur\&.Log\&.SingleLevelFilter\&.filter ( self, record)"
|
||||
|
||||
.SH "Field Documentation"
|
||||
.PP
|
||||
.SS "serveur\&.Log\&.SingleLevelFilter\&.passlevel"
|
||||
|
||||
.SS "serveur\&.Log\&.SingleLevelFilter\&.reject"
|
||||
|
||||
|
||||
.SH "Author"
|
||||
.PP
|
||||
Generated automatically by Doxygen for Server DNC from the source code\&.
|
47
server/doc/man/man3/serveur_Log_bcolors.3
Normal file
47
server/doc/man/man3/serveur_Log_bcolors.3
Normal file
@ -0,0 +1,47 @@
|
||||
.TH "serveur.Log.bcolors" 3 "Wed Apr 15 2015" "Version 1.0" "Server DNC" \" -*- nroff -*-
|
||||
.ad l
|
||||
.nh
|
||||
.SH NAME
|
||||
serveur.Log.bcolors \- Define constant color value for different level\&.
|
||||
|
||||
.SH SYNOPSIS
|
||||
.br
|
||||
.PP
|
||||
.SS "Static Public Attributes"
|
||||
|
||||
.in +1c
|
||||
.ti -1c
|
||||
.RI "string \fBDEBUG\fP = '\\033[94m '"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "string \fBINFO\fP = ' \\033[95m '"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "string \fBWARNING\fP = ' \\033[93m '"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "string \fBFAIL\fP = ' \\033[91m '"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "string \fBENDC\fP = ' \\033[0m '"
|
||||
.br
|
||||
.in -1c
|
||||
.SH "Detailed Description"
|
||||
.PP
|
||||
Define constant color value for different level\&.
|
||||
.SH "Field Documentation"
|
||||
.PP
|
||||
.SS "string serveur\&.Log\&.bcolors\&.DEBUG = '\\033[94m '\fC [static]\fP"
|
||||
|
||||
.SS "string serveur\&.Log\&.bcolors\&.ENDC = ' \\033[0m '\fC [static]\fP"
|
||||
|
||||
.SS "string serveur\&.Log\&.bcolors\&.FAIL = ' \\033[91m '\fC [static]\fP"
|
||||
|
||||
.SS "string serveur\&.Log\&.bcolors\&.INFO = ' \\033[95m '\fC [static]\fP"
|
||||
|
||||
.SS "string serveur\&.Log\&.bcolors\&.WARNING = ' \\033[93m '\fC [static]\fP"
|
||||
|
||||
|
||||
.SH "Author"
|
||||
.PP
|
||||
Generated automatically by Doxygen for Server DNC from the source code\&.
|
52
server/doc/man/man3/serveur_Log_lvl.3
Normal file
52
server/doc/man/man3/serveur_Log_lvl.3
Normal file
@ -0,0 +1,52 @@
|
||||
.TH "serveur.Log.lvl" 3 "Wed Apr 15 2015" "Version 1.0" "Server DNC" \" -*- nroff -*-
|
||||
.ad l
|
||||
.nh
|
||||
.SH NAME
|
||||
serveur.Log.lvl \- Define constant value for level utils\&.
|
||||
|
||||
.SH SYNOPSIS
|
||||
.br
|
||||
.PP
|
||||
.SS "Static Public Attributes"
|
||||
|
||||
.in +1c
|
||||
.ti -1c
|
||||
.RI "int \fBNOTSET\fP = 0"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "int \fBDEBUG\fP = 10"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "int \fBINFO\fP = 20"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "int \fBWARNING\fP = 30"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "int \fBFAIL\fP = 40"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "int \fBCRITICAL\fP = 50"
|
||||
.br
|
||||
.in -1c
|
||||
.SH "Detailed Description"
|
||||
.PP
|
||||
Define constant value for level utils\&.
|
||||
.SH "Field Documentation"
|
||||
.PP
|
||||
.SS "int serveur\&.Log\&.lvl\&.CRITICAL = 50\fC [static]\fP"
|
||||
|
||||
.SS "int serveur\&.Log\&.lvl\&.DEBUG = 10\fC [static]\fP"
|
||||
|
||||
.SS "int serveur\&.Log\&.lvl\&.FAIL = 40\fC [static]\fP"
|
||||
|
||||
.SS "int serveur\&.Log\&.lvl\&.INFO = 20\fC [static]\fP"
|
||||
|
||||
.SS "int serveur\&.Log\&.lvl\&.NOTSET = 0\fC [static]\fP"
|
||||
|
||||
.SS "int serveur\&.Log\&.lvl\&.WARNING = 30\fC [static]\fP"
|
||||
|
||||
|
||||
.SH "Author"
|
||||
.PP
|
||||
Generated automatically by Doxygen for Server DNC from the source code\&.
|
541
server/doc/man/man3/serveur_Server.3
Normal file
541
server/doc/man/man3/serveur_Server.3
Normal file
@ -0,0 +1,541 @@
|
||||
.TH "serveur.Server" 3 "Wed Apr 15 2015" "Version 1.0" "Server DNC" \" -*- nroff -*-
|
||||
.ad l
|
||||
.nh
|
||||
.SH NAME
|
||||
serveur.Server \-
|
||||
.SH SYNOPSIS
|
||||
.br
|
||||
.PP
|
||||
.SS "Functions"
|
||||
|
||||
.in +1c
|
||||
.ti -1c
|
||||
.RI "def \fBmain\fP ()"
|
||||
.br
|
||||
.RI "\fILoad Configuration and Start the \fBServer\fP\&. \fP"
|
||||
.ti -1c
|
||||
.RI "def \fBhandle_connection\fP (connection, client_address)"
|
||||
.br
|
||||
.RI "\fIHandle a connection from a client\&. \fP"
|
||||
.ti -1c
|
||||
.RI "def \fBhandle_request\fP (connection, data)"
|
||||
.br
|
||||
.RI "\fIHandle a request\&. \fP"
|
||||
.ti -1c
|
||||
.RI "def \fBbroadcast_message\fP (connection, message)"
|
||||
.br
|
||||
.RI "\fIBroadcast a message to all the users connected except to the sender of the request\&. \fP"
|
||||
.ti -1c
|
||||
.RI "def \fBuser_list_active\fP (connection)"
|
||||
.br
|
||||
.RI "\fISend the list of enable user\&. \fP"
|
||||
.ti -1c
|
||||
.RI "def \fBuser_list_away\fP (connection)"
|
||||
.br
|
||||
.RI "\fISend the list of disable user\&. \fP"
|
||||
.ti -1c
|
||||
.RI "def \fBchange_name\fP (connection, pseudo)"
|
||||
.br
|
||||
.RI "\fIChange the nickname of the user\&. \fP"
|
||||
.ti -1c
|
||||
.RI "def \fBnew_name\fP (connection, pseudo)"
|
||||
.br
|
||||
.RI "\fIAffect the nickname of the user for the first time\&. \fP"
|
||||
.ti -1c
|
||||
.RI "def \fBask_private_message\fP (connection, pseudo)"
|
||||
.br
|
||||
.RI "\fIAsk for a private discussion between the sender of the request and the pseudo\&. \fP"
|
||||
.ti -1c
|
||||
.RI "def \fBaccept_private_message\fP (connection, pseudo)"
|
||||
.br
|
||||
.RI "\fIAccept a private discussion\&. \fP"
|
||||
.ti -1c
|
||||
.RI "def \fBreject_private_message\fP (connection, pseudo)"
|
||||
.br
|
||||
.RI "\fIReject a private discussion\&. \fP"
|
||||
.ti -1c
|
||||
.RI "def \fBprivate_message\fP (connection, pseudo, msg)"
|
||||
.br
|
||||
.RI "\fISend a private message if a private discussion had been accepted\&. \fP"
|
||||
.ti -1c
|
||||
.RI "def \fBask_file\fP (connection, pseudo, file)"
|
||||
.br
|
||||
.RI "\fIAsk for a file transfer between the sender of the request and the pseudo\&. \fP"
|
||||
.ti -1c
|
||||
.RI "def \fBaccept_file\fP (connection, pseudo, file, port)"
|
||||
.br
|
||||
.RI "\fIAccept a file transfer\&. \fP"
|
||||
.ti -1c
|
||||
.RI "def \fBreject_file\fP (connection, pseudo, file)"
|
||||
.br
|
||||
.RI "\fIReject a file transfer\&. \fP"
|
||||
.ti -1c
|
||||
.RI "def \fBenable_user\fP (connection)"
|
||||
.br
|
||||
.RI "\fIEnable user\&. \fP"
|
||||
.ti -1c
|
||||
.RI "def \fBdisable_user\fP (connection)"
|
||||
.br
|
||||
.RI "\fIDisable user\&. \fP"
|
||||
.ti -1c
|
||||
.RI "def \fBquit_user\fP (connection)"
|
||||
.br
|
||||
.RI "\fIDisconnect user\&. \fP"
|
||||
.ti -1c
|
||||
.RI "def \fBget_connection_by_pseudo\fP (pseudo)"
|
||||
.br
|
||||
.RI "\fIGet the socket descriptor by a pseudo\&. \fP"
|
||||
.in -1c
|
||||
.SS "Variables"
|
||||
|
||||
.in +1c
|
||||
.ti -1c
|
||||
.RI "int \fBUSERLIST_ENABLE\fP = 300"
|
||||
.br
|
||||
.RI "\fICode retour ### INFO\&. \fP"
|
||||
.ti -1c
|
||||
.RI "int \fBUSERLIST_DISABLE\fP = 301"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "int \fBHAS_JOIN\fP = 302"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "int \fBHAS_LEFT\fP = 303"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "int \fBNEW_MSG\fP = 304"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "int \fBNAME_CHANGED\fP = 305"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "int \fBNEW_PM\fP = 306"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "int \fBASKING_FOR_PM\fP = 307"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "int \fBPRIVATE_DISCU_ACCEPTED_FROM\fP = 308"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "int \fBPRIVATE_DISCU_REFUSED_FROM\fP = 309"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "int \fBIS_NOW_ENABLE\fP = 310"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "int \fBIS_NOW_DISABLE\fP = 311"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "int \fBHAS_ASKED_FILE\fP = 312"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "int \fBCAN_SEND_FILE\fP = 313"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "int \fBHAS_REJECT_FILE\fP = 314"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "int \fBSUCC_CHANNEL_JOINED\fP = 200"
|
||||
.br
|
||||
.RI "\fISUCCESS\&. \fP"
|
||||
.ti -1c
|
||||
.RI "int \fBSUCC_CHANNEL_QUIT\fP = 201"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "int \fBSUCC_MESSAGE_SENDED\fP = 202"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "int \fBSUCC_NICKNAME_CHANGED\fP = 203"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "int \fBSUCC_PM_SENDED\fP = 205"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "int \fBSUCCESSFUL_ASKED_CONV\fP = 206"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "int \fBSUCCESSFUL_ACCEPTED_CONV\fP = 207"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "int \fBSUCCESSFUL_REFUSED_CONV\fP = 208"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "int \fBSUCC_ENABLED\fP = 209"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "int \fBSUCC_DISABLED\fP = 210"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "int \fBSUCC_PMFILE\fP = 211"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "int \fBSUCC_ACCEPTED_FILE\fP = 212"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "int \fBSUCC_REFUSED_FILE\fP = 213"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "int \fBERR_NICKNAME_ALREADY_USED\fP = 400"
|
||||
.br
|
||||
.RI "\fIERROR\&. \fP"
|
||||
.ti -1c
|
||||
.RI "int \fBERR_NO_NICKNAME\fP = 401"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "int \fBERR_CONV_NOT_ALLOWED\fP = 402"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "int \fBDEST_NOT_FOUND\fP = 403"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "int \fBERR_ALREADY_ASKED_FOR_PM\fP = 404"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "int \fBERR_NO_INVIT_TO_CONV_FOUND\fP = 405"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "int \fBERR_UNKNOWN_ACCEPTED_FILE\fP = 406"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "int \fBCOMMAND_NOT_FOUND\fP = 407"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "int \fBERR_INVALID_NICKNAME\fP = 408"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "int \fBERR_INTERNAL_SERVER_ERROR\fP = 409"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "int \fBERR_NOT_DISABLED\fP = 410"
|
||||
.br
|
||||
.ti -1c
|
||||
.RI "int \fBERR_NOT_ENABLED\fP = 411"
|
||||
.br
|
||||
.in -1c
|
||||
.SH "Function Documentation"
|
||||
.PP
|
||||
.SS "def serveur\&.Server\&.accept_file ( connection, pseudo, file, port)"
|
||||
|
||||
.PP
|
||||
Accept a file transfer\&.
|
||||
.PP
|
||||
\fBParameters:\fP
|
||||
.RS 4
|
||||
\fIconnection\fP the socket descriptor of the person who accept a file transfer
|
||||
.br
|
||||
\fIpseudo\fP the pseudo of the person who asked for a file transfer
|
||||
.RE
|
||||
.PP
|
||||
|
||||
.SS "def serveur\&.Server\&.accept_private_message ( connection, pseudo)"
|
||||
|
||||
.PP
|
||||
Accept a private discussion\&.
|
||||
.PP
|
||||
\fBParameters:\fP
|
||||
.RS 4
|
||||
\fIconnection\fP the socket descriptor of the person who accept the private discussion
|
||||
.br
|
||||
\fIpseudo\fP the pseudo of the person who asked for a private discussion
|
||||
.RE
|
||||
.PP
|
||||
|
||||
.SS "def serveur\&.Server\&.ask_file ( connection, pseudo, file)"
|
||||
|
||||
.PP
|
||||
Ask for a file transfer between the sender of the request and the pseudo\&.
|
||||
.PP
|
||||
\fBParameters:\fP
|
||||
.RS 4
|
||||
\fIconnection\fP the socket descriptor of the sender
|
||||
.br
|
||||
\fIpseudo\fP the pseudo of target of the demand
|
||||
.RE
|
||||
.PP
|
||||
|
||||
.SS "def serveur\&.Server\&.ask_private_message ( connection, pseudo)"
|
||||
|
||||
.PP
|
||||
Ask for a private discussion between the sender of the request and the pseudo\&.
|
||||
.PP
|
||||
\fBParameters:\fP
|
||||
.RS 4
|
||||
\fIconnection\fP the socket descriptor of the sender
|
||||
.br
|
||||
\fIpseudo\fP the pseudo of target of the demand
|
||||
.RE
|
||||
.PP
|
||||
|
||||
.SS "def serveur\&.Server\&.broadcast_message ( connection, message)"
|
||||
|
||||
.PP
|
||||
Broadcast a message to all the users connected except to the sender of the request\&.
|
||||
.PP
|
||||
\fBParameters:\fP
|
||||
.RS 4
|
||||
\fIconnection\fP the socket descriptor of the request sender
|
||||
.br
|
||||
\fImessage\fP message to broadcast (String)
|
||||
.RE
|
||||
.PP
|
||||
|
||||
.SS "def serveur\&.Server\&.change_name ( connection, pseudo)"
|
||||
|
||||
.PP
|
||||
Change the nickname of the user\&.
|
||||
.PP
|
||||
\fBParameters:\fP
|
||||
.RS 4
|
||||
\fIconnection\fP the socket descriptor of the target
|
||||
.br
|
||||
\fIpseudo\fP new nickname for the user (String)
|
||||
.RE
|
||||
.PP
|
||||
|
||||
.SS "def serveur\&.Server\&.disable_user ( connection)"
|
||||
|
||||
.PP
|
||||
Disable user\&.
|
||||
.PP
|
||||
\fBParameters:\fP
|
||||
.RS 4
|
||||
\fIconnection\fP the socket descriptor of the person to disable
|
||||
.RE
|
||||
.PP
|
||||
|
||||
.SS "def serveur\&.Server\&.enable_user ( connection)"
|
||||
|
||||
.PP
|
||||
Enable user\&.
|
||||
.PP
|
||||
\fBParameters:\fP
|
||||
.RS 4
|
||||
\fIconnection\fP the socket descriptor of the person to enable
|
||||
.RE
|
||||
.PP
|
||||
|
||||
.SS "def serveur\&.Server\&.get_connection_by_pseudo ( pseudo)"
|
||||
|
||||
.PP
|
||||
Get the socket descriptor by a pseudo\&.
|
||||
.PP
|
||||
\fBParameters:\fP
|
||||
.RS 4
|
||||
\fIpseudo\fP pseudo
|
||||
.RE
|
||||
.PP
|
||||
\fBReturns:\fP
|
||||
.RS 4
|
||||
the socket descriptor of the pseudo or None
|
||||
.RE
|
||||
.PP
|
||||
|
||||
.SS "def serveur\&.Server\&.handle_connection ( connection, client_address)"
|
||||
|
||||
.PP
|
||||
Handle a connection from a client\&. Wait for request from the client
|
||||
.PP
|
||||
\fBParameters:\fP
|
||||
.RS 4
|
||||
\fIconnection\fP the socket descriptor of the connection
|
||||
.br
|
||||
\fIclient_adress\fP ('ip', port) of the connection
|
||||
.RE
|
||||
.PP
|
||||
|
||||
.SS "def serveur\&.Server\&.handle_request ( connection, data)"
|
||||
|
||||
.PP
|
||||
Handle a request\&.
|
||||
.PP
|
||||
\fBParameters:\fP
|
||||
.RS 4
|
||||
\fIconnection\fP the socket descriptor of the request sender
|
||||
.br
|
||||
\fIdata\fP the request to handle in String
|
||||
.RE
|
||||
.PP
|
||||
|
||||
.SS "def serveur\&.Server\&.main ()"
|
||||
|
||||
.PP
|
||||
Load Configuration and Start the \fBServer\fP\&.
|
||||
.SS "def serveur\&.Server\&.new_name ( connection, pseudo)"
|
||||
|
||||
.PP
|
||||
Affect the nickname of the user for the first time\&.
|
||||
.PP
|
||||
\fBParameters:\fP
|
||||
.RS 4
|
||||
\fIconnection\fP the socket descriptor of the target
|
||||
.br
|
||||
\fIpseudo\fP nickname for the user (String)
|
||||
.RE
|
||||
.PP
|
||||
|
||||
.SS "def serveur\&.Server\&.private_message ( connection, pseudo, msg)"
|
||||
|
||||
.PP
|
||||
Send a private message if a private discussion had been accepted\&.
|
||||
.PP
|
||||
\fBParameters:\fP
|
||||
.RS 4
|
||||
\fIconnection\fP the soccket descriptor of the sender
|
||||
.br
|
||||
\fIpseudo\fP the pseudo of the private message target
|
||||
.br
|
||||
\fImsg\fP the message to send
|
||||
.RE
|
||||
.PP
|
||||
|
||||
.SS "def serveur\&.Server\&.quit_user ( connection)"
|
||||
|
||||
.PP
|
||||
Disconnect user\&.
|
||||
.PP
|
||||
\fBParameters:\fP
|
||||
.RS 4
|
||||
\fIconnection\fP the socket descriptor of the person to disconnect
|
||||
.RE
|
||||
.PP
|
||||
|
||||
.SS "def serveur\&.Server\&.reject_file ( connection, pseudo, file)"
|
||||
|
||||
.PP
|
||||
Reject a file transfer\&.
|
||||
.PP
|
||||
\fBParameters:\fP
|
||||
.RS 4
|
||||
\fIconnection\fP the socket descriptor of the person who reject a file transfer
|
||||
.br
|
||||
\fIpseudo\fP the pseudo of the person who asked for a file transfer
|
||||
.RE
|
||||
.PP
|
||||
|
||||
.SS "def serveur\&.Server\&.reject_private_message ( connection, pseudo)"
|
||||
|
||||
.PP
|
||||
Reject a private discussion\&.
|
||||
.PP
|
||||
\fBParameters:\fP
|
||||
.RS 4
|
||||
\fIconnection\fP the socket descriptor of the person who reject private discussion
|
||||
.br
|
||||
\fIpseudo\fP the pseudo of the person who asked for a private discussion
|
||||
.RE
|
||||
.PP
|
||||
|
||||
.SS "def serveur\&.Server\&.user_list_active ( connection)"
|
||||
|
||||
.PP
|
||||
Send the list of enable user\&.
|
||||
.PP
|
||||
\fBParameters:\fP
|
||||
.RS 4
|
||||
\fIconnection\fP the socket descriptor of the target
|
||||
.RE
|
||||
.PP
|
||||
|
||||
.SS "def serveur\&.Server\&.user_list_away ( connection)"
|
||||
|
||||
.PP
|
||||
Send the list of disable user\&.
|
||||
.PP
|
||||
\fBParameters:\fP
|
||||
.RS 4
|
||||
\fIconnection\fP the socket descriptor of the target
|
||||
.RE
|
||||
.PP
|
||||
|
||||
.SH "Variable Documentation"
|
||||
.PP
|
||||
.SS "int serveur\&.Server\&.ASKING_FOR_PM = 307"
|
||||
|
||||
.SS "int serveur\&.Server\&.CAN_SEND_FILE = 313"
|
||||
|
||||
.SS "int serveur\&.Server\&.COMMAND_NOT_FOUND = 407"
|
||||
|
||||
.SS "int serveur\&.Server\&.DEST_NOT_FOUND = 403"
|
||||
|
||||
.SS "int serveur\&.Server\&.ERR_ALREADY_ASKED_FOR_PM = 404"
|
||||
|
||||
.SS "int serveur\&.Server\&.ERR_CONV_NOT_ALLOWED = 402"
|
||||
|
||||
.SS "int serveur\&.Server\&.ERR_INTERNAL_SERVER_ERROR = 409"
|
||||
|
||||
.SS "int serveur\&.Server\&.ERR_INVALID_NICKNAME = 408"
|
||||
|
||||
.SS "int serveur\&.Server\&.ERR_NICKNAME_ALREADY_USED = 400"
|
||||
|
||||
.PP
|
||||
ERROR\&.
|
||||
.SS "int serveur\&.Server\&.ERR_NO_INVIT_TO_CONV_FOUND = 405"
|
||||
|
||||
.SS "int serveur\&.Server\&.ERR_NO_NICKNAME = 401"
|
||||
|
||||
.SS "int serveur\&.Server\&.ERR_NOT_DISABLED = 410"
|
||||
|
||||
.SS "int serveur\&.Server\&.ERR_NOT_ENABLED = 411"
|
||||
|
||||
.SS "int serveur\&.Server\&.ERR_UNKNOWN_ACCEPTED_FILE = 406"
|
||||
|
||||
.SS "int serveur\&.Server\&.HAS_ASKED_FILE = 312"
|
||||
|
||||
.SS "int serveur\&.Server\&.HAS_JOIN = 302"
|
||||
|
||||
.SS "int serveur\&.Server\&.HAS_LEFT = 303"
|
||||
|
||||
.SS "int serveur\&.Server\&.HAS_REJECT_FILE = 314"
|
||||
|
||||
.SS "int serveur\&.Server\&.IS_NOW_DISABLE = 311"
|
||||
|
||||
.SS "int serveur\&.Server\&.IS_NOW_ENABLE = 310"
|
||||
|
||||
.SS "int serveur\&.Server\&.NAME_CHANGED = 305"
|
||||
|
||||
.SS "int serveur\&.Server\&.NEW_MSG = 304"
|
||||
|
||||
.SS "int serveur\&.Server\&.NEW_PM = 306"
|
||||
|
||||
.SS "int serveur\&.Server\&.PRIVATE_DISCU_ACCEPTED_FROM = 308"
|
||||
|
||||
.SS "int serveur\&.Server\&.PRIVATE_DISCU_REFUSED_FROM = 309"
|
||||
|
||||
.SS "int serveur\&.Server\&.SUCC_ACCEPTED_FILE = 212"
|
||||
|
||||
.SS "int serveur\&.Server\&.SUCC_CHANNEL_JOINED = 200"
|
||||
|
||||
.PP
|
||||
SUCCESS\&.
|
||||
.SS "int serveur\&.Server\&.SUCC_CHANNEL_QUIT = 201"
|
||||
|
||||
.SS "int serveur\&.Server\&.SUCC_DISABLED = 210"
|
||||
|
||||
.SS "int serveur\&.Server\&.SUCC_ENABLED = 209"
|
||||
|
||||
.SS "int serveur\&.Server\&.SUCC_MESSAGE_SENDED = 202"
|
||||
|
||||
.SS "int serveur\&.Server\&.SUCC_NICKNAME_CHANGED = 203"
|
||||
|
||||
.SS "int serveur\&.Server\&.SUCC_PM_SENDED = 205"
|
||||
|
||||
.SS "int serveur\&.Server\&.SUCC_PMFILE = 211"
|
||||
|
||||
.SS "int serveur\&.Server\&.SUCC_REFUSED_FILE = 213"
|
||||
|
||||
.SS "int serveur\&.Server\&.SUCCESSFUL_ACCEPTED_CONV = 207"
|
||||
|
||||
.SS "int serveur\&.Server\&.SUCCESSFUL_ASKED_CONV = 206"
|
||||
|
||||
.SS "int serveur\&.Server\&.SUCCESSFUL_REFUSED_CONV = 208"
|
||||
|
||||
.SS "int serveur\&.Server\&.USERLIST_DISABLE = 301"
|
||||
|
||||
.SS "int serveur\&.Server\&.USERLIST_ENABLE = 300"
|
||||
|
||||
.PP
|
||||
Code retour ### INFO\&.
|
||||
.SH "Author"
|
||||
.PP
|
||||
Generated automatically by Doxygen for Server DNC from the source code\&.
|
Reference in New Issue
Block a user