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:
Scott Feldman
2023-12-17 23:30:37 -08:00
committed by Ron Evans
parent 4bc93e2fd8
commit c134160ae4
2 changed files with 15 additions and 4 deletions
+1 -1
View File
@@ -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
//