Browse Source

lua: appropriate tcp.c

This is the only use left. Most outbound TCP connections are made with
ad-hoc code in underlying library outside of VLC or with the newer
`vlc_tls_SocketOpenTCP()`. Notably FTP and HTTP modules use the
`vlc_tls_t` abstraction to support both unencrypted TCP and TLS over TCP.
pull/188/head
Rémi Denis-Courmont 6 months ago
committed by Steve Lhomme
parent
commit
3be851890c
  1. 3
      include/vlc_network.h
  2. 1
      modules/lua/Makefile.am
  3. 2
      modules/lua/libs.h
  4. 1
      modules/lua/libs/tcp.c
  5. 1
      src/Makefile.am
  6. 1
      src/libvlccore.sym

3
include/vlc_network.h

@ -184,9 +184,6 @@ VLC_API int * net_Listen(vlc_object_t *p_this, const char *psz_host, unsigned i_
#define net_ListenTCP(a, b, c) net_Listen(VLC_OBJECT(a), b, c, \
SOCK_STREAM, IPPROTO_TCP)
VLC_API int net_ConnectTCP (vlc_object_t *obj, const char *host, int port);
#define net_ConnectTCP(a, b, c) net_ConnectTCP(VLC_OBJECT(a), b, c)
/**
* Accepts an new connection on a set of listening sockets.
*

1
modules/lua/Makefile.am

@ -24,6 +24,7 @@ liblua_plugin_la_SOURCES = \
lua/libs/sd.c \
lua/libs/stream.c \
lua/libs/strings.c \
lua/libs/tcp.c \
lua/libs/variables.c lua/libs/variables.h \
lua/libs/video.c \
lua/libs/vlm.c \

2
modules/lua/libs.h

@ -58,4 +58,6 @@ void luaopen_win( lua_State *L );
int vlclua_url_parse( lua_State *L );
int vlclua_input_item_get( lua_State *L, input_item_t *p_item );
int net_ConnectTCP(vlc_object_t *, const char *, int);
#endif

1
src/network/tcp.c → modules/lua/libs/tcp.c

@ -35,6 +35,7 @@
#include <vlc_network.h>
#include <vlc_interrupt.h>
#include "../libs.h"
/*****************************************************************************
* SocksNegotiate:

1
src/Makefile.am

@ -367,7 +367,6 @@ libvlccore_la_SOURCES = \
network/http_auth.c \
network/httpd.c \
network/io.c \
network/tcp.c \
network/udp.c \
network/rootbind.c \
network/stream.c \

1
src/libvlccore.sym

@ -310,7 +310,6 @@ vlc_tick_wait
net_Accept
net_Connect
net_ConnectDgram
net_ConnectTCP
net_Listen
net_ListenClose
net_OpenDgram

Loading…
Cancel
Save