2020-08-22 00:50:38 +02:00
|
|
|
module websocket
|
|
|
|
|
2020-11-15 21:54:47 +01:00
|
|
|
import net
|
2020-08-22 00:50:38 +02:00
|
|
|
|
2020-12-02 04:02:53 +01:00
|
|
|
// error_code returns the error code
|
2020-08-22 00:50:38 +02:00
|
|
|
fn error_code() int {
|
|
|
|
return C.WSAGetLastError()
|
|
|
|
}
|
|
|
|
|
|
|
|
const (
|
2020-12-02 04:02:53 +01:00
|
|
|
error_ewouldblock = net.WsaError.wsaewouldblock // blocking error code
|
2020-08-22 00:50:38 +02:00
|
|
|
)
|