Interface INetworkServer
Underlying interface for the NetworkServer<TNetworkClient, TServerConnection> abstract class. You should not implement this interface directly; it is only used as an opaque type when it isn't possible to define the type argument of NetworkServer<TNetworkClient, TServerConnection> at compile-time (for example, storing a dictionary of ports to server instances.)
Inherited Members
Namespace: SociallyDistant.Core.OS.Network
Assembly: SociallyDistant.Framework.dll
Syntax
public interface INetworkServer : IDisposable
Properties
Name
Gets a value indicating the server's name.
Declaration
string Name { get; }
Property Value
| Type | Description |
|---|---|
| string |
Port
Gets a value indicating the server's listening port.
Declaration
ushort Port { get; }
Property Value
| Type | Description |
|---|---|
| ushort |
ServerDevice
Gets an instance of IComputer representing the server.
Declaration
IComputer ServerDevice { get; }
Property Value
| Type | Description |
|---|---|
| IComputer |
Methods
GetHackable(IWorldManager)
Gets an implementation of IHackable based on this server.
Declaration
IHackable GetHackable(IWorldManager world)
Parameters
| Type | Name | Description |
|---|---|---|
| IWorldManager | world | The world where hackable data is stored. |
Returns
| Type | Description |
|---|---|
| IHackable | The created hackable. |