Esempio n. 1
0
        static public ResponseDLL SendCommand(int id_client, string command)
        {
            ResponseDLL response = new ResponseDLL();

            sendCommand(_server, id_client, command, ref response);
            return(response);
        }
Esempio n. 2
0
        static public ResponseDLL RestartTarget(int id_client)
        {
            ResponseDLL response = new ResponseDLL();

            restartTarget(_server, id_client, ref response);
            return(response);
        }
Esempio n. 3
0
        static public ResponseDLL DiagClient(int id_client)
        {
            ResponseDLL response = new ResponseDLL();

            diagClient(_server, id_client, ref response);
            return(response);
        }
        static public ResponseDLL PowerONField(int id_client)
        {
            ResponseDLL response = new ResponseDLL();

            powerONField(_server, id_client, _timeout_Request, ref response);
            return(response);
        }
Esempio n. 5
0
        static public ResponseDLL WarmReset(int id_client)
        {
            ResponseDLL response = new ResponseDLL();

            warmReset(_server, id_client, ref response);
            return(response);
        }
        static public ResponseDLL StopServer()
        {
            ResponseDLL response = new ResponseDLL();

            stopServer(_server, ref response);
            return(response);
        }
        static public ResponseDLL GetVersion()
        {
            ResponseDLL response = new ResponseDLL();

            getVersion(_server, ref response);
            return(response);
        }
Esempio n. 8
0
        static public ResponseDLL PowerOFFField(int id_client)
        {
            ResponseDLL response = new ResponseDLL();

            powerOFFField(_server, id_client, ref response);
            return(response);
        }
        static public ResponseDLL StopClient(int id_client)
        {
            ResponseDLL response = new ResponseDLL();

            stopClient(_server, id_client, _timeout_Request, ref response);
            return(response);
        }
        static public ResponseDLL SendTypeF(int id_client, string command)
        {
            ResponseDLL response = new ResponseDLL();

            sendTypeF(_server, id_client, command, _timeout_Request, ref response);
            return(response);
        }
        static public ResponseDLL ListClients()
        {
            ResponseDLL response = new ResponseDLL();

            listClients(_server, ref response);
            return(response);
        }
        static public ResponseDLL StartServer(string ip, string port)
        {
            ResponseDLL response = new ResponseDLL();

            startServer(_server, ip, port, ref response);
            return(response);
        }
        static public ResponseDLL InitServer()
        {
            ResponseDLL response = new ResponseDLL();

            initServer(_server, null, ref response);
            return(response);
        }
        public static string RetrieveErrorDescription(ResponseDLL packet)
        {
            string description = NO_ERROR;

            if (packet.err_server_code != 0)
            {
                description = packet.err_server_description;
            }
            else if (packet.err_client_code != 0)
            {
                description = packet.err_client_description;
            }
            else if (packet.err_terminal_code != 0)
            {
                description = packet.err_terminal_description;
            }
            else if (packet.err_card_code != 0)
            {
                description = packet.err_card_description;
            }
            return(description);
        }
 static private extern void stopClient(IntPtr server, int id_client, Int32 timeout, ref ResponseDLL response_packet);
 static private extern void powerONField(IntPtr server, int id_client, Int32 timeout, ref ResponseDLL response_packet);
 static private extern void sendTypeF(IntPtr server, int id_client, string command, Int32 timeout, ref ResponseDLL response_packet);
 static private extern void listClients(IntPtr server, ref ResponseDLL response_packet);
 static private extern void startServer(IntPtr server, string ip, string port, ref ResponseDLL response_packet);
 static private extern void initServer(IntPtr server, string jsonConfig, ref ResponseDLL response_packet);
Esempio n. 21
0
 static private extern void sendCommand(IntPtr server, int id_client, string command, ref ResponseDLL response_packet);
 static private extern void stopServer(IntPtr server, ref ResponseDLL response_packet);
Esempio n. 23
0
 static private extern void restartTarget(IntPtr server, int id_client, ref ResponseDLL response_packet);
 static private extern void getVersion(IntPtr server, ref ResponseDLL response_packet);
Esempio n. 25
0
 static private extern void diagClient(IntPtr server, int id_client, ref ResponseDLL response_packet);