hare

The Hare programming language
git clone https://git.torresjrjr.com/hare.git
Log | Files | Refs | README | LICENSE

commit 146143d85f20ae5217d4a9d886c6dfc33cc416ad
parent 6a749628f21d3fade9a681919550a16c6274a0d7
Author: Drew DeVault <sir@cmpwn.com>
Date:   Sat, 19 Jun 2021 13:25:27 -0400

hare::udp: s/bind_option/listen_option/g

Signed-off-by: Drew DeVault <sir@cmpwn.com>

Diffstat:
Mnet/udp/+linux.ha | 2+-
Mnet/udp/options.ha | 4++--
2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/net/udp/+linux.ha b/net/udp/+linux.ha @@ -30,7 +30,7 @@ export fn connect( export fn listen( addr: ip::addr, port: u16, - options: bind_option... + options: listen_option... ) (socket | errors::opaque) = { const sockfd = match (rt::socket(match (addr) { ip::addr4 => rt::AF_INET: int, diff --git a/net/udp/options.ha b/net/udp/options.ha @@ -3,7 +3,7 @@ // the addressed u16 will be filled in with the port. export type portassignment = *u16; -// Options available for [[bind]]. -export type bind_option = portassignment; +// Options available for [[listen]]. +export type listen_option = portassignment; // TODO: Add send/recv flags