Commit 5ed80c35 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont
Browse files

lua: use net_ConnectTCP() where applicable

parent f1e61055
......@@ -252,7 +252,7 @@ static int vlclua_net_connect_tcp( lua_State *L )
vlc_object_t *p_this = vlclua_get_this( L );
const char *psz_host = luaL_checkstring( L, 1 );
int i_port = luaL_checkint( L, 2 );
int i_fd = net_Connect( p_this, psz_host, i_port, SOCK_STREAM, IPPROTO_TCP );
int i_fd = net_ConnectTCP( p_this, psz_host, i_port );
lua_pushinteger( L, vlclua_fd_map_safe( L, i_fd ) );
return 1;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment