#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 MAX_STRLEN 127 |
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.
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.
aPort | UDP port to send the message to. |
t_ip_err ip_udpbcsend | ( | const char * | aString, | |
unsigned int | aPort | |||
) |
Sends the given message as UDP to the given port on localhost.
aString | the message to send. | |
aPort | UDP port to send the message to. |