Skip to content

Commit

Permalink
doc: add udp recvfrom
Browse files Browse the repository at this point in the history
  • Loading branch information
ihnorton committed Dec 20, 2014
1 parent b08cf71 commit 108578b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion doc/stdlib/base.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2176,7 +2176,11 @@ Network I/O

.. function:: recv(socket::UDPSocket)

Read a UDP packet from the specified socket, and return the bytes received. This call blocks.
Read a UDP packet from the specified socket, and return the message bytes received. This call blocks.

.. function:: recvfrom(socket::UDPSocket) -> (address, data)

Read a UDP packet from the specified socket, returning a tuple of (address, data), where address will be either IPv4 or IPv6 as appropriate.

.. function:: setopt(sock::UDPSocket; multicast_loop = nothing, multicast_ttl=nothing, enable_broadcast=nothing, ttl=nothing)

Expand Down

0 comments on commit 108578b

Please sign in to comment.