C# Class GuruxDLMSServerExample.GXDLMSBase

All example servers are using same objects.
Inheritance: Gurux.DLMS.Secure.GXDLMSSecureServer
Afficher le fichier Open project: Gurux/Gurux.DLMS.Net Class Usage Examples

Méthodes publiques

Méthode Description
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

Méthodes protégées

Méthode Description
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

Private Methods

Méthode Description
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

Method Details

Action() protected méthode

protected Action ( ValueEventArgs args ) : void
args Gurux.DLMS.ValueEventArgs
Résultat void

Connected() protected méthode

protected Connected ( GXDLMSConnectionEventArgs e ) : void
e Gurux.DLMS.GXDLMSConnectionEventArgs
Résultat void

Disconnected() protected méthode

protected Disconnected ( GXDLMSConnectionEventArgs e ) : void
e Gurux.DLMS.GXDLMSConnectionEventArgs
Résultat void

FindObject() protected méthode

All objects are static in our example.
protected FindObject ( ObjectType objectType, int sn, string ln ) : GXDLMSObject
objectType ObjectType
sn int
ln string
Résultat Gurux.DLMS.Objects.GXDLMSObject

GXDLMSBase() public méthode

public GXDLMSBase ( bool logicalNameReferencing, InterfaceType type ) : System
logicalNameReferencing bool
type InterfaceType
Résultat System

Initialize() public méthode

Generic initialize for all servers.
public Initialize ( int port ) : void
port int
Résultat void

Initialize() public méthode

public Initialize ( string port ) : void
port string
Résultat void

InvalidConnection() protected méthode

protected InvalidConnection ( GXDLMSConnectionEventArgs e ) : void
e Gurux.DLMS.GXDLMSConnectionEventArgs
Résultat void

IsTarget() protected méthode

Our example server accept all connections.
protected IsTarget ( int serverAddress, int clientAddress ) : bool
serverAddress int
clientAddress int
Résultat bool

Read() protected méthode

Generic read handle for all servers.
protected Read ( ValueEventArgs args ) : void
args Gurux.DLMS.ValueEventArgs
Résultat void

Update() public méthode

public Update ( UpdateType type, ValueEventArgs e ) : void
type UpdateType
e Gurux.DLMS.ValueEventArgs
Résultat void

ValidateAuthentication() protected méthode

Our example server accept all authentications.
protected ValidateAuthentication ( Authentication authentication, byte password ) : SourceDiagnostic
authentication Authentication
password byte
Résultat SourceDiagnostic

Write() protected méthode

protected Write ( ValueEventArgs args ) : void
args Gurux.DLMS.ValueEventArgs
Résultat void