On Tue, 12 Sept 2023 at 01:14, <[email protected]> wrote:
>
> int main() { … mainsock->set_accept_callback(accept_callback); ... }
>
> Attempt to call the NULL-value
> Unknown program: 0(/main()->accept_callback)
> main.pike:53: /main()->main()
>

Looks like it's not a syntax problem, but that there's no
set_accept_callback method. I don't know if that was ever a thing, but
it isn't now. Are you able to initialize the Port with the callback
already set?

Stdio.Port mainsock = Stdio.Port(12345, accept_callback);

ChrisA

Reply via email to