address.h | address.h | |||
---|---|---|---|---|
skipping to change at line 57 | skipping to change at line 57 | |||
* | * | |||
* The #NiceAddress structure will allow you to easily set/get and modify a n IPv4 | * The #NiceAddress structure will allow you to easily set/get and modify a n IPv4 | |||
* or IPv6 address in order to communicate with the #NiceAgent. | * or IPv6 address in order to communicate with the #NiceAgent. | |||
*/ | */ | |||
#include <glib.h> | #include <glib.h> | |||
#ifdef G_OS_WIN32 | #ifdef G_OS_WIN32 | |||
#include <winsock2.h> | #include <winsock2.h> | |||
#include <ws2tcpip.h> | #include <ws2tcpip.h> | |||
#include <wspiapi.h> | ||||
#else | #else | |||
#include <sys/types.h> | #include <sys/types.h> | |||
#include <sys/socket.h> | #include <sys/socket.h> | |||
#include <netinet/in.h> | #include <netinet/in.h> | |||
#include <arpa/inet.h> | #include <arpa/inet.h> | |||
#endif | #endif | |||
G_BEGIN_DECLS | G_BEGIN_DECLS | |||
/** | /** | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 0 lines changed or added | |||
bind.h | bind.h | |||
---|---|---|---|---|
skipping to change at line 54 | skipping to change at line 54 | |||
* @short_description: STUN Binding Usage | * @short_description: STUN Binding Usage | |||
* @include: stun/usages/bind.h | * @include: stun/usages/bind.h | |||
* @stability: Stable | * @stability: Stable | |||
* | * | |||
* The STUN Binding usage allows for easily creating and parsing STUN Bindi ng | * The STUN Binding usage allows for easily creating and parsing STUN Bindi ng | |||
* requests and responses. It offers both an asynchronous and a synchronous API | * requests and responses. It offers both an asynchronous and a synchronous API | |||
* that uses the STUN timer usage. | * that uses the STUN timer usage. | |||
*/ | */ | |||
#ifdef _WIN32 | #ifdef _WIN32 | |||
#include "win32_common.h" | # include "../win32_common.h" | |||
#else | #else | |||
# include <stdbool.h> | # include <stdbool.h> | |||
# include <stdint.h> | # include <stdint.h> | |||
#endif | #endif | |||
# include "stun/stunagent.h" | # include "stun/stunagent.h" | |||
# ifdef __cplusplus | # ifdef __cplusplus | |||
extern "C" { | extern "C" { | |||
# endif | # endif | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added | |||
pseudotcp.h | pseudotcp.h | |||
---|---|---|---|---|
skipping to change at line 59 | skipping to change at line 59 | |||
* transport over non-reliable sockets (such as UDP). | * transport over non-reliable sockets (such as UDP). | |||
* | * | |||
* See the file tests/test-pseudotcp.c in the source package for an example | * See the file tests/test-pseudotcp.c in the source package for an example | |||
* of how to use the object. | * of how to use the object. | |||
* | * | |||
* Since: 0.0.11 | * Since: 0.0.11 | |||
*/ | */ | |||
#include <glib-object.h> | #include <glib-object.h> | |||
#ifdef G_OS_WIN32 | ||||
# include <winsock2.h> | ||||
# define ECONNABORTED WSAECONNABORTED | ||||
# define ENOTCONN WSAENOTCONN | ||||
# define EWOULDBLOCK WSAEWOULDBLOCK | ||||
# define ECONNRESET WSAECONNRESET | ||||
#endif | ||||
G_BEGIN_DECLS | G_BEGIN_DECLS | |||
/** | /** | |||
* PseudoTcpSocket: | * PseudoTcpSocket: | |||
* | * | |||
* The #PseudoTcpSocket is the GObject implementing the Pseudo TCP Socket | * The #PseudoTcpSocket is the GObject implementing the Pseudo TCP Socket | |||
* | * | |||
* Since: 0.0.11 | * Since: 0.0.11 | |||
*/ | */ | |||
typedef struct _PseudoTcpSocket PseudoTcpSocket; | typedef struct _PseudoTcpSocket PseudoTcpSocket; | |||
End of changes. 1 change blocks. | ||||
0 lines changed or deleted | 8 lines changed or added | |||
turn.h | turn.h | |||
---|---|---|---|---|
skipping to change at line 55 | skipping to change at line 55 | |||
* @include: stun/usages/turn.h | * @include: stun/usages/turn.h | |||
* @stability: Stable | * @stability: Stable | |||
* | * | |||
* The STUN TURN usage allows for easily creating and parsing STUN Allocate | * The STUN TURN usage allows for easily creating and parsing STUN Allocate | |||
* requests and responses used for TURN. The API allows you to create a new | * requests and responses used for TURN. The API allows you to create a new | |||
* allocation or refresh an existing one as well as to parse a response to | * allocation or refresh an existing one as well as to parse a response to | |||
* an allocate or refresh request. | * an allocate or refresh request. | |||
*/ | */ | |||
#ifdef _WIN32 | #ifdef _WIN32 | |||
#include "win32_common.h" | # include "../win32_common.h" | |||
#else | #else | |||
# include <stdbool.h> | # include <stdbool.h> | |||
# include <stdint.h> | # include <stdint.h> | |||
#endif | #endif | |||
#ifdef _WIN32 | #ifdef _WIN32 | |||
#include <winsock2.h> | #include <winsock2.h> | |||
#else | #else | |||
#include <sys/types.h> | #include <sys/types.h> | |||
#include <sys/socket.h> | #include <sys/socket.h> | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added | |||
win32_common.h | win32_common.h | |||
---|---|---|---|---|
skipping to change at line 59 | skipping to change at line 59 | |||
* WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY | * WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY | |||
* DISCLAIMED. This includes but is not limited to warranties of | * DISCLAIMED. This includes but is not limited to warranties of | |||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | |||
* | * | |||
* Date: 2000-12-02 | * Date: 2000-12-02 | |||
*/ | */ | |||
#ifndef _WIN32_COMMON_H | #ifndef _WIN32_COMMON_H | |||
#define _WIN32_COMMON_H | #define _WIN32_COMMON_H | |||
#include <sys/types.h> | ||||
/* 7.18.1.1 Exact-width integer types */ | /* 7.18.1.1 Exact-width integer types */ | |||
typedef signed char int8_t; | typedef signed char int8_t; | |||
typedef unsigned char uint8_t; | typedef unsigned char uint8_t; | |||
typedef short int16_t; | typedef short int16_t; | |||
typedef unsigned short uint16_t; | typedef unsigned short uint16_t; | |||
typedef int int32_t; | typedef int int32_t; | |||
typedef unsigned uint32_t; | typedef unsigned uint32_t; | |||
typedef long long int64_t; | typedef long long int64_t; | |||
typedef unsigned long long uint64_t; | typedef unsigned long long uint64_t; | |||
#ifndef _SSIZE_T_ | ||||
typedef unsigned int size_t; | typedef unsigned int size_t; | |||
typedef unsigned long ssize_t; | typedef unsigned long ssize_t; | |||
#endif | ||||
typedef uint8_t bool; | typedef uint8_t bool; | |||
#define true 1 | #define true 1 | |||
#define false 0 | #define false 0 | |||
#endif /* _WIN32_COMMON_H */ | #endif /* _WIN32_COMMON_H */ | |||
End of changes. 3 change blocks. | ||||
0 lines changed or deleted | 5 lines changed or added | |||