Commit 57d575c3 authored by Youness Alaoui's avatar Youness Alaoui

Removing inlines from trans

parent 91954060
......@@ -210,7 +210,7 @@ int stun_trans_start (stun_trans_t *tr)
}
static inline int 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);
}
......@@ -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
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment