1
0
mirror of https://github.com/janet-lang/janet synced 2025-01-26 07:06:51 +00:00

Explicitly disallow handler for datagram server.

This commit is contained in:
Calvin Rose 2020-06-13 08:29:48 -05:00
parent ce2079104a
commit b1a4f05b5a

View File

@ -630,8 +630,7 @@ static Janet cfun_net_server(int32_t argc, Janet *argv) {
return janet_wrap_abstract(stream); return janet_wrap_abstract(stream);
} else { } else {
/* Server with handler */ /* Server with handler */
/* TODO - state machine */ janet_panic("handler must be nil for datagram server");
janet_panic("nyi");
} }
} else { } else {
/* Stream server (TCP) */ /* Stream server (TCP) */