Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
libnice
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cpp-libs
libnice
Commits
3da890d4
Commit
3da890d4
authored
Feb 15, 2012
by
Filippo Della Betta
Committed by
Youness Alaoui
Feb 20, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WSAStartup/WSACleanup added on WIN32 platform
parent
0cdef497
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
1 deletion
+26
-1
tests/test-dribble.c
tests/test-dribble.c
+9
-0
tests/test-fullmode.c
tests/test-fullmode.c
+8
-1
tests/test.c
tests/test.c
+9
-0
No files found.
tests/test-dribble.c
View file @
3da890d4
...
@@ -207,6 +207,12 @@ int main (void)
...
@@ -207,6 +207,12 @@ int main (void)
GSList
*
cands
,
*
i
;
GSList
*
cands
,
*
i
;
guint
ls_id
,
rs_id
;
guint
ls_id
,
rs_id
;
#ifdef G_OS_WIN32
WSADATA
w
;
WSAStartup
(
0x0202
,
&
w
);
#endif
g_type_init
();
g_type_init
();
#if !GLIB_CHECK_VERSION(2,31,8)
#if !GLIB_CHECK_VERSION(2,31,8)
g_thread_init
(
NULL
);
g_thread_init
(
NULL
);
...
@@ -397,5 +403,8 @@ int main (void)
...
@@ -397,5 +403,8 @@ int main (void)
g_source_remove
(
timer_id
);
g_source_remove
(
timer_id
);
#ifdef G_OS_WIN32
WSACleanup
();
#endif
return
0
;
return
0
;
}
}
tests/test-fullmode.c
View file @
3da890d4
...
@@ -803,6 +803,11 @@ int main (void)
...
@@ -803,6 +803,11 @@ int main (void)
guint
timer_id
;
guint
timer_id
;
const
char
*
stun_server
=
NULL
,
*
stun_server_port
=
NULL
;
const
char
*
stun_server
=
NULL
,
*
stun_server_port
=
NULL
;
#ifdef G_OS_WIN32
WSADATA
w
;
WSAStartup
(
0x0202
,
&
w
);
#endif
g_type_init
();
g_type_init
();
#if !GLIB_CHECK_VERSION(2,31,8)
#if !GLIB_CHECK_VERSION(2,31,8)
g_thread_init
(
NULL
);
g_thread_init
(
NULL
);
...
@@ -1046,6 +1051,8 @@ int main (void)
...
@@ -1046,6 +1051,8 @@ int main (void)
global_mainloop
=
NULL
;
global_mainloop
=
NULL
;
g_source_remove
(
timer_id
);
g_source_remove
(
timer_id
);
#ifdef G_OS_WIN32
WSACleanup
();
#endif
return
result
;
return
result
;
}
}
tests/test.c
View file @
3da890d4
...
@@ -52,6 +52,12 @@ main (void)
...
@@ -52,6 +52,12 @@ main (void)
GSList
*
candidates
,
*
i
;
GSList
*
candidates
,
*
i
;
guint
stream_id
;
guint
stream_id
;
#ifdef G_OS_WIN32
WSADATA
w
;
WSAStartup
(
0x0202
,
&
w
);
#endif
nice_address_init
(
&
addr_local
);
nice_address_init
(
&
addr_local
);
nice_address_init
(
&
addr_remote
);
nice_address_init
(
&
addr_remote
);
g_type_init
();
g_type_init
();
...
@@ -94,6 +100,9 @@ main (void)
...
@@ -94,6 +100,9 @@ main (void)
/* clean up */
/* clean up */
g_object_unref
(
agent
);
g_object_unref
(
agent
);
#ifdef G_OS_WIN32
WSACleanup
();
#endif
return
0
;
return
0
;
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment