P_net_async_stdio 3porty | 2011-04-13 | libporty manual |
---|
P_net_async_stdio
#include <libporty/net_async/astdio.h>int P_net_async_stdio (P_net_socket * sock );
Link with -lporty_net_async
P_net_async_stdio returns non-blocking pollable socket to stdio in sock . On some platforms this means setting stdio to nonblocking and return the fd (UNIX), not introducing any overhead. On other platforms, threads are started and data is relayed through local socket (win32) that has higher overhead. All these details are transparent to the caller.
Returns 0 on success or an error code from P_net_err n failure.
P_net_async_stdio 3porty | 2011-04-13 | libporty manual |
---|