C# Класс Opc.Ua.NetworkTester.Server

A class which acts as proxy for a socket connection.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Server ( string listenerUrl, string serverUrl ) : System

Initializes the server with the listener and server url.

Start ( ) : void

Starts listening at the specified port.

Stop ( ) : void

Stops listening.

Приватные методы

Метод Описание
Close ( Connection connection ) : void

Closes the connection.

Connect ( Socket incomingSocket, Uri uri ) : void

Connects to the server.

EndConnect ( IAsyncResult result ) : void

Called to complete an asynchronous connect operation.

OnAccept ( IAsyncResult result ) : void

Handles a new connection.

OnReadFromClient ( IAsyncResult result ) : void

Called to complete an asynchronous read operation.

OnReadFromServer ( IAsyncResult result ) : void

Called to complete an asynchronous read operation.

Описание методов

Server() публичный Метод

Initializes the server with the listener and server url.
public Server ( string listenerUrl, string serverUrl ) : System
listenerUrl string
serverUrl string
Результат System

Start() публичный Метод

Starts listening at the specified port.
public Start ( ) : void
Результат void

Stop() публичный Метод

Stops listening.
public Stop ( ) : void
Результат void