Method | Description | |
---|---|---|
AsyncAnswerOnRemoteCall ( ulong msgId, byte[]>.Tuple |
In case if asyncRemoteCallHandler != null
|
|
Dispose ( ) : void |
|
|
RemoteRequest ( byte args, byte[]>.Action |
|
|
RemoteRequestWithoutResponse ( byte args ) : bool |
Just sends payload to remote partner without awaiting response from it.
|
|
SharmIpc ( string uniqueHandlerName, byte[]>.Action |
SharmIpc constructor
|
|
SharmIpc ( string uniqueHandlerName, byte[]>.Func |
SharmIpc constructor
|
Method | Description | |
---|---|---|
InternalDataArrived ( eMsgType msgType, ulong msgId, byte bt ) : void |
Any incoming data from remote partner is accumulated here
|
|
LogException ( string description, System ex ) : void |
Internal exception logger
|
public AsyncAnswerOnRemoteCall ( ulong msgId, byte[]>.Tuple |
||
msgId | ulong | |
res | byte[]>.Tuple | |
return | void |
public RemoteRequest ( byte args, byte[]>.Action |
||
args | byte | payload which must be send to remote partner |
callBack | byte[]>.Action | if specified then response for the request will be returned into callBack (async). Default is sync. |
timeoutMs | int | Default 30 sec |
return | byte[]>.Tuple |
public RemoteRequestWithoutResponse ( byte args ) : bool | ||
args | byte | payload |
return | bool |
public SharmIpc ( string uniqueHandlerName, byte[]>.Action |
||
uniqueHandlerName | string | Must be unique in OS scope (can be PID [ID of the process] + other identifications) |
remoteCallHandler | byte[]>.Action | Callback routine for the remote partner requests. AsyncAnswerOnRemoteCall must be used for answer |
bufferCapacity | long | bigger buffer sends larger datablocks faster. Default value is 50000 |
maxQueueSizeInBytes | int | If remote partner is temporary not available, messages are accumulated in the sending buffer. This value sets the upper threshold of the buffer in bytes. |
ExternalExceptionHandler | System.Exception>.Action | External exception handler can be supplied, will be returned Description from SharmIPC, like class.method name and handeled exception |
return | System |
public SharmIpc ( string uniqueHandlerName, byte[]>.Func |
||
uniqueHandlerName | string | Must be unique in OS scope (can be PID [ID of the process] + other identifications) |
remoteCallHandler | byte[]>.Func | Response routine for the remote partner requests |
bufferCapacity | long | bigger buffer sends larger datablocks faster. Default value is 50000 |
maxQueueSizeInBytes | int | If remote partner is temporary not available, messages are accumulated in the sending buffer. This value sets the upper threshold of the buffer in bytes. |
ExternalExceptionHandler | System.Exception>.Action | External exception handler can be supplied, will be returned Description from SharmIPC, like class.method name and handeled exception |
return | System |