|How to create a background process to listen for network traffic [message #816]
||Fri, 11 January 2008 09:57
Originally posted by: lars.uffmann.dlr.de|
First of all, if this problem seems trivial to you, I have to excuse
myself, I'm not too familiar with multitasking (threaded?) applications yet.
What I want to do, is have a GUI application listen for some specific
network traffic, the GUI being mostly so the user can enter a port to
listen on and some specifications about the packet to listen for. In
this case, I am aiming at catching an unannounced file transfer, in
which case the application shall record the file in the background,
while at the same time popping up a message dialogue (or some other
visible notification), informing the user of the incoming file, and
asking where to store it. If the user decides to store it, it will get
moved to that location after download is complete, otherwise it will be
Anyways, I am a little confused with the way NAB/MWT projects are
composed, since there seemingly is no "main" routine where I can do
anything before the window is initialized, like creating a thread in the
background. The only thing I have tested successfully so far is event
routines, but I don't want to use one of these - unless that's the way
to go (main windows OnInitialize?).
Any help appreciated!
Powered by FUDForum
. Page generated in 0.02026 seconds