5.6.1.5. vlcp.service.connection.tcpserver

Note

This document is generated from the source file.

View Source on GitHub

Created on 2015/10/19

author:hubo
class vlcp.service.connection.tcpserver.TcpServerBase(server, protocolclass)

Generic tcp server on specified URLs, vHosts are supported.

__init__(server, protocolclass)

Constructor

getconnections(vhost=None)

Return accepted connections, optionally filtered by vhost

getservers(vhost=None)

Return current servers

Parameters:vhost – return only servers of vhost if specified. ‘’ to return only default servers. None for all servers.
startlisten(vhost=None)

Start listen on current servers

Parameters:vhost – return only servers of vhost if specified. ‘’ to return only default servers. None for all servers.
stoplisten(vhost=None)

Stop listen on current servers

Parameters:vhost – return only servers of vhost if specified. ‘’ to return only default servers. None for all servers.
unload(container, force=False)

Unload module

updateconfig()

Reload configurations, remove non-exist servers, add new servers, and leave others unchanged