Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » DSDP - Native Application Builder (NAB) » How to create a background process to listen for network traffic
How to create a background process to listen for network traffic [message #569247] Fri, 11 January 2008 09:57
Eclipse UserFriend
Originally posted by: lars.uffmann.dlr.de

Hi everyone!

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
deleted.

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!

Lars
Previous Topic:Mouse cursor hovering "under" WSCvbtn buttons?
Next Topic:How to put several event procedures in one source file
Goto Forum:
  


Current Time: Mon Dec 22 18:42:00 GMT 2014

Powered by FUDForum. Page generated in 0.01579 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software