Client side chat application. More...
#include <iostream>#include <iomanip>#include "ana.hpp"
Go to the source code of this file.
Classes | |
| struct | connection_info |
| class | ChatClient |
Functions | |
| void | show_help (char *const command) |
| int | main (int argc, char **argv) |
Variables | |
| const port | DEFAULT_PORT = "30303" |
| const char *const | DEFAULT_ADDRESS = "127.0.0.1" |
| const char *const | DEFAULT_NAME = "Unnamed" |
Client side chat application.
Example for the ana project.
ana: Asynchronous Network API. Copyright (C) 2010 - 2012 Guillermo Biset.
This file is part of the ana project.
System: ana Language: C++
Author: Guillermo Biset E-Mail: billybiset AT gmail DOT com
ana is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 2 of the License, or (at your option) any later version.
ana is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with ana. If not, see <http://www.gnu.org/licenses/>.
Definition in file client.cpp.
| int main | ( | int | argc, | |
| char ** | argv | |||
| ) |
Definition at line 283 of file client.cpp.
References connection_info::address, connection_info::name, connection_info::password, connection_info::proxyaddr, connection_info::proxyport, connection_info::pt, ChatClient::run(), show_help(), and connection_info::user.

| void show_help | ( | char *const | command | ) |
Definition at line 46 of file client.cpp.
References DEFAULT_ADDRESS, DEFAULT_NAME, and DEFAULT_PORT.
Referenced by main().

| const char* const DEFAULT_ADDRESS = "127.0.0.1" |
Definition at line 42 of file client.cpp.
Referenced by show_help().
| const char* const DEFAULT_NAME = "Unnamed" |
Definition at line 43 of file client.cpp.
Referenced by show_help().
| const port DEFAULT_PORT = "30303" |
Definition at line 40 of file client.cpp.
Referenced by main(), and show_help().
| Generated by doxygen 1.7.1 on Tue May 22 2012 01:04:19 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |