Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

Working with SocketServer and SocketClient

Artem
2005-02-25
2012-12-29
  • Artem
    Artem
    2005-02-25

    Hello!
    I've run SCKSERV2 and SCKCLI from Frans S.C. Witte on console (SCKSERV2 on one console, SCKCLI on the other one).

    Please, advise me,
    how I can transmit data from client to server and back? For example, in client side I enter command "d ^some_program", and recieve result in string from server?
    Thanks!

    ---------------------
    Regards,
    Artem.

     
    • K.S. Bhaskar
      K.S. Bhaskar
      2005-02-25

      In the simplest case, once you have working code to send strings back and forth, you should be able to Xecute a string on the server.

      Also, you may want to look at Mlink (http://sourceforge.net/projects/mlink).

      Unless you are in a highly secured environment, you should really be cautious about allowing an arbitrary M entryref or arbitrary M code to be executed.  Better to implement an API where the strings sent back and forth are parameters that are validated before execution.

      -- Bhaskar

       
    • Artem
      Artem
      2005-02-25

      Thanks, Bhaskar!

      I've looked MLink. Does it the single instrument, which allow to communicate with the GT.M server from Delphi?

      And how I can use Socket code samples - FSCW (http://sourceforge.net/projects/sanchez-gtm) to create my client/server applications?
      Thanks!

      ---------------------
      Regards,
      Artem.

       
      • K.S. Bhaskar
        K.S. Bhaskar
        2005-02-25

        I am sorry, but I cannot answer either question (and I don't fully understand them).  You can try sending e-mail to Roger, the developer of Mlink.

        -- Bhaskar