2020-08-22 00:50:38 +02:00
|
|
|
module websocket
|
|
|
|
|
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.errno
|
|
|
|
}
|
|
|
|
|
|
|
|
const (
|
2020-12-02 04:02:53 +01:00
|
|
|
error_ewouldblock = C.EWOULDBLOCK // blocking error code
|
2020-08-22 00:50:38 +02:00
|
|
|
)
|