home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.windows.x:19267 comp.windows.open-look:4549
- Newsgroups: comp.windows.x,comp.windows.open-look
- Path: sparky!uunet!ukma!darwin.sura.net!zaphod.mps.ohio-state.edu!cs.utexas.edu!milano!cactus.org!mikell
- From: Mikell F. Vander Laan Jr.(mikell@cactus.org)
- Subject: SOCKETS , DATAGRAMS, CONNECTIONS NOT XtAddInput
- Message-ID: <1992Nov18.021731.26514@cactus.org>
- Followup-To: comp.windows.x
- Keywords: X , sockets, connectionless
- Sender: mikell@cactus.org (Mikell Vanderlaan)
- Organization: Capital Area Central Texas UNIX Society, Austin, Tx
- Date: Wed, 18 Nov 1992 02:17:31 GMT
- Lines: 47
-
- THE PONDERING:
- How do you really take advantage of sockets and X window.
- I'm not talking about that woefully inadequate example in
- the FAQ. "use XtAddInput, Try to stay away from blocking
- I/O routines, and return quickly from your callback"
-
- THE B.S:
- What a bunch of Fluff!
- This XtAddInput seems great if I want to read a file. But simply
- assuming that I can communicate with anouther process over
- a period of say 30 seconds consisting of both reads and writes falls a
- bit short of reality.
-
- THE STRIAGHT POOP:
- What I'm talking about is an Xwindow program:(A) that sits atop
- a database on machine (ALPHA). After selecting a host and pushing a button,
- it forks or RPCs a copy of an NONE-XWINDOW program on host (BETA)
- that sits atop a different database. Sockets are registered,
- and program (A) becomes the client to program (B), in an attempt
- to tranfser some 40 (600 byte records to the database on host (BETA)
- without Blocking the X server!
-
- THE PREVIOUS ATTEMPT:
- In the last week, I've attempted it with CONNECTION BASED socket
- programming but a none fatal server block starts warning and beeping.
- None-connection based sockets:(DATAGRAMS) are my next stab. Although
- they qualify as NONE_BLOCKING I/O, I fear that their unreliability in
- transmission will mean a whole lot of ACK / NAK type programming
- on both ends of the socket. Lastly, I assume I'll also need to
- send most of the data with a WorkProc called from a ClientMessage event
- to keep the server moving. Which means I'll additionally
- have to have all the data encapsilated and ready to send before
- the Event takes place. Plus the nasty WorkProc memory leaks
- I've heard of. Does OW3.0 have it too?
-
- THE REQUEST:
- In short, can someone point me in the right direction. Is there
- an example app avialable at MIT export. ect that is sophisticated enough
- to handle such transport but not reach the complexity of
- FTP or TELNET. or how about a few comments from der mouse.
-
- Please, NO Deep Thoughts By Jack Handys...
- --
- ///////////////////////////////////////////////////////////////////////////
- /// /////////////////Mikell F. Vander Laan////////////////////////
- /// /////////// /////////////////////////////////////////////////////////
- /// /////////// //////////// ////////////////////////////////////
-