Commit 75e7ef3d authored by Sergio Ammirata's avatar Sergio Ammirata

Use a consistent name for the new API

parent 4793807c
Pipeline #39499 passed with stages
in 1 minute and 34 seconds
......@@ -125,7 +125,7 @@ RIST_API int udpsocket_resolve_host(const char *host, uint16_t port, struct sock
RIST_API int udpsocket_set_nonblocking(int sd);
RIST_API int udpsocket_send(int sd, const void *buf, size_t size);
RIST_API int udpsocket_send_async(int sd, const void *buf, size_t size);
RIST_API int udpsocket_send_nonblocking(int sd, const void *buf, size_t size);
RIST_API int udpsocket_sendto(int sd, const void *buf, size_t size, const char *host, uint16_t port);
RIST_API int udpsocket_recv(int sd, void *buf, size_t size);
RIST_API int udpsocket_recvfrom(int sd, void *buf, size_t size, int flags, struct sockaddr *addr, socklen_t *addr_len);
......
......@@ -59,7 +59,7 @@ static inline void rist_log_impl(struct rist_logging_settings *log_settings, enu
goto out;
}
if (log_settings->log_socket)
udpsocket_send_async(log_settings->log_socket, logmsg, msglen);
udpsocket_send_nonblocking(log_settings->log_socket, logmsg, msglen);
if (log_settings->log_stream)
fputs(logmsg, log_settings->log_stream);
......
......@@ -345,7 +345,7 @@ int udpsocket_set_nonblocking(int sd)
return 0;
}
int udpsocket_send_async(int sd, const void *buf, size_t size)
int udpsocket_send_nonblocking(int sd, const void *buf, size_t size)
{
return (int)send(sd, buf, size, MSG_DONTWAIT);
}
......
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