mirror of
https://github.com/vlang/v.git
synced 2025-09-13 22:42:26 +03:00
x.websocket: move to net.websocket module (#10648)
This commit is contained in:
parent
c44a47acb1
commit
ec973f5c6e
41 changed files with 1656 additions and 67 deletions
12
vlib/net/websocket/websocket_windows.c.v
Normal file
12
vlib/net/websocket/websocket_windows.c.v
Normal file
|
@ -0,0 +1,12 @@
|
|||
module websocket
|
||||
|
||||
import net
|
||||
|
||||
// error_code returns the error code
|
||||
fn error_code() int {
|
||||
return C.WSAGetLastError()
|
||||
}
|
||||
|
||||
const (
|
||||
error_ewouldblock = net.WsaError.wsaewouldblock // blocking error code
|
||||
)
|
Loading…
Add table
Add a link
Reference in a new issue