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
35192613
Commit
35192613
authored
Oct 07, 2008
by
Youness Alaoui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
port test-bsd to the new API
parent
9e7a0709
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
7 deletions
+2
-7
socket/test-bsd.c
socket/test-bsd.c
+2
-5
socket/udp-bsd.c
socket/udp-bsd.c
+0
-1
socket/udp-turn.c
socket/udp-turn.c
+0
-1
No files found.
socket/test-bsd.c
View file @
35192613
...
...
@@ -45,15 +45,13 @@
int
main
(
void
)
{
NiceSocketFactory
*
factory
;
NiceSocket
*
server
;
NiceSocket
*
client
;
NiceAddress
tmp
;
gchar
buf
[
5
];
factory
=
nice_socket_factory_new
(
NICE_SOCKET_FACTORY_UDP_BSD
);
server
=
nice_
socket_new
(
factory
,
NULL
);
server
=
nice_
udp_bsd_socket_new
(
NULL
);
if
(
!
server
)
g_assert_not_reached
();
...
...
@@ -62,7 +60,7 @@ main (void)
// is bound to a particular port
g_assert
(
nice_address_get_port
(
&
server
->
addr
)
!=
0
);
g_assert
((
client
=
nice_
socket_new
(
factory
,
NULL
))
!=
NULL
);
g_assert
((
client
=
nice_
udp_bsd_socket_new
(
NULL
))
!=
NULL
);
// not bound to a particular interface
g_assert
(
client
->
addr
.
s
.
ip4
.
sin_addr
.
s_addr
==
0
);
// is bound to a particular port
...
...
@@ -89,7 +87,6 @@ main (void)
nice_socket_free
(
client
);
nice_socket_free
(
server
);
nice_socket_factory_free
(
factory
);
return
0
;
}
socket/udp-bsd.c
View file @
35192613
...
...
@@ -121,7 +121,6 @@ socket_close (NiceSocket *sock)
close
(
sock
->
fileno
);
}
/*** NiceSocketFactory ***/
NiceSocket
*
nice_udp_bsd_socket_new
(
NiceAddress
*
addr
)
...
...
socket/udp-turn.c
View file @
35192613
...
...
@@ -486,7 +486,6 @@ socket_close (NiceSocket *sock)
g_free
(
priv
);
}
/*** NiceSocketFactory ***/
NICEAPI_EXPORT
NiceSocket
*
nice_udp_turn_socket_new
(
...
...
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