Classes | Functions | Variables

ana/apps/chat/client.cpp File Reference

Client side chat application. More...

#include <iostream>
#include <iomanip>
#include "ana.hpp"
Include dependency graph for client.cpp:

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"

Detailed Description

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.


Function Documentation

int main ( int  argc,
char **  argv 
)
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().

Here is the caller graph for this function:


Variable Documentation

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().

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated by doxygen 1.7.1 on Tue May 22 2012 01:04:19 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs