mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 23:28:48 +00:00
correct newly found vets
This commit is contained in:
@@ -161,11 +161,10 @@ recv_any :: proc(socket: Any_Socket, buf: []byte) -> (
|
||||
) {
|
||||
switch socktype in socket {
|
||||
case TCP_Socket:
|
||||
bytes_read, err := recv_tcp(socktype, buf)
|
||||
return bytes_read, nil, err
|
||||
bytes_read, err = recv_tcp(socktype, buf)
|
||||
return
|
||||
case UDP_Socket:
|
||||
bytes_read, endpoint, err := recv_udp(socktype, buf)
|
||||
return bytes_read, endpoint, err
|
||||
return recv_udp(socktype, buf)
|
||||
case: panic("Not supported")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user