Interface IConnection
Interface for all types of connections.
Namespace: Fibula.Communications.Contracts.Abstractions
Assembly: Fibula.Communications.Contracts.dll
Syntax
public interface IConnection
Properties
| Improve this Doc View SourceIsOrphaned
Gets a value indicating whether the connection is an orphan.
Declaration
bool IsOrphaned { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
| Improve this Doc View SourceClose()
Closes this connection.
Declaration
void Close()
Read()
Reads the next message in this connection.
Declaration
void Read()
Send(IEnumerable<IOutboundPacket>)
Sends the packets supplied through this connection.
Declaration
void Send(IEnumerable<IOutboundPacket> packetsToSend)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<IOutboundPacket> | packetsToSend | The packets to send. |
Events
| Improve this Doc View SourceClosed
Event fired when this connection has been closed.
Declaration
event ConnectionClosedDelegate Closed
Event Type
Type | Description |
---|---|
ConnectionClosedDelegate |
PacketProcessed
Event fired right after this connection has proccessed an IIncomingPacket by any subscriber of the PacketReady event.
Declaration
event ConnectionPacketProccessedDelegate PacketProcessed
Event Type
Type | Description |
---|---|
ConnectionPacketProccessedDelegate |
PacketReady
Event fired when a IIncomingPacket picked up by this connection is ready to be processed.
Declaration
event ConnectionPacketReadyDelegate PacketReady
Event Type
Type | Description |
---|---|
ConnectionPacketReadyDelegate |