Go to the source code of this file.
Enumerations | |
| enum | t_ip_err { IP_OK = 0, IP_PARAM, IP_INIT, IP_SOCK, IP_SETSOCKOPT, IP_BIND, IP_SEND } |
| Errors returned by routines in the IP module. More... | |
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. | |
| enum t_ip_err |
Errors returned by routines in the IP module.
| 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. |
1.5.6