C# Class Opc.Ua.NetworkTester.Server

A class which acts as proxy for a socket connection.
Mostrar archivo Open project: OPCFoundation/UA-.NET Class Usage Examples

Public Methods

Method Description
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.

Private Methods

Method Description
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.

Method Details

Server() public method

Initializes the server with the listener and server url.
public Server ( string listenerUrl, string serverUrl ) : System
listenerUrl string
serverUrl string
return System

Start() public method

Starts listening at the specified port.
public Start ( ) : void
return void

Stop() public method

Stops listening.
public Stop ( ) : void
return void