mirror of
https://github.com/tinygo-org/net.git
synced 2026-08-13 07:53:39 +00:00
correct netdever Accept() prototype
According to man page accept(2), accept returns new client sockfd and remote peer ip:port. This patch corrects the Accept() prototype in the netdever interface to not take in an ip:port arg, but rather return an ip:port for remote peer.
This commit is contained in:
@@ -95,7 +95,7 @@ type netdever interface {
|
||||
Bind(sockfd int, ip netip.AddrPort) error
|
||||
Connect(sockfd int, host string, ip netip.AddrPort) error
|
||||
Listen(sockfd int, backlog int) error
|
||||
Accept(sockfd int, ip netip.AddrPort) (int, error)
|
||||
Accept(sockfd int) (int, netip.AddrPort, error)
|
||||
|
||||
// # Flags argument on Send and Recv
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user