I figured it out. This is 'nc' from the base, imported from OpenBSD 5.6.

nc has two flaws in its code: it listens with backlog=5 (not 1), and it doesn't close the listening socket after accept, only after client is done communicating.
Fixing these two problems makes my app work.

I first confused it with net/netcat from ports, which is totally different codebase, and isn't duplex. Looking into their code confused me into making original wrong assumptions.

Thanks!
Yuri
_______________________________________________
freebsd-net@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"

Reply via email to