Class BasePacketReader
Class that represents the base implementation for all packet readers in all protocols.
Inheritance
System.Object
BasePacketReader
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Fibula.Communications
Assembly: Fibula.Communications.dll
Syntax
public abstract class BasePacketReader : IPacketReader
Constructors
| Improve this Doc View SourceBasePacketReader(ILogger)
Initializes a new instance of the BasePacketReader class.
Declaration
protected BasePacketReader(ILogger logger)
Parameters
Type | Name | Description |
---|---|---|
Serilog.ILogger | logger | A reference to the logger in use. |
Properties
| Improve this Doc View SourceLogger
Gets the reference to the logger in use.
Declaration
protected ILogger Logger { get; }
Property Value
Type | Description |
---|---|
Serilog.ILogger |
Methods
| Improve this Doc View SourceReadFromMessage(INetworkMessage)
Reads a packet from the given INetworkMessage.
Declaration
public abstract IIncomingPacket ReadFromMessage(INetworkMessage message)
Parameters
Type | Name | Description |
---|---|---|
INetworkMessage | message | The message to read from. |
Returns
Type | Description |
---|---|
IIncomingPacket | The packet read from the message. |