2021-02-11 16:51:12 +00:00
|
|
|
module unix
|
|
|
|
|
2022-02-18 09:23:45 +00: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 07:53:19 +00:00
|
|
|
|
2021-02-11 16:51:12 +00:00
|
|
|
// Select represents a select operation
|
|
|
|
enum Select {
|
|
|
|
read
|
|
|
|
write
|
|
|
|
except
|
|
|
|
}
|
|
|
|
|
|
|
|
// SocketType are the available sockets
|
2021-03-05 14:41:11 +00:00
|
|
|
// enum SocketType {
|
|
|
|
// dgram = C.SOCK_DGRAM
|
|
|
|
// stream = C.SOCK_STREAM
|
|
|
|
// seqpacket = C.SOCK_SEQPACKET
|
|
|
|
// }
|