5.3.6. vlcp.protocol.raw

Note

This document is generated from the source file.

View Source on GitHub

Created on 2015/12/25

author:hubo
class vlcp.protocol.raw.Raw

Raw protocol, provide two streams for input and output

__init__()

Constructor

client_connect(container, url, *args, **kwargs)

Create a connection with raw protocol

Parameters:
  • container – current routine container
  • url – url to connect to (see Client)
  • **kwargs (*args,) – other parameters to create a Client (except url, protocol and scheduler)
Returns:

(connection, inputstream, outputstream) where client is the created connection, inputstream is the stream to read from the socket, outputstream is the stream to write to socket

closed(connection)

routine for connection closed

error(connection)

routine for connection error

init(connection)

routine for connection initialization

notconnected(connection)

routine for connect failed and not retrying

parse(connection, data, laststart)

Parse input data into events

Parameters:
  • connection – connection object
  • data – view for input data
  • laststart – last parsed position
Returns:

(events, keep) where events are parsed events to send, keep is the unused data length to be keeped for next parse.

reconnect_init(connection)

routine for reconnect

redirect_outputstream(connection, stream)

Close current outputstream and output from the new stream

class vlcp.protocol.raw.RawConnectionStateEvent(*args, **kwargs)