Gnome TCP front-end to app.
- From: "Freivald, Joseph A, PROSH" <jfreivald att com>
- To: <gtk-app-devel-list gnome org>
- Subject: Gnome TCP front-end to app.
- Date: Fri, 25 Jan 2002 15:17:34 -0500
I'm working on a front-end that communicates with a process on another box over TCP. The other box feeds
status messages asynchronously to the front-end, and the front-end will send messages to the back-end
processes when buttons are pressed, etc.
Sending messages based on user input is trivial because it can be embedded in the widget callbacks. It only
needs to be executed when the user makes a change.
What I need is a way to watch the TCP port and generate an event when a message is available. I have
considered making a separate thread that reads the message, checks it for validity, queues it and then
generates an event (so that the entire app doesn't have to be re-entrant), but before I take that route, I
wanted to ask for suggestions.
Anyone have any better ideas?
--JATF
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]