\hypertarget{_server_8py}{}\section{/home/sidya/\+Pycharm\+Projects/\+D\+N\+C/serveur/\+Server.py File Reference}
\label{_server_8py}\index{/home/sidya/\+Pycharm\+Projects/\+D\+N\+C/serveur/\+Server.\+py@{/home/sidya/\+Pycharm\+Projects/\+D\+N\+C/serveur/\+Server.\+py}}
\subsection*{Namespaces}
\begin{DoxyCompactItemize}
\item 
 \hyperlink{namespace_server}{Server}
\begin{DoxyCompactList}\small\item\em Module server. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
def \hyperlink{namespace_server_a3b6f7f7679d98f214467d05da4618a0c}{Server.\+main} ()
\begin{DoxyCompactList}\small\item\em Load Configuration and Start the \hyperlink{namespace_server}{Server}. \end{DoxyCompactList}\item 
def \hyperlink{namespace_server_a5956f54107dc04f2c1700fcf62f1afc9}{Server.\+handle\+\_\+connection} (connection, client\+\_\+address)
\begin{DoxyCompactList}\small\item\em Handle a connection from a client. \end{DoxyCompactList}\item 
def \hyperlink{namespace_server_a8965f4e84689d4e2b198091f0383fd41}{Server.\+handle\+\_\+request} (connection, data)
\begin{DoxyCompactList}\small\item\em Handle a request. \end{DoxyCompactList}\item 
def \hyperlink{namespace_server_a5b7286b84051e8f089e78cec5276027f}{Server.\+broadcast\+\_\+message} (connection, message)
\begin{DoxyCompactList}\small\item\em Broadcast a message to all the users connected except to the sender of the request. \end{DoxyCompactList}\item 
def \hyperlink{namespace_server_a79e61c36bfba574632384d7c95f687e8}{Server.\+user\+\_\+list\+\_\+active} (connection)
\begin{DoxyCompactList}\small\item\em Send the list of enable user. \end{DoxyCompactList}\item 
def \hyperlink{namespace_server_a616374a08f1e1cd1c4fa745e10af349a}{Server.\+user\+\_\+list\+\_\+away} (connection)
\begin{DoxyCompactList}\small\item\em Send the list of disable user. \end{DoxyCompactList}\item 
def \hyperlink{namespace_server_a59bc6f10d51dddca1906c85fdac1cc62}{Server.\+change\+\_\+name} (connection, pseudo)
\begin{DoxyCompactList}\small\item\em Change the nickname of the user. \end{DoxyCompactList}\item 
def \hyperlink{namespace_server_aedccc2662d6bc5892f70e48009ed1b59}{Server.\+new\+\_\+name} (connection, pseudo)
\begin{DoxyCompactList}\small\item\em Affect the nickname of the user for the first time. \end{DoxyCompactList}\item 
def \hyperlink{namespace_server_a46ba24f249f2961ada72160f9a9ba9b8}{Server.\+ask\+\_\+private\+\_\+message} (connection, pseudo)
\begin{DoxyCompactList}\small\item\em Ask for a private discussion between the sender of the request and the pseudo. \end{DoxyCompactList}\item 
def \hyperlink{namespace_server_a1879fdb42898934db420d6c225db536e}{Server.\+accept\+\_\+private\+\_\+message} (connection, pseudo)
\begin{DoxyCompactList}\small\item\em Accept a private discussion. \end{DoxyCompactList}\item 
def \hyperlink{namespace_server_a1ccbd55ee3033925a2b1ef2716dd0829}{Server.\+reject\+\_\+private\+\_\+message} (connection, pseudo)
\begin{DoxyCompactList}\small\item\em Reject a private discussion. \end{DoxyCompactList}\item 
def \hyperlink{namespace_server_a5605c682f147e7cf9018ac02bb089989}{Server.\+private\+\_\+message} (connection, pseudo, msg)
\begin{DoxyCompactList}\small\item\em Send a private message if a private discussion had been accepted. \end{DoxyCompactList}\item 
def \hyperlink{namespace_server_a2ddcf35a85844615fa31e72f6dcc52b0}{Server.\+ask\+\_\+file} (connection, pseudo, file)
\begin{DoxyCompactList}\small\item\em Ask for a file transfer between the sender of the request and the pseudo. \end{DoxyCompactList}\item 
def \hyperlink{namespace_server_a0f21810c2b82ea1a98725185d2f3a70a}{Server.\+accept\+\_\+file} (connection, pseudo, file, port)
\begin{DoxyCompactList}\small\item\em Accept a file transfer. \end{DoxyCompactList}\item 
def \hyperlink{namespace_server_a7b5be6de60d79f607c206c3675166301}{Server.\+reject\+\_\+file} (connection, pseudo, file)
\begin{DoxyCompactList}\small\item\em Reject a file transfer. \end{DoxyCompactList}\item 
def \hyperlink{namespace_server_a114698f1955c3ff109f9fbbc1df306fa}{Server.\+enable\+\_\+user} (connection)
\begin{DoxyCompactList}\small\item\em Enable user. \end{DoxyCompactList}\item 
def \hyperlink{namespace_server_af20de30ab901173d2bc8f58da7c05c25}{Server.\+disable\+\_\+user} (connection)
\begin{DoxyCompactList}\small\item\em Disable user. \end{DoxyCompactList}\item 
def \hyperlink{namespace_server_af73d203b1f93b0f4014456fb52c7626a}{Server.\+quit\+\_\+user} (connection)
\begin{DoxyCompactList}\small\item\em Disconnect user. \end{DoxyCompactList}\item 
def \hyperlink{namespace_server_a23b4ef94218cf46a4a1af4ed37c5278b}{Server.\+get\+\_\+connection\+\_\+by\+\_\+pseudo} (pseudo)
\begin{DoxyCompactList}\small\item\em Get the socket descriptor by a pseudo. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Variables}
\begin{DoxyCompactItemize}
\item 
int \hyperlink{namespace_server_ad80a48b2e2123c1442355c35e9a12180}{Server.\+U\+S\+E\+R\+L\+I\+S\+T\+\_\+\+E\+N\+A\+B\+L\+E} = 300
\item 
int \hyperlink{namespace_server_a20a80092be74432cb9d70ee7d69a7897}{Server.\+U\+S\+E\+R\+L\+I\+S\+T\+\_\+\+D\+I\+S\+A\+B\+L\+E} = 301
\item 
int \hyperlink{namespace_server_a6d93191ccb1aca72fc4e4c35df44dc54}{Server.\+H\+A\+S\+\_\+\+J\+O\+I\+N} = 302
\item 
int \hyperlink{namespace_server_a30d806240b31876a27ec926941c45c7b}{Server.\+H\+A\+S\+\_\+\+L\+E\+F\+T} = 303
\item 
int \hyperlink{namespace_server_a6403a5757be6c8ca9123c4a1d84fcf8f}{Server.\+N\+E\+W\+\_\+\+M\+S\+G} = 304
\item 
int \hyperlink{namespace_server_a74a7d4ecad24b92d3e58fa6935bf4738}{Server.\+N\+A\+M\+E\+\_\+\+C\+H\+A\+N\+G\+E\+D} = 305
\item 
int \hyperlink{namespace_server_a5baa396c48e11763e3a9e6b7949c848c}{Server.\+N\+E\+W\+\_\+\+P\+M} = 306
\item 
int \hyperlink{namespace_server_a0a4c647255674a0b8b88b4e0352735b8}{Server.\+A\+S\+K\+I\+N\+G\+\_\+\+F\+O\+R\+\_\+\+P\+M} = 307
\item 
int \hyperlink{namespace_server_a7ed9c5c7a5d63ed69e59b8e1facf1941}{Server.\+P\+R\+I\+V\+A\+T\+E\+\_\+\+D\+I\+S\+C\+U\+\_\+\+A\+C\+C\+E\+P\+T\+E\+D\+\_\+\+F\+R\+O\+M} = 308
\item 
int \hyperlink{namespace_server_a1893bf20254e625ee4d337b5ac4c0c7c}{Server.\+P\+R\+I\+V\+A\+T\+E\+\_\+\+D\+I\+S\+C\+U\+\_\+\+R\+E\+F\+U\+S\+E\+D\+\_\+\+F\+R\+O\+M} = 309
\item 
int \hyperlink{namespace_server_a706046d1323e6c8efcf412f039468feb}{Server.\+I\+S\+\_\+\+N\+O\+W\+\_\+\+E\+N\+A\+B\+L\+E} = 310
\item 
int \hyperlink{namespace_server_ad86289daa647c23b114d6eeecb311b74}{Server.\+I\+S\+\_\+\+N\+O\+W\+\_\+\+D\+I\+S\+A\+B\+L\+E} = 311
\item 
int \hyperlink{namespace_server_a948cf317958301749b5133cb0e429cbf}{Server.\+H\+A\+S\+\_\+\+A\+S\+K\+E\+D\+\_\+\+F\+I\+L\+E} = 312
\item 
int \hyperlink{namespace_server_a0e574da7da6c6fa749d02202b36efae4}{Server.\+C\+A\+N\+\_\+\+S\+E\+N\+D\+\_\+\+F\+I\+L\+E} = 313
\item 
int \hyperlink{namespace_server_ac45d5a8294d066cceee3b4f808f4ab04}{Server.\+H\+A\+S\+\_\+\+R\+E\+J\+E\+C\+T\+\_\+\+F\+I\+L\+E} = 314
\item 
int \hyperlink{namespace_server_a0a446eb75138a1b946c7adf06feaa638}{Server.\+S\+U\+C\+C\+\_\+\+C\+H\+A\+N\+N\+E\+L\+\_\+\+J\+O\+I\+N\+E\+D} = 200
\item 
int \hyperlink{namespace_server_a9653741644804867d5c762d637aa714a}{Server.\+S\+U\+C\+C\+\_\+\+C\+H\+A\+N\+N\+E\+L\+\_\+\+Q\+U\+I\+T} = 201
\item 
int \hyperlink{namespace_server_ae41a5af03180af57ac7842e0309d4fa7}{Server.\+S\+U\+C\+C\+\_\+\+M\+E\+S\+S\+A\+G\+E\+\_\+\+S\+E\+N\+D\+E\+D} = 202
\item 
int \hyperlink{namespace_server_a48248ec155d0641a5e47603f2b63b37f}{Server.\+S\+U\+C\+C\+\_\+\+N\+I\+C\+K\+N\+A\+M\+E\+\_\+\+C\+H\+A\+N\+G\+E\+D} = 203
\item 
int \hyperlink{namespace_server_a01ffc4404f384ae4ca5ef739be4abacd}{Server.\+S\+U\+C\+C\+\_\+\+P\+M\+\_\+\+S\+E\+N\+D\+E\+D} = 205
\item 
int \hyperlink{namespace_server_a44b9c60be4a9b7cb3840d7cf13a2ef07}{Server.\+S\+U\+C\+C\+E\+S\+S\+F\+U\+L\+\_\+\+A\+S\+K\+E\+D\+\_\+\+C\+O\+N\+V} = 206
\item 
int \hyperlink{namespace_server_a9f976ad2360614ad56f0f9b69e1d5531}{Server.\+S\+U\+C\+C\+E\+S\+S\+F\+U\+L\+\_\+\+A\+C\+C\+E\+P\+T\+E\+D\+\_\+\+C\+O\+N\+V} = 207
\item 
int \hyperlink{namespace_server_a70f0f7aa86090898f53d0f52d3f4e4d7}{Server.\+S\+U\+C\+C\+E\+S\+S\+F\+U\+L\+\_\+\+R\+E\+F\+U\+S\+E\+D\+\_\+\+C\+O\+N\+V} = 208
\item 
int \hyperlink{namespace_server_a0d04d348838bfae170d279430a2570df}{Server.\+S\+U\+C\+C\+\_\+\+E\+N\+A\+B\+L\+E\+D} = 209
\item 
int \hyperlink{namespace_server_a662b6a6d59fdbe98f37a4dac857f56e6}{Server.\+S\+U\+C\+C\+\_\+\+D\+I\+S\+A\+B\+L\+E\+D} = 210
\item 
int \hyperlink{namespace_server_a0f9d2f56d8da4e1f082db5b399c53e49}{Server.\+S\+U\+C\+C\+\_\+\+P\+M\+F\+I\+L\+E} = 211
\item 
int \hyperlink{namespace_server_a53415d85b058622e3aae5ce84985d5ce}{Server.\+S\+U\+C\+C\+\_\+\+A\+C\+C\+E\+P\+T\+E\+D\+\_\+\+F\+I\+L\+E} = 212
\item 
int \hyperlink{namespace_server_aaaad6f296a49912bba515f1035d9af89}{Server.\+S\+U\+C\+C\+\_\+\+R\+E\+F\+U\+S\+E\+D\+\_\+\+F\+I\+L\+E} = 213
\item 
int \hyperlink{namespace_server_a694f8f0d80fb62bdbe88484506f798e9}{Server.\+E\+R\+R\+\_\+\+N\+I\+C\+K\+N\+A\+M\+E\+\_\+\+A\+L\+R\+E\+A\+D\+Y\+\_\+\+U\+S\+E\+D} = 400
\item 
int \hyperlink{namespace_server_ac38a41cef46c16cd55f914479173d7e7}{Server.\+E\+R\+R\+\_\+\+N\+O\+\_\+\+N\+I\+C\+K\+N\+A\+M\+E} = 401
\item 
int \hyperlink{namespace_server_a4a2b6adb4d445ae828f03ab00e99024b}{Server.\+E\+R\+R\+\_\+\+C\+O\+N\+V\+\_\+\+N\+O\+T\+\_\+\+A\+L\+L\+O\+W\+E\+D} = 402
\item 
int \hyperlink{namespace_server_a58ccc0de13c1317e02ae6c7acc95babd}{Server.\+D\+E\+S\+T\+\_\+\+N\+O\+T\+\_\+\+F\+O\+U\+N\+D} = 403
\item 
int \hyperlink{namespace_server_a3636d43b6ad3b3f41bf531830f567577}{Server.\+E\+R\+R\+\_\+\+A\+L\+R\+E\+A\+D\+Y\+\_\+\+A\+S\+K\+E\+D\+\_\+\+F\+O\+R\+\_\+\+P\+M} = 404
\item 
int \hyperlink{namespace_server_a64e45a54c72b15ec3ef27064a69067bf}{Server.\+E\+R\+R\+\_\+\+N\+O\+\_\+\+I\+N\+V\+I\+T\+\_\+\+T\+O\+\_\+\+C\+O\+N\+V\+\_\+\+F\+O\+U\+N\+D} = 405
\item 
int \hyperlink{namespace_server_ad7305f8755fe9025d1a08d7e28931fff}{Server.\+E\+R\+R\+\_\+\+U\+N\+K\+N\+O\+W\+N\+\_\+\+A\+C\+C\+E\+P\+T\+E\+D\+\_\+\+F\+I\+L\+E} = 406
\item 
int \hyperlink{namespace_server_accfadc084947316e3de1bf2e8f0292de}{Server.\+C\+O\+M\+M\+A\+N\+D\+\_\+\+N\+O\+T\+\_\+\+F\+O\+U\+N\+D} = 407
\item 
int \hyperlink{namespace_server_a8a68f5e3a20d872bc0a0657c42e2281d}{Server.\+E\+R\+R\+\_\+\+I\+N\+V\+A\+L\+I\+D\+\_\+\+N\+I\+C\+K\+N\+A\+M\+E} = 408
\item 
int \hyperlink{namespace_server_a3515074e422119d92e2f6a0087eda6a9}{Server.\+E\+R\+R\+\_\+\+I\+N\+T\+E\+R\+N\+A\+L\+\_\+\+S\+E\+R\+V\+E\+R\+\_\+\+E\+R\+R\+O\+R} = 409
\item 
int \hyperlink{namespace_server_a03d76767907390977f2f88588ddb2e46}{Server.\+E\+R\+R\+\_\+\+N\+O\+T\+\_\+\+D\+I\+S\+A\+B\+L\+E\+D} = 410
\item 
int \hyperlink{namespace_server_acc557207eefe9a375185ff17a8f4c641}{Server.\+E\+R\+R\+\_\+\+N\+O\+T\+\_\+\+E\+N\+A\+B\+L\+E\+D} = 411
\end{DoxyCompactItemize}
