mirror of https://github.com/quasar/Quasar.git
Documentation fix
This commit is contained in:
parent
9051a9ff2b
commit
f195e9fb51
|
@ -73,11 +73,6 @@ namespace xServer.Core
|
|||
|
||||
public delegate void ClientWriteEventHandler(Client s, IPacket packet, long length, byte[] rawData);
|
||||
|
||||
public bool Equals(Client c)
|
||||
{
|
||||
return this.EndPoint.Port == c.EndPoint.Port; // this port is always unique for each client
|
||||
}
|
||||
|
||||
private void OnClientWrite(IPacket packet, long length, byte[] rawData)
|
||||
{
|
||||
if (ClientWrite != null)
|
||||
|
@ -86,6 +81,16 @@ namespace xServer.Core
|
|||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Checks whether the clients are equal.
|
||||
/// </summary>
|
||||
/// <param name="c">Client to compare with.</param>
|
||||
/// <returns></returns>
|
||||
public bool Equals(Client c)
|
||||
{
|
||||
return this.EndPoint.Port == c.EndPoint.Port; // this port is always unique for each client
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The type of the packet received.
|
||||
/// </summary>
|
||||
|
|
|
@ -82,6 +82,7 @@ namespace xServer.Core
|
|||
/// Fires an event that informs subscribers that the a packet has been
|
||||
/// received from the client.
|
||||
/// </summary>
|
||||
/// <param name="c">The client that has sent the packet.</param>
|
||||
/// <param name="packet">The packet that has been received by the server from the client.</param>
|
||||
private void OnClientRead(Client c, IPacket packet)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue