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 #816] Fri, 11 January 2008 09:57 Go to next message
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
Re: How to create a background process to listen for network traffic [message #882 is a reply to message #816] Fri, 11 January 2008 10:27 Go to previous message
Eclipse UserFriend
Originally posted by: lars.uffmann.dlr.de

class WSCvthread is the way to go?

Seems like it :) And then start that in the main window initialize event.

Trying that now...
Re: How to create a background process to listen for network traffic [message #569310 is a reply to message #816] Fri, 11 January 2008 10:27 Go to previous message
Eclipse UserFriend
Originally posted by: lars.uffmann.dlr.de

class WSCvthread is the way to go?

Seems like it :) And then start that in the main window initialize event.

Trying that now...
Previous Topic:How to put several event procedures in one source file
Next Topic:Don't see NAB perspective in Eclipse
Goto Forum:
  


Current Time: Mon Dec 22 11:31:47 GMT 2014

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

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