mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-02 11:19:28 +00:00
a little bit of header file cleanup
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5110 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
63b1a82251
commit
1be54b24ac
@ -36,21 +36,8 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <string.h>
|
|
||||||
#include <stdlib.h>
|
|
||||||
#include <time.h>
|
|
||||||
|
|
||||||
#ifdef WIN32
|
|
||||||
#include <winsock2.h>
|
|
||||||
#else
|
|
||||||
#include <sys/socket.h>
|
|
||||||
#include <arpa/inet.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <sofia-sip/su_localinfo.h>
|
#include <sofia-sip/su_localinfo.h>
|
||||||
|
|
||||||
|
|
||||||
SOFIA_BEGIN_DECLS
|
SOFIA_BEGIN_DECLS
|
||||||
|
|
||||||
/* Define Message Types */
|
/* Define Message Types */
|
||||||
|
@ -43,6 +43,7 @@
|
|||||||
|
|
||||||
#include "stun_internal.h"
|
#include "stun_internal.h"
|
||||||
|
|
||||||
|
#include <string.h>
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
|
||||||
#if HAVE_FUNC
|
#if HAVE_FUNC
|
||||||
|
@ -54,6 +54,8 @@ static char const __func__[] = "stun_dns";
|
|||||||
|
|
||||||
#include "stun_internal.h"
|
#include "stun_internal.h"
|
||||||
|
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
struct stun_dns_lookup_s {
|
struct stun_dns_lookup_s {
|
||||||
su_home_t stun_home[1];
|
su_home_t stun_home[1];
|
||||||
su_root_t *stun_root;
|
su_root_t *stun_root;
|
||||||
|
@ -39,6 +39,7 @@
|
|||||||
#include "stun_internal.h"
|
#include "stun_internal.h"
|
||||||
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
typedef struct stun_bound_s stun_bound_t;
|
typedef struct stun_bound_s stun_bound_t;
|
||||||
|
|
||||||
|
@ -964,6 +964,10 @@ tport_t *tport_base_connect(tport_primary_t *pri,
|
|||||||
if (tport_setname(self, tpn->tpn_proto, real_ai, tpn->tpn_canon) == -1)
|
if (tport_setname(self, tpn->tpn_proto, real_ai, tpn->tpn_canon) == -1)
|
||||||
TPORT_CONNECT_ERROR(su_errno(), tport_setname);
|
TPORT_CONNECT_ERROR(su_errno(), tport_setname);
|
||||||
|
|
||||||
|
/* Try to have a non-blocking connect().
|
||||||
|
* The su_wait_create() below makes the socket non-blocking anyway. */
|
||||||
|
su_setblocking(s, 0);
|
||||||
|
|
||||||
if (connect(s, ai->ai_addr, (socklen_t)(ai->ai_addrlen)) == SOCKET_ERROR) {
|
if (connect(s, ai->ai_addr, (socklen_t)(ai->ai_addrlen)) == SOCKET_ERROR) {
|
||||||
err = su_errno();
|
err = su_errno();
|
||||||
if (!su_is_blocking(err))
|
if (!su_is_blocking(err))
|
||||||
|
@ -33,6 +33,8 @@
|
|||||||
|
|
||||||
#include "tport_internal.h"
|
#include "tport_internal.h"
|
||||||
|
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
tport_comp_vtable_t const *tport_comp_vtable = NULL;
|
tport_comp_vtable_t const *tport_comp_vtable = NULL;
|
||||||
|
|
||||||
int tport_plug_in_compress(tport_comp_vtable_t const *vsc)
|
int tport_plug_in_compress(tport_comp_vtable_t const *vsc)
|
||||||
|
@ -40,6 +40,7 @@
|
|||||||
#include "sofia-sip/msg_addr.h"
|
#include "sofia-sip/msg_addr.h"
|
||||||
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
/* ---------------------------------------------------------------------- */
|
/* ---------------------------------------------------------------------- */
|
||||||
/* Plugin pointer */
|
/* Plugin pointer */
|
||||||
|
@ -50,6 +50,7 @@
|
|||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
/* ---------------------------------------------------------------------- */
|
/* ---------------------------------------------------------------------- */
|
||||||
/* SCTP */
|
/* SCTP */
|
||||||
|
@ -45,6 +45,7 @@
|
|||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
/* ---------------------------------------------------------------------- */
|
/* ---------------------------------------------------------------------- */
|
||||||
/* TLS */
|
/* TLS */
|
||||||
|
@ -43,6 +43,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
#include <string.h>
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user