Commit 86db8361 authored by Dominik Charousset's avatar Dominik Charousset

Fix typos

parent 8681cc92
......@@ -51,7 +51,7 @@ std::variant<std::pair<size_t, ip_endpoint>, sec>
/// @param x The UDP socket for sending datagrams.
/// @param bufs Points to the datagram to send, scattered across up to 10
/// buffers.
/// @param ep The enpoint to send the datagram to.
/// @param ep The endpoint to send the datagram to.
/// @returns The number of written bytes on success, otherwise an error code.
/// @relates udp_datagram_socket
/// @pre `bufs.size() < 10`
......@@ -62,7 +62,7 @@ std::variant<size_t, sec> CAF_NET_EXPORT write(udp_datagram_socket x,
/// Sends the content of `buf` as a datagram to the endpoint `ep` on socket `x`.
/// @param x The UDP socket for sending datagrams.
/// @param buf The buffer to send.
/// @param ep The enpoint to send the datagram to.
/// @param ep The endpoint to send the datagram to.
/// @returns The number of written bytes on success, otherwise an error code.
/// @relates udp_datagram_socket
std::variant<size_t, sec> CAF_NET_EXPORT write(udp_datagram_socket x,
......
......@@ -59,9 +59,9 @@ make_udp_datagram_socket(ip_endpoint ep, bool reuse_addr) {
reinterpret_cast<setsockopt_ptr>(&on),
static_cast<socket_size_type>(sizeof(on))));
}
CAF_NET_SYSCALL("bind", err, !=, 0,
CAF_NET_SYSCALL("bind", err1, !=, 0,
::bind(sock.id, reinterpret_cast<sockaddr*>(&addr), len));
CAF_NET_SYSCALL("getsockname", erro, !=, 0,
CAF_NET_SYSCALL("getsockname", err2, !=, 0,
getsockname(sock.id, reinterpret_cast<sockaddr*>(&addr),
&len));
CAF_LOG_DEBUG(CAF_ARG(sock.id));
......
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