[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference bulova::decw_jan-89_to_nov-90

Title:DECWINDOWS 26-JAN-89 to 29-NOV-90
Notice:See 1639.0 for VMS V5.3 kit; 2043.0 for 5.4 IFT kit
Moderator:STAR::VATNE
Created:Mon Oct 30 1989
Last Modified:Mon Dec 31 1990
Last Successful Update:Fri Jun 06 1997
Number of topics:3726
Total number of notes:19516

1436.0. "Sockets or ClientMessages..?" by SX4GTO::HOLT (Robert Holt @ UCS) Wed Sep 13 1989 15:19

    
    I am writing a callback routine that execs another
    DW application. My callback will need to send a few
    kb of integer data to the exec'ed process. 
    
    Which is fastest, Unix domain sockets or X client messages?
    

T.RTitleUserPersonal
Name
DateLines
1436.1FLUME::dikeWed Sep 13 1989 18:5713
Since client messages need to go via the server between the two processes, and
they might be buffered before they go to the server, and a message sent
through a socket goes straight to the target, the socket is likely to be faster.
Add to this the fact that Unix domain sockets are supposedly optimizations of
sockets for local transport and that client messages have a capacity of 20 bytes
each and that they carry an overhead of 12 bytes each, and it looks like 
sockets are the way to go.

The down side is that you will have to set up the connection itself and arrange
for a rendezvous at an agreed location, which is a reasonable thing to do with
a client message.
				Jeff