Interface BusClientHandler

Namespace: STREAMSIX.BusClient
Assembly: cs.temp.dll.dll

Syntax

public interface BusClientHandler

Methods

Connected(RoomBusConnection, Int32)

Declaration

void Connected(RoomBusConnection conn, int peerID)

Parameters

TypeNameDescription
RoomBusConnectionconn
System.Int32peerID

Disconnected(RoomBusConnection)

Declaration

bool Disconnected(RoomBusConnection conn)

Parameters

TypeNameDescription
RoomBusConnectionconn

Returns

TypeDescription
System.Boolean

OnChatMessages(RoomBusConnection, Byte[][])

Declaration

void OnChatMessages(RoomBusConnection conn, byte[][] bytes)

Parameters

TypeNameDescription
RoomBusConnectionconn
System.Byte[][]bytes

OnCustomTargetSet(RoomBusConnection, Byte, String)

Declaration

void OnCustomTargetSet(RoomBusConnection conn, byte peerType, string name)

Parameters

TypeNameDescription
RoomBusConnectionconn
System.BytepeerType
System.Stringname

OnData(RoomBusConnection, Byte[])

Declaration

bool OnData(RoomBusConnection conn, byte[] bytes)

Parameters

TypeNameDescription
RoomBusConnectionconn
System.Byte[]bytes

Returns

TypeDescription
System.Boolean

OnError(Error, Exception, String)

Declaration

void OnError(Error error, Exception ex, string msg)

Parameters

TypeNameDescription
Errorerror
System.Exceptionex
System.Stringmsg

OnLatestScores(RoomBusConnection, Int32, Object[][])

Declaration

bool OnLatestScores(RoomBusConnection conn, int limit, object[][] players)

Parameters

TypeNameDescription
RoomBusConnectionconn
System.Int32limit
System.Object[][]players

Returns

TypeDescription
System.Boolean

OnPlayerCount(RoomBusConnection, MessageBusPlayerCount)

Declaration

void OnPlayerCount(RoomBusConnection conn, MessageBusPlayerCount data)

Parameters

TypeNameDescription
RoomBusConnectionconn
MessageBusPlayerCountdata

OnPlayerReject(RejectReason)

Declaration

void OnPlayerReject(RejectReason reason)

Parameters

TypeNameDescription
RejectReasonreason

OnPlayersReady(RoomBusConnection, Byte[][])

Declaration

void OnPlayersReady(RoomBusConnection conn, byte[][] infoJsons)

Parameters

TypeNameDescription
RoomBusConnectionconn
System.Byte[][]infoJsons

OnService(RoomBusConnection, String, Byte[])

Declaration

bool OnService(RoomBusConnection conn, string requestID, byte[] data)

Parameters

TypeNameDescription
RoomBusConnectionconn
System.StringrequestID
System.Byte[]data

Returns

TypeDescription
System.Boolean

OnSession(String)

Declaration

void OnSession(string session)

Parameters

TypeNameDescription
System.Stringsession

OnTopPlayers(RoomBusConnection, Int32, Object[][])

Declaration

bool OnTopPlayers(RoomBusConnection conn, int limit, object[][] players)

Parameters

TypeNameDescription
RoomBusConnectionconn
System.Int32limit
System.Object[][]players

Returns

TypeDescription
System.Boolean