Hello I would welcome a few pointers with this problem please:
I need to connect to a third-party server and send xml commands (initiated by the GUI) and receive responses. The server can also send me unsolicited xml packets on which I must act. Since Synapse is synchronous and I must check for unsolicited messages, do I need to do this in a background thread in order not to block/freeze the GUI? Is it possible to have a very small timeout value and do this in the main thread via a timer? The packets are typically < 200 bytes and are rx/tx at a maximum rate of 5 every second, although typical rates are one every 2-3 seconds, or there may not be any packets for minutes at a time. My app will just have one connection to the third-party server so we're not talking many connections here with masses of data. If I use a background thread I'll need to handle passing the user/GUI initiated commands to the thread, which I'd rather avoid if possible. Your suggestions would be appreciated. Thanks David ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ synalist-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/synalist-public
