Skip to content

Mirror::SimpleWeb::SimpleWebServer

Public Events

Name
Action< int > onConnect()
Action< int > onDisconnect()
Action< int, ArraySegment< byte > > onData()
Action< int, Exception > onError()

Public Functions

Name
SimpleWebServer(int maxMessagesPerTick, TcpConfig tcpConfig, int maxMessageSize, int handshakeMaxSize, SslConfig sslConfig)
void Start(ushort port)
void Stop()
void SendAll(List< int > connectionIds, ArraySegment< byte > source)
void SendOne(int connectionId, ArraySegment< byte > source)
bool KickClient(int connectionId)
string GetClientAddress(int connectionId)
void ProcessMessageQueue(MonoBehaviour behaviour)

Public Properties

Name
bool Active

Public Events Documentation

event onConnect

Action< int > onConnect()

event onDisconnect

Action< int > onDisconnect()

event onData

Action< int, ArraySegment< byte > > onData()

event onError

Action< int, Exception > onError()

Public Functions Documentation

function SimpleWebServer

inline SimpleWebServer(
    int maxMessagesPerTick,
    TcpConfig tcpConfig,
    int maxMessageSize,
    int handshakeMaxSize,
    SslConfig sslConfig
)

function Start

inline void Start(
    ushort port
)

function Stop

inline void Stop()

function SendAll

inline void SendAll(
    List< int > connectionIds,
    ArraySegment< byte > source
)

function SendOne

inline void SendOne(
    int connectionId,
    ArraySegment< byte > source
)

function KickClient

inline bool KickClient(
    int connectionId
)

function GetClientAddress

inline string GetClientAddress(
    int connectionId
)

function ProcessMessageQueue

inline void ProcessMessageQueue(
    MonoBehaviour behaviour
)

Public Property Documentation

property Active

bool Active;

Updated on 27 January 2021 at 18:44:15 UTC