Common definitions to make unix and win more compatible. More...
#include <windows.h>
#include <winsock2.h>
#include <Ws2tcpip.h>
Go to the source code of this file.
Macros | |
#define | SOURCE_PORT 0 |
A dummy source port number. |
Typedefs | |
typedef int | bool |
Standard boolean type, this kind of variable should be #TRUE or #FALSE only. |
Functions | |
void | sleep (int delay_s) |
A wrapper for Windows. | |
const char * | inet_ntop (int af, const void *src, char *dst, socklen_t cnt) |
int | inet_pton (int af, const char *src, void *dst) |
Common definitions to make unix and win more compatible.
Copyright (C) 2013
Andrea Florio 2013 andre a@op ensus e.or g
This Project is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the
Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This Project is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
#define SOURCE_PORT 0 |
A dummy source port number.
int bool |
Standard boolean type, this kind of variable should be #TRUE or #FALSE only.
const char* inet_ntop | ( | int | af, |
const void * | src, | ||
char * | dst, | ||
socklen_t | cnt | ||
) |
int inet_pton | ( | int | af, |
const char * | src, | ||
void * | dst | ||
) |
void sleep | ( | int | delay_s | ) |
A wrapper for Windows.
converts Unix sleep() to windows Sleep()
delay_s | Is a int indicating how long to sleep. |