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
2f319ad9
Commit
2f319ad9
authored
Apr 24, 2014
by
Jakub Adam
Committed by
Olivier Crête
May 17, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nice_tcp_bsd_socket_new: rename addr -> remote_addr
parent
6344efa8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
socket/tcp-bsd.c
socket/tcp-bsd.c
+4
-4
socket/tcp-bsd.h
socket/tcp-bsd.h
+1
-1
No files found.
socket/tcp-bsd.c
View file @
2f319ad9
...
...
@@ -109,7 +109,7 @@ nice_tcp_bsd_socket_new_from_gsock (GMainContext *ctx, GSocket *gsock,
}
NiceSocket
*
nice_tcp_bsd_socket_new
(
GMainContext
*
ctx
,
NiceAddress
*
addr
,
gboolean
reliable
)
nice_tcp_bsd_socket_new
(
GMainContext
*
ctx
,
NiceAddress
*
remote_
addr
,
gboolean
reliable
)
{
union
{
struct
sockaddr_storage
storage
;
...
...
@@ -122,12 +122,12 @@ nice_tcp_bsd_socket_new (GMainContext *ctx, NiceAddress *addr, gboolean reliable
GSocketAddress
*
gaddr
;
NiceAddress
local_addr
;
if
(
addr
==
NULL
)
{
if
(
remote_
addr
==
NULL
)
{
/* We can't connect a tcp socket with no destination address */
return
NULL
;
}
nice_address_copy_to_sockaddr
(
addr
,
&
name
.
addr
);
nice_address_copy_to_sockaddr
(
remote_
addr
,
&
name
.
addr
);
if
(
name
.
storage
.
ss_family
==
AF_UNSPEC
||
name
.
storage
.
ss_family
==
AF_INET
)
{
gsock
=
g_socket_new
(
G_SOCKET_FAMILY_IPV4
,
G_SOCKET_TYPE_STREAM
,
...
...
@@ -183,7 +183,7 @@ nice_tcp_bsd_socket_new (GMainContext *ctx, NiceAddress *addr, gboolean reliable
nice_address_set_from_sockaddr
(
&
local_addr
,
&
name
.
addr
);
sock
=
nice_tcp_bsd_socket_new_from_gsock
(
ctx
,
gsock
,
&
local_addr
,
addr
,
sock
=
nice_tcp_bsd_socket_new_from_gsock
(
ctx
,
gsock
,
&
local_addr
,
remote_
addr
,
reliable
);
g_object_unref
(
gsock
);
...
...
socket/tcp-bsd.h
View file @
2f319ad9
...
...
@@ -43,7 +43,7 @@ G_BEGIN_DECLS
NiceSocket
*
nice_tcp_bsd_socket_new
(
GMainContext
*
ctx
,
NiceAddress
*
addr
,
gboolean
reliable
);
nice_tcp_bsd_socket_new
(
GMainContext
*
ctx
,
NiceAddress
*
remote_
addr
,
gboolean
reliable
);
NiceSocket
*
nice_tcp_bsd_socket_new_from_gsock
(
GMainContext
*
ctx
,
GSocket
*
gsock
,
...
...
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