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
57d575c3
Commit
57d575c3
authored
May 28, 2008
by
Youness Alaoui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removing inlines from trans
parent
91954060
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
9 deletions
+14
-9
stun/trans.c
stun/trans.c
+12
-1
stun/trans.h
stun/trans.h
+2
-8
No files found.
stun/trans.c
View file @
57d575c3
...
...
@@ -210,7 +210,7 @@ int stun_trans_start (stun_trans_t *tr)
}
static
in
line
in
t
stun_err_dequeue
(
int
fd
)
static
int
stun_err_dequeue
(
int
fd
)
{
#ifdef MSG_ERRQUEUE
struct
msghdr
hdr
;
...
...
@@ -473,3 +473,14 @@ int stun_trans_preprocess (stun_trans_t *restrict tr, int *pcode,
return
0
;
}
ssize_t
stun_send
(
int
fd
,
const
uint8_t
*
buf
,
size_t
len
)
{
return
stun_sendto
(
fd
,
buf
,
len
,
NULL
,
0
);
}
ssize_t
stun_recv
(
int
fd
,
uint8_t
*
buf
,
size_t
maxlen
)
{
return
stun_recvfrom
(
fd
,
buf
,
maxlen
,
NULL
,
NULL
);
}
stun/trans.h
View file @
57d575c3
...
...
@@ -169,15 +169,9 @@ ssize_t stun_recvfrom (int fd, uint8_t *buf, size_t maxlen,
struct
sockaddr
*
restrict
src
,
socklen_t
*
restrict
srclen
);
static
inline
ssize_t
stun_send
(
int
fd
,
const
uint8_t
*
buf
,
size_t
len
)
{
return
stun_sendto
(
fd
,
buf
,
len
,
NULL
,
0
);
}
ssize_t
stun_send
(
int
fd
,
const
uint8_t
*
buf
,
size_t
len
);
static
inline
ssize_t
stun_recv
(
int
fd
,
uint8_t
*
buf
,
size_t
maxlen
)
{
return
stun_recvfrom
(
fd
,
buf
,
maxlen
,
NULL
,
NULL
);
}
ssize_t
stun_recv
(
int
fd
,
uint8_t
*
buf
,
size_t
maxlen
);
# ifdef __cplusplus
}
...
...
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