home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!stanford.edu!msi.umn.edu!sgiblab!nec-gw!nec-tyo!wnoc-tyo-news!scslwide!wsgw!wsservra!daemon
- From: Mikell.F.Vander.Laan.Jr.@expo.lcs.mit.edu (mikell@cactus.org)
- Newsgroups: fj.mail-lists.x-window
- Subject: SOCKETS , DATAGRAMS, CONNECTIONS NOT XtAddInput
- Message-ID: <1992Nov18.210015.7104@sm.sony.co.jp>
- Date: 18 Nov 92 21:00:15 GMT
- Sender: daemon@sm.sony.co.jp (The devil himself)
- Distribution: fj
- Organization: Capital Area Central Texas UNIX Society, Austin, Tx
- Lines: 52
- Approved: michael@sm.sony.co.jp
-
- Date: 18 Nov 92 02:17:31 GMT
- Message-Id: <1992Nov18.021731.26514@cactus.org>
- Newsgroups: comp.windows.x,comp.windows.open-look
- Sender: xpert-request@expo.lcs.mit.edu
-
- 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////////////////////////
- /// /////////// /////////////////////////////////////////////////////////
- /// /////////// //////////// ////////////////////////////////////
-