mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
net: allow more fine grained control over socket shutdowns
This commit is contained in:
@ -49,7 +49,8 @@ fn new_stream_socket() !StreamSocket {
|
||||
}
|
||||
|
||||
fn (mut s StreamSocket) close() ! {
|
||||
return shutdown(s.handle)
|
||||
shutdown(s.handle)
|
||||
return close(s.handle)
|
||||
}
|
||||
|
||||
fn (mut s StreamSocket) @select(test Select, timeout time.Duration) !bool {
|
||||
|
Reference in New Issue
Block a user