mirror of
https://github.com/tinygo-org/net.git
synced 2026-08-09 22:23:39 +00:00
BUG Fix: return proper net.OpError's for Read/Write operations
Need to return the same error structure/content as regular Go for net.Conn Read/Write operations. Found/fixed when testing deadlines on Read/Write operations.
This commit is contained in:
committed by
deadprogram
parent
ad745d61ae
commit
7898c5e946
@@ -45,8 +45,8 @@ type netdever interface {
|
||||
Connect(sockfd int, host string, ip IP, port int) error
|
||||
Listen(sockfd int, backlog int) error
|
||||
Accept(sockfd int, ip IP, port int) (int, error)
|
||||
Send(sockfd int, buf []byte, flags int, timeout time.Duration) (int, error)
|
||||
Recv(sockfd int, buf []byte, flags int, timeout time.Duration) (int, error)
|
||||
Send(sockfd int, buf []byte, flags int, deadline time.Time) (int, error)
|
||||
Recv(sockfd int, buf []byte, flags int, deadline time.Time) (int, error)
|
||||
Close(sockfd int) error
|
||||
SetSockOpt(sockfd int, level int, opt int, value interface{}) error
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user