Skip to content

SocketProtocolMixin

Full path: schola.core.protocols.socket.SocketProtocolMixin

schola.core.protocols.socket.SocketProtocolMixin

SocketProtocolMixin

SocketProtocolMixin(url, port=None)

Bases: BaseProtocolMixin

Methods

ItemDescription
init
on_closeClose the Unreal Connection.
on_startBind the tcp_socket

Attributes

ItemDescription
addressReturns the address of the connection
has_socketReturns whether the connection is active or not
mixin_propertiesGet mixin-specific properties.

Parameters

url (str)

port (int)

init

__init__(url, port=None)

Parameters

url (str)

port (int)


address

address: str

Returns the address of the connection


has_socket

has_socket: bool

Returns whether the connection is active or not


mixin_properties

mixin_properties: Dict[str, Any]

Get mixin-specific properties.


on_close

on_close()

Close the Unreal Connection. Method must be safe to call multiple times.

Returns

None


on_start

on_start()

Bind the tcp_socket

Returns

None