프로퍼티 | 타입 | 설명 | |
---|---|---|---|
GenerateConfirmedServiceError | byte[] | ||
GenerateDisconnectRequest | void | ||
HandleAarqRequest | void | ||
HandleCommand | byte[] | ||
HandleSnrmRequest | void | ||
NotifyAction | void | ||
NotifyFindObject | |||
NotifyInvalidConnection | void | ||
NotifyRead | void | ||
NotifyWrite | void | ||
ReportError | byte[] |
메소드 | 설명 | |
---|---|---|
GXDLMSServer ( ) : System |
Constructor.
|
|
GXDLMSServer ( bool logicalNameReferencing, InterfaceType type ) : System |
Constructor.
|
|
HandleRequest ( byte buff ) : byte[] |
Handles client request.
|
|
HandleRequest ( byte buff, |
Handles client request.
|
|
Initialize ( ) : void |
Initialize server. This must call after server objects are set. |
|
Reset ( ) : void |
Reset after connection is closed.
|
|
Reset ( bool connected ) : void |
Reset settings when connection is made or close.
|
|
Update ( UpdateType type, |
Get selected value.
|
메소드 | 설명 | |
---|---|---|
Action ( |
Action is occurred.
|
|
Connected ( |
Accepted connection is made for the server. All initialization is done here. Example access level of the COSEM objects is good to update here. |
|
Disconnected ( |
Server has close the connection. All clean up is made here.
|
|
FindObject ( ObjectType objectType, int sn, String ln ) : |
Find object.
|
|
InvalidConnection ( |
Client has try to made invalid connection. Password is incorrect.
|
|
IsTarget ( int serverAddress, int clientAddress ) : bool |
Check is data sent to this server.
|
|
Read ( |
Read selected item.
|
|
ValidateAuthentication ( Authentication authentication, byte password ) : SourceDiagnostic |
Check whether the authentication and password are correct.
|
|
Write ( |
Write selected item.
|
메소드 | 설명 | |
---|---|---|
GenerateConfirmedServiceError ( ConfirmedServiceError service, ServiceError type, byte code ) : byte[] |
Generate confirmed service error.
|
|
GenerateDisconnectRequest ( ) : void |
Generates disconnect request.
|
|
HandleAarqRequest ( |
Parse AARQ request that client send and returns AARE request.
|
|
HandleCommand ( Command cmd, |
Handle received command.
|
|
HandleSnrmRequest ( ) : void |
Parse SNRM Request. If server do not accept client empty byte array is returned.
|
|
NotifyAction ( |
Action is occurred.
|
|
NotifyFindObject ( ObjectType objectType, int sn, String ln ) : |
Find object.
|
|
NotifyInvalidConnection ( |
Client has try to made invalid connection. Password is incorrect.
|
|
NotifyRead ( |
Read selected item.
|
|
NotifyWrite ( |
Write selected item.
|
|
ReportError ( Command cmd, ErrorCode error ) : byte[] |
protected abstract Action ( |
||
args | Handled action requests. | |
리턴 | void |
protected abstract Connected ( |
||
connectionInfo | Connection information. | |
리턴 | void |
protected abstract Disconnected ( |
||
connectionInfo | Connection information. | |
리턴 | void |
protected abstract FindObject ( ObjectType objectType, int sn, String ln ) : |
||
objectType | ObjectType | Object type. In Short Name referencing this is not used. |
sn | int | Short Name. In Logical name referencing this is not used. |
ln | String | Logical Name. In Short Name referencing this is not used. |
리턴 |
public GXDLMSServer ( bool logicalNameReferencing, InterfaceType type ) : System | ||
logicalNameReferencing | bool | |
type | InterfaceType | |
리턴 | System |
public HandleRequest ( byte buff ) : byte[] | ||
buff | byte | /// Received data from the client. |
리턴 | byte[] |
public HandleRequest ( byte buff, |
||
buff | byte | /// Received data from the client. |
connectionInfo | ||
리턴 | byte[] |
protected abstract InvalidConnection ( |
||
connectionInfo | Connection information. | |
리턴 | void |
protected abstract IsTarget ( int serverAddress, int clientAddress ) : bool | ||
serverAddress | int | Server address. |
clientAddress | int | Client address. |
리턴 | bool |
protected abstract Read ( |
||
args | Handled read requests. | |
리턴 | void |
public abstract Update ( UpdateType type, |
||
type | UpdateType | |
e | Handle get request. | |
리턴 | void |
protected abstract ValidateAuthentication ( Authentication authentication, byte password ) : SourceDiagnostic | ||
authentication | Authentication | Authentication level. |
password | byte | Password |
리턴 | SourceDiagnostic |
protected abstract Write ( |
||
args | Handled write requests. | |
리턴 | void |