ricardopereira / cpp.chating

Chat application implemented with Named Pipes (Win32 API)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Chating

Visual Studio 2012 C++ project

ChatingServer

Server command line

server>start
_ (waiting for client connection)

Release server

Project properties -> Configuration properties -> C/C++ -> General -> Additional Include Directories -> ../Core;../Logic;../TUI
ChatingDll

DLL for client use

Note: only Autenticar is implemented for testing.

int Autenticar(const TCHAR *login, const TCHAR *pass);
int LerListaUtilizadores(UTILIZADOR *utilizadores);
int LerListaUtilizadoresRegistados(UTILIZADOR *utilizadores);
int IniciarConversa(const TCHAR *utilizador);
int DesligarConversa();
int EnviarMensagemPrivada(const TCHAR *msg);
int EnviarMensagemPublica(const TCHAR *msg);
CHAT LerInformacaoInicial();
MENSAGEM LerMensagensPublicas();
MENSAGEM LerMensagensPrivadas();
int Sair();
int Desligar();

Debugging the ChatingDll.dll

Project properties -> Configuration properties -> Debugging -> Command -> Browse... Chating.exe
Chating

Client: use DLL

Image of Login

Image of Public

Testing with server running and dll updated:

execute Chating.exe
server>start
Login approved for Admin
Client disconnected
Core

Core classes

Logic

Logic classes

TUI

Text User Interface classes

About

Chat application implemented with Named Pipes (Win32 API)


Languages

Language:C++ 97.3%Language:C 2.5%Language:Shell 0.2%