2021-02-11 17:51:12 +01:00
|
|
|
module unix
|
|
|
|
|
2022-02-18 10:23:45 +01:00
|
|
|
import net
|
|
|
|
|
|
|
|
const use_net = net.no_timeout
|
|
|
|
|
|
|
|
// 104 for macos, 108 for linux => use the minimum
|
|
|
|
const max_sun_path = 104
|
2021-05-22 09:53:19 +02:00
|
|
|
|
2021-02-11 17:51:12 +01:00
|
|
|
// Select represents a select operation
|
|
|
|
enum Select {
|
|
|
|
read
|
|
|
|
write
|
|
|
|
except
|
|
|
|
}
|
|
|
|
|
|
|
|
// SocketType are the available sockets
|
2021-03-05 15:41:11 +01:00
|
|
|
// enum SocketType {
|
|
|
|
// dgram = C.SOCK_DGRAM
|
|
|
|
// stream = C.SOCK_STREAM
|
|
|
|
// seqpacket = C.SOCK_SEQPACKET
|
|
|
|
// }
|