Re: Can't display Java gui

From: Conrad Eaglehill (airkart_at_hotmail.com)
Date: 11/09/04


Date: 9 Nov 2004 12:50:29 -0800

Rogan Dawes <discard@dawes.za.net> wrote in message news:<4190853C.5040800@dawes.za.net>...
>
> Another alternative might be to use socket based comms in a
> client-server process. Have the GUI listen on a localhost socket for a
> connection, and pop up the GUI when it receives one. your C program
> passes the necessary info to the GUI, the operator makes his decision,
> and returns the decision to your C program via the socket.
>
> Your GUI effectively operates as a daemon, however it is running with
> the appropriate permissions for the desktop (if it is run as the user
> who owns the desktop), so it can interact with the operator/user.
>
> If nothing else, this is probably more efficient than starting a new JVM
> for every email that comes through. You incur the startup costs once
> only, at initial startup. Depending on your mail volume, this may or may
> not be important.
>
> It also means that you can properly queue the emails for the operator's
> attention, so that multiple emails arriving simultaneously do not all
> compete for attention/focus/whatever.

Hmm...I've had more practice in sockets with C than in Java, but this
might be the way to go. I'll give this a shot. Thanks, Rogan! I think
you may have helped me out quite a bit!

> Regards,
>
> Rogan

Conrad Eaglehill



Relevant Pages

  • Re: Looking for information on MFC TCP Communication
    ... > Note that to use the MFC socket classes the separate threads must be UI threads, ... > there is rarely a need to use separate threads. ... > objects, and not touching the GUI, there are no "thread issues". ... allocate the buffer, but this may be allocating / deleting alot of ...
    (microsoft.public.vc.mfc)
  • Re: tcp connection in gui: event based
    ... Write a small proc that does the accept and sets the connection to ... Use to register procs that get fired when the socket is ... If you have a full line, send it to the GUI, maybe dispatching via ... after to not block the event loop if its a bit bigger ...
    (comp.lang.tcl)
  • Re: Using too many threads?
    ... - Only the main window thread may update the main window GUI. ... Only the details window thread may update the details GUI. ... Is it safe for multiple threads to be reading/writing the same socket? ... "connection controller" thread per connection: ...
    (comp.os.os2.programmer.misc)
  • Re: Cant display Java gui
    ... and pop up the GUI when it receives one. ... >>and returns the decision to your C program via the socket. ... Thanks, Rogan! ... Please respond to "nntp AT dawes DOT za DOT net" ...
    (comp.lang.java.programmer)
  • sending an email from windows application .net 2.0
    ... I am having problems sending the emails. ... Dim ToAddress As String ... Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState ... state, IAsyncResult asyncResult, Int32 timeout, Exception& exception) ...
    (microsoft.public.dotnet.framework)

Loading