mirror of
https://github.com/janet-lang/janet
synced 2025-01-24 14:16:52 +00:00
Explicitly disallow handler for datagram server.
This commit is contained in:
parent
ce2079104a
commit
b1a4f05b5a
@ -630,8 +630,7 @@ static Janet cfun_net_server(int32_t argc, Janet *argv) {
|
||||
return janet_wrap_abstract(stream);
|
||||
} else {
|
||||
/* Server with handler */
|
||||
/* TODO - state machine */
|
||||
janet_panic("nyi");
|
||||
janet_panic("handler must be nil for datagram server");
|
||||
}
|
||||
} else {
|
||||
/* Stream server (TCP) */
|
||||
|
Loading…
Reference in New Issue
Block a user