ce/ip.c File Reference

#include "ip.h"
#include <stdarg.h>
#include <winsock.h>
#include <stdio.h>

Defines

#define MAX_STRLEN   127

Functions

short ip_init ()
 Initializes the Windows IP stack.
void ip_cleanup ()
 Releases the Windows IP stack.
t_ip_err ip_udpbcsend (const char *aString, unsigned int aPort)
 Sends the given message as UDP to the given port on localhost.
t_ip_err ip_udpbcprint (unsigned int aPort, const char *anFmt,...)
 Sends a formated string the given UDP port on localhost.

Define Documentation

#define MAX_STRLEN   127


Function Documentation

void ip_cleanup (  ) 

Releases the Windows IP stack.

Calls WSACleanup if the stack has been initialized.

short ip_init (  ) 

Initializes the Windows IP stack.

Calls WSAStartup if not called yet.

Returns:
0 on error, != 0 on success.

t_ip_err ip_udpbcprint ( unsigned int  aPort,
const char *  anFmt,
  ... 
)

Sends a formated string the given UDP port on localhost.

Like ip_udpbcsend, but printf-like string formating can be used.

Parameters:
aPort UDP port to send the message to.
Returns:
IP_OK or error message.

t_ip_err ip_udpbcsend ( const char *  aString,
unsigned int  aPort 
)

Sends the given message as UDP to the given port on localhost.

Parameters:
aString the message to send.
aPort UDP port to send the message to.
Returns:
IP_OK or error message.


Generated on Mon Jul 12 14:51:51 2010 for cetoys by  doxygen 1.5.6