Defines | Functions

clisock.c File Reference

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

Go to the source code of this file.

Defines

#define MAXMSG   512

Functions

void erro_fatal (char *mensagem)
int cria_soquete (const char *hostname, int port)
int espera (int sock, int tempo)
int escreve_soq (int sock, char *mensagem)
int main (int argc, char **argv)

Define Documentation

#define MAXMSG   512

Definition at line 32 of file clisock.c.


Function Documentation

int cria_soquete ( const char *  hostname,
int  port 
)

Definition at line 45 of file clisock.c.

Here is the call graph for this function:

void erro_fatal ( char *  mensagem  ) 

Definition at line 37 of file clisock.c.

int escreve_soq ( int  sock,
char *  mensagem 
)

Definition at line 99 of file clisock.c.

Here is the call graph for this function:

int espera ( int  sock,
int  tempo 
)

Definition at line 79 of file clisock.c.

Here is the call graph for this function:

int main ( int  argc,
char **  argv 
)

Definition at line 115 of file clisock.c.

Here is the call graph for this function: