return 1;
}
+#ifndef _WIN32
/*****************************************************************************
*
*****************************************************************************/
lua_pushnil( L );
return 1;
}
+#endif
/*****************************************************************************
*
{ "close", vlclua_net_close },
{ "send", vlclua_net_send },
{ "recv", vlclua_net_recv },
+#ifndef _WIN32
{ "poll", vlclua_net_poll },
{ "read", vlclua_fd_read },
{ "write", vlclua_fd_write },
+#endif
{ "stat", vlclua_stat }, /* Not really "net" */
{ "opendir", vlclua_opendir }, /* Not really "net" */
{ NULL, NULL }
net.recv( fd, [max length] ): Receive data from fd.
net.poll( { fd = events } ): Implement poll function.
Returns the numbers of file descriptors with a non 0 revent. The function
- modifies the input table to { fd = revents }. See "man poll".
+ modifies the input table to { fd = revents }. See "man poll". This function
+ is not available on Windows.
net.POLLIN/POLLPRI/POLLOUT/POLLRDHUP/POLLERR/POLLHUP/POLLNVAL: poll event flags
-net.read( fd, [max length] ): Read data from fd.
-net.write( fd, string, [length] ): Write data to fd.
+net.read( fd, [max length] ): Read data from fd. This function is not
+ available on Windows.
+net.write( fd, string, [length] ): Write data to fd. This function is not
+ available on Windows.
net.stat( path ): Stat a file. Returns a table with the following fields:
.type
.mode