Menu

example WorkerScript Sniffer

Anonymous
2016-05-19
2016-05-19
  • Anonymous

    Anonymous - 2016-05-19

    data type mismatch?

    line 358: tcpClient.connectToHost(UI_socketAdressLineEdit.text() , UI_socketPortLineEdit.text());

    Qt class QTcpSocket:

    void connectToHost(QString hostAdress, quint16 port)

     
  • Stefan Zieker

    Stefan Zieker - 2016-05-19

    Hi,

    QtScript converts the text automatically to a quint16. If you want to ensure that users only enter numbers then you can use a Validator (UI_socketPortLineEdit.addIntValidator(0, 65536)).

    PS: This is only a simple example how to use the interfaces.

    Best regards,
    Stefan

     
    • Anonymous

      Anonymous - 2016-05-19

      ok. Thank you for the explanation automatic conversion. Unfortunately I am not programmer. Trying to understand how it works :)

      But the script does not work with socket - tcp client. When connected pops up message box TCP error - unknown error. If you try the opposite - in the main window connected socket tcp - client and in a script serial port so it works perfectly.

       
  • Stefan Zieker

    Stefan Zieker - 2016-05-19

    Hi,

    • can you make a screenshot of the settings dialog (in the case you are connected with the main interface/window)?
    • can you make a screenshot of the script window?
    • which operating sytem do you use?
    • do you have to use a notwork proxy?

    Best regards,
    Stefan

     
  • Stefan Zieker

    Stefan Zieker - 2016-05-19

    Hi,

    you selected the serial port instead of the sockets (upper left corner in the script GUI).

    Best regards,
    Stefan

     
  • Anonymous

    Anonymous - 2016-05-19

    No, that's good. There are two configurations - one functional and dysfunctional one. Unfortunately I was stupid. In setting in script, i changed partner ports and addresses :(

    Sorry for the post and I thank you for your answers.

     
  • Stefan Zieker

    Stefan Zieker - 2016-05-19

    Hi,

    no problem. If you have any further questions or possible bugs in the future post again.

    Best regards,
    Stefan

     

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.