X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=share%2Flua%2FREADME.txt;h=e8e279b2f913820c13c47ae2645478a42319620c;hb=a9872d2d707547ea42de30c1fc3df775e355b280;hp=4defc9b54f970b55292b1314b905bdb2522b9619;hpb=8bb55f6a4f53e2d02bfa236a0e13e7f99ddebdf4;p=vlc diff --git a/share/lua/README.txt b/share/lua/README.txt index 4defc9b54f..e8e279b2f9 100644 --- a/share/lua/README.txt +++ b/share/lua/README.txt @@ -112,8 +112,9 @@ net.url_parse( url, [option delimiter] ): Parse URL. Returns a table with fields "protocol", "username", "password", "host", "port", path" and "option". net.listen_tcp( host, port ): Listen to TCP connections. This returns an - object with an accept method. This method takes an optional timeout - argument (in milliseconds). For example: + object with an accept and an fds method. The accept takes an optional timeout + argument (in milliseconds). The fds method returns a list of fds you can call + select on before using the accept method. For example: local l = vlc.net.listen_tcp( "localhost", 1234 ) while true do local fd = l:accept( 500 )