C# Класс GuruxDLMSServerExample.GXDLMSBase

All example servers are using same objects.
Наследование: Gurux.DLMS.Secure.GXDLMSSecureServer
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
GXDLMSBase ( bool logicalNameReferencing, InterfaceType type ) : System
Initialize ( int port ) : void

Generic initialize for all servers.

Initialize ( string port ) : void
Update ( UpdateType type, ValueEventArgs e ) : void

Защищенные методы

Метод Описание
Action ( ValueEventArgs args ) : void
Connected ( GXDLMSConnectionEventArgs e ) : void
Disconnected ( GXDLMSConnectionEventArgs e ) : void
FindObject ( ObjectType objectType, int sn, string ln ) : GXDLMSObject

All objects are static in our example.

InvalidConnection ( GXDLMSConnectionEventArgs e ) : void
IsTarget ( int serverAddress, int clientAddress ) : bool

Our example server accept all connections.

Read ( ValueEventArgs args ) : void

Generic read handle for all servers.

ValidateAuthentication ( Authentication authentication, byte password ) : SourceDiagnostic

Our example server accept all authentications.

Write ( ValueEventArgs args ) : void

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

Метод Описание
Init ( ) : void
OnClientConnected ( object sender, Gurux e ) : void

Client has made connection.

OnClientDisconnected ( object sender, Gurux e ) : void

Client has close connection.

OnError ( object sender, Exception ex ) : void
OnReceived ( object sender, Gurux e ) : void

Client has send data.

SendPush ( GXDLMSPushSetup target ) : void

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

Action() защищенный Метод

protected Action ( ValueEventArgs args ) : void
args Gurux.DLMS.ValueEventArgs
Результат void

Connected() защищенный Метод

protected Connected ( GXDLMSConnectionEventArgs e ) : void
e Gurux.DLMS.GXDLMSConnectionEventArgs
Результат void

Disconnected() защищенный Метод

protected Disconnected ( GXDLMSConnectionEventArgs e ) : void
e Gurux.DLMS.GXDLMSConnectionEventArgs
Результат void

FindObject() защищенный Метод

All objects are static in our example.
protected FindObject ( ObjectType objectType, int sn, string ln ) : GXDLMSObject
objectType ObjectType
sn int
ln string
Результат Gurux.DLMS.Objects.GXDLMSObject

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

public GXDLMSBase ( bool logicalNameReferencing, InterfaceType type ) : System
logicalNameReferencing bool
type InterfaceType
Результат System

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

Generic initialize for all servers.
public Initialize ( int port ) : void
port int
Результат void

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

public Initialize ( string port ) : void
port string
Результат void

InvalidConnection() защищенный Метод

protected InvalidConnection ( GXDLMSConnectionEventArgs e ) : void
e Gurux.DLMS.GXDLMSConnectionEventArgs
Результат void

IsTarget() защищенный Метод

Our example server accept all connections.
protected IsTarget ( int serverAddress, int clientAddress ) : bool
serverAddress int
clientAddress int
Результат bool

Read() защищенный Метод

Generic read handle for all servers.
protected Read ( ValueEventArgs args ) : void
args Gurux.DLMS.ValueEventArgs
Результат void

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

public Update ( UpdateType type, ValueEventArgs e ) : void
type UpdateType
e Gurux.DLMS.ValueEventArgs
Результат void

ValidateAuthentication() защищенный Метод

Our example server accept all authentications.
protected ValidateAuthentication ( Authentication authentication, byte password ) : SourceDiagnostic
authentication Authentication
password byte
Результат SourceDiagnostic

Write() защищенный Метод

protected Write ( ValueEventArgs args ) : void
args Gurux.DLMS.ValueEventArgs
Результат void