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:
parent
ce2079104a
commit
b1a4f05b5a
@ -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) */
|
||||||
|
Loading…
Reference in New Issue
Block a user