Struct NamingWaiter<TConnection>
- Namespace
- FishMMO.Server.Core.World.SceneServer
- Assembly
- FishMMO.Server.dll
A connection waiting on a name lookup, and the form it asked in.
public readonly struct NamingWaiter<TConnection> : IEquatable<NamingWaiter<TConnection>>
Type Parameters
TConnectionThe connection type.
- Implements
-
IEquatable<NamingWaiter<TConnection>>
- Inherited Members
Remarks
A lookup in flight is shared by everyone who asks for the same ID, whichever request carried the ask. A client that sent the batched request understands the batched answer; one that sent the single-ID request (an older client) does not, and would never hear back if it were answered in the batched form. So the waiter carries how it asked, and is answered the same way.
Constructors
NamingWaiter(TConnection, bool)
Creates a waiter.
public NamingWaiter(TConnection connection, bool batched)
Parameters
connectionTConnectionbatchedbool
Fields
Batched
True if it asked with the batched request and is answered with the batched reply.
public readonly bool Batched
Field Value
Connection
Who is waiting.
public readonly TConnection Connection
Field Value
- TConnection
Methods
Equals(NamingWaiter<TConnection>)
public bool Equals(NamingWaiter<TConnection> other)
Parameters
otherNamingWaiter<TConnection>
Returns
Equals(object)
public override bool Equals(object obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()