C# Class Eryan.IPC.Communicator

Handles the communications between Eryan and the Eve client
显示文件 Open project: emist/Eryan Class Usage Examples

Public Methods

Method Description
Communicator ( string name ) : System

Constructs a communicator out of the given pipe-name

connect ( ) : bool

Checks if the pipe is ready, might block

sendCall ( string call, string responsetype ) : Response

Make the call

sendCall ( string call, string param, string responsetype ) : Response

Make a call with one parameter

Method Details

Communicator() public method

Constructs a communicator out of the given pipe-name
public Communicator ( string name ) : System
name string The pipe to build
return System

connect() public method

Checks if the pipe is ready, might block
public connect ( ) : bool
return bool

sendCall() public method

Make the call
public sendCall ( string call, string responsetype ) : Response
call string Constant function represenation as given in calls struct.
responsetype string The expected response as defined in Responses.RESPONSETYPE
return Eryan.Responses.Response

sendCall() public method

Make a call with one parameter
public sendCall ( string call, string param, string responsetype ) : Response
call string The function name as represented in calls struct
param string The parameter to send
responsetype string The response type expected as defined in Responses.RESPONSETYPE
return Eryan.Responses.Response