Defines | Functions

chat.c File Reference

comunicação entre dois ambientes com sockets. More...

#include <sys/types.h>
#include <sys/socket.h>
#include <sys/stat.h>
#include <netinet/in.h>
#include <netdb.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>

Go to the source code of this file.

Defines

#define TAMMSG   80

Functions

int main (int argc, char *argv[])
 Funcao que gerencia execucao programa.

Detailed Description

Comunicacao usando sockets.

Para executar o chat: primeiro deve configurar ele no arm, depois chamar o sistema que fara troca de mensagem.

Author:
Marco Tulio Martins

Para executar o chat:

Chamar no terminal o chat chat <porta>

Colocar o servidor para executar... acesse: cd tools/ chame o programa ./chat <endereco> <port>

Author:
Marco Tulio Martins

Definition in file chat.c.