Defines | Functions | Variables

msersock.c File Reference

#include <stdio.h>
#include <winsock2.h>

Go to the source code of this file.

Defines

#define PORT   5555
#define MAXMSG   512
#define MAXCLI   64

Functions

void erro_fatal (char *mensagem)
int cria_soquete_serv (int porta)
int envia_pro_cliente (int filedes, char *msg)
int atende_o_cliente (int sock)
int main ()

Variables

int numcli

Define Documentation

#define MAXCLI   64

Definition at line 39 of file msersock.c.

#define MAXMSG   512

Definition at line 38 of file msersock.c.

#define PORT   5555

Definition at line 37 of file msersock.c.


Function Documentation

int atende_o_cliente ( int  sock  ) 

Definition at line 91 of file msersock.c.

Here is the call graph for this function:

int cria_soquete_serv ( int  porta  ) 

Definition at line 48 of file msersock.c.

Here is the call graph for this function:

int envia_pro_cliente ( int  filedes,
char *  msg 
)

Definition at line 75 of file msersock.c.

Here is the call graph for this function:

void erro_fatal ( char *  mensagem  ) 

Definition at line 42 of file msersock.c.

int main ( void   ) 

Definition at line 110 of file msersock.c.

Here is the call graph for this function:


Variable Documentation

int numcli

Definition at line 107 of file msersock.c.