SimpleServer

Overview

SimpleServer represents the most basic server. It binds without threading, thus is only capable of handling one client connection at a time, all other connections will be refused.

Location

  • Reference:
    • RemObjects.InternetPack.dll  .NET, .NET Core 5.0, .NET Standard 2.0
    • RemObjects.InternetPack.fx  Island
    • libRemObjects.InternetPack.fx  Toffee
  • Namespace: RemObjects.InternetPack

Properties


Binding  virtual

Gets the binding element that specify the protocol, port, address etc. used for communication between client and server.

 

property Binding: ServerBinding read;

 

ServerBinding Binding { get; }

 

var Binding: ServerBinding { get{} }

 

ReadOnly Property Binding() As ServerBinding

Instance Methods


constructor

 

constructor

 

SimpleServer()

 

init()

 

Sub New()

Close  virtual

This Method causes the server to stop listening for a connection.

 

method Close

 

void Close()

 

func Close()

 

Sub Close()

Open  virtual

This Method causes the server to start listening for a connection.

 

method Open

 

void Open()

 

func Open()

 

Sub Open()

WaitForConnection  virtual

Waits for a client to connect to this SimpleServer object.

 

method WaitForConnection: Connection

 

Connection WaitForConnection()

 

func WaitForConnection() -> Connection

 

Function WaitForConnection() As Connection