/* * Automatically generated by jrpcgen 1.0.7 on 4/18/2014 * jrpcgen is part of the "Remote Tea.Net" ONC/RPC package for C# * See http://remotetea.sourceforge.net for details */ using org.acplt.oncrpc; using System.Net; namespace SPIAgent { /** * The class spi_agent_oncrpcClient implements the client stub proxy * for the SPI_AGENT_ONCRPC remote program. It provides method stubs * which, when called, in turn call the appropriate remote method (procedure). */ /// public class spi_agent_oncrpcClient : OncRpcClientStub { /** * Constructs a spi_agent_oncrpcClient client stub proxy object * from which the SPI_AGENT_ONCRPC remote program can be accessed. * @param host Internet address of host where to contact the remote program. * @param protocol {@link org.acplt.oncrpc.OncRpcProtocols Protocol} to be * used for ONC/RPC calls. * @throws OncRpcException if an ONC/RPC error occurs. * @throws IOException if an I/O error occurs. */ public spi_agent_oncrpcClient(IPAddress host, int protocol) : base(host, spi_agent_oncrpc.SPI_AGENT_ONCRPC, 1, 0, protocol) { } /** * Constructs a spi_agent_oncrpcClient client stub proxy object * from which the SPI_AGENT_ONCRPC remote program can be accessed. * @param host Internet address of host where to contact the remote program. * @param port Port number at host where the remote program can be reached. * @param protocol {@link org.acplt.oncrpc.OncRpcProtocols Protocol} to be * used for ONC/RPC calls. * @throws OncRpcException if an ONC/RPC error occurs. * @throws IOException if an I/O error occurs. */ public spi_agent_oncrpcClient(IPAddress host, int port, int protocol) : base(host, spi_agent_oncrpc.SPI_AGENT_ONCRPC, 1, port, protocol) { } /** * Constructs a spi_agent_oncrpcClient client stub proxy object * from which the SPI_AGENT_ONCRPC remote program can be accessed. * @param client ONC/RPC client connection object implementing a particular * protocol. * @throws OncRpcException if an ONC/RPC error occurs. * @throws IOException if an I/O error occurs. */ public spi_agent_oncrpcClient(OncRpcClient client) : base(client) { } /** * Constructs a spi_agent_oncrpcClient client stub proxy object * from which the SPI_AGENT_ONCRPC remote program can be accessed. * @param host Internet address of host where to contact the remote program. * @param program Remote program number. * @param version Remote program version number. * @param protocol {@link org.acplt.oncrpc.OncRpcProtocols Protocol} to be * used for ONC/RPC calls. * @throws OncRpcException if an ONC/RPC error occurs. * @throws IOException if an I/O error occurs. */ public spi_agent_oncrpcClient(IPAddress host, int program, int version, int protocol) : base(host, program, version, 0, protocol) { } /** * Constructs a spi_agent_oncrpcClient client stub proxy object * from which the SPI_AGENT_ONCRPC remote program can be accessed. * @param host Internet address of host where to contact the remote program. * @param program Remote program number. * @param version Remote program version number. * @param port Port number at host where the remote program can be reached. * @param protocol {@link org.acplt.oncrpc.OncRpcProtocols Protocol} to be * used for ONC/RPC calls. * @throws OncRpcException if an ONC/RPC error occurs. * @throws IOException if an I/O error occurs. */ public spi_agent_oncrpcClient(IPAddress host, int program, int version, int port, int protocol) : base(host, program, version, port, protocol) { } /** * Call remote procedure spi_transaction_1. * @param cmd parameter (of type SPIAGENT_COMMAND_MSG_t) to the remote procedure call. * @return Result from remote procedure call (of type SPIAGENT_RESPONSE_MSG_t). * @throws OncRpcException if an ONC/RPC error occurs. * @throws IOException if an I/O error occurs. */ public SPIAGENT_RESPONSE_MSG_t spi_transaction_1(SPIAGENT_COMMAND_MSG_t cmd) { SPIAGENT_RESPONSE_MSG_t result_ = new SPIAGENT_RESPONSE_MSG_t(); client.call(spi_agent_oncrpc.spi_transaction_1, spi_agent_oncrpc.SPI_AGENT_ONCRPC_VERS, cmd, result_); return result_; } } } // End of spi_agent_oncrpcClient.cs