simple-multicast  0.2.1
 All Files Functions Typedefs Macros Pages
Macros | Typedefs | Functions
compatibility.h File Reference

Common definitions to make unix and win more compatible. More...

#include <windows.h>
#include <winsock2.h>
#include <Ws2tcpip.h>
Include dependency graph for compatibility.h:
This graph shows which files directly or indirectly include this file:

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)

Detailed Description

Common definitions to make unix and win more compatible.

Author
Andrea Florio andre.nosp@m.a@op.nosp@m.ensus.nosp@m.e.or.nosp@m.g
Version
0.1
Date
2013

License

Copyright (C) 2013
Andrea Florio 2013 andre.nosp@m.a@op.nosp@m.ensus.nosp@m.e.or.nosp@m.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/.

Macro Definition Documentation

#define SOURCE_PORT   0

A dummy source port number.

Typedef Documentation

int bool

Standard boolean type, this kind of variable should be #TRUE or #FALSE only.

Function Documentation

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()

Parameters
delay_sIs a int indicating how long to sleep.