Table of Contents

Class Brisk

Namespace
Coherence.Brisk
Assembly
Coherence.Brisk.dll
public class Brisk
Inheritance
Brisk

Constructors

Brisk(Logger, BriskServices)

public Brisk(Logger logger, BriskServices services = null)

Parameters

logger Logger
services BriskServices

Properties

CanSend

public bool CanSend { get; }

Property Value

bool

ClientID

public ClientID ClientID { get; }

Property Value

ClientID

InitialScene

public uint InitialScene { get; set; }

Property Value

uint

Ping

public Ping Ping { get; }

Property Value

Ping

SendFrequency

public byte SendFrequency { get; }

Property Value

byte

Settings

public ConnectionSettings Settings { get; }

Property Value

ConnectionSettings

State

public ConnectionState State { get; }

Property Value

ConnectionState

UseDebugStreams

public bool UseDebugStreams { get; }

Property Value

bool

Methods

Connect(EndpointData, ConnectionType, ConnectionSettings)

public void Connect(EndpointData endpoint, ConnectionType connectionType, ConnectionSettings connectionSettings = null)

Parameters

endpoint EndpointData
connectionType ConnectionType
connectionSettings ConnectionSettings

CreatePacket(bool)

public OutPacket CreatePacket(bool reliable)

Parameters

reliable bool

Returns

OutPacket

Disconnect(ConnectionCloseReason, bool)

public void Disconnect(ConnectionCloseReason connectionCloseReason, bool serverInitiated)

Parameters

connectionCloseReason ConnectionCloseReason
serverInitiated bool

Receive(List<InPacket>)

public void Receive(List<InPacket> buffer)

Parameters

buffer List<InPacket>

Send(OutPacket)

public void Send(OutPacket packet)

Parameters

packet OutPacket

Update()

public void Update()

Events

OnConnect

public event Action<ConnectResponse> OnConnect

Event Type

Action<ConnectResponse>

OnDeliveryInfo

public event Action<DeliveryInfo> OnDeliveryInfo

Event Type

Action<DeliveryInfo>

OnDisconnect

public event Action<ConnectionCloseReason> OnDisconnect

Event Type

Action<ConnectionCloseReason>

OnError

public event Action<ConnectionException> OnError

Event Type

Action<ConnectionException>