Table of Contents

Class ConnectionExtensions

Namespace
Xabbo
Assembly
Xabbo.Common.dll

Provides extensions methods for IConnection.

public static class ConnectionExtensions
Inheritance
ConnectionExtensions

Methods

Send(IConnection, Header)

Sends an empty packet with the specified message header.

public static void Send(this IConnection connection, Header header)

Parameters

connection IConnection
header Header

Send(IConnection, IMessage)

Sends a message to the client or server, specified by the direction of the message.

public static void Send(this IConnection connection, IMessage message)

Parameters

connection IConnection
message IMessage

Send(IConnection, Identifier)

Sends an empty packet with the specified message identifier.

public static void Send(this IConnection connection, Identifier identifier)

Parameters

connection IConnection
identifier Identifier