Re: Can't display Java gui

From: Rogan Dawes (discard_at_dawes.za.net)
Date: 11/10/04


Date: Wed, 10 Nov 2004 09:31:43 +0100

Conrad Eaglehill wrote:
> 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.
>>

>
> 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!
>

My pleasure.

Note that you would need to have some kind of fall-back and retry code
for the times that the GUI is not running. You may be able to integrate
that into the sendmail infrastructure, by returning a "temporary
failure" result to the calling sendmail process, and letting it worry
about rescheduling the message for transmission.

Rogan

-- 
Rogan Dawes
*ALL* messages to discard@dawes.za.net will be dropped, and added
to my blacklist. Please respond to "nntp AT dawes DOT za DOT net"


Relevant Pages

  • Re: Cant display Java gui
    ... Have the GUI listen on a localhost socket for a ... and pop up the GUI when it receives one. ... > It also means that you can properly queue the emails for the operator's ... Thanks, Rogan! ...
    (comp.lang.java.programmer)
  • 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)

Loading