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

Conference lassie::ucx

Title:DEC TCP/IP Services for OpenVMS
Notice:Note 2-SSB Kits, 3-FT Kits, 4-Patch Info, 7-QAR System
Moderator:ucxaxp.ucx.lkg.dec.com::TIBBERT
Created:Thu Nov 17 1994
Last Modified:Fri Jun 06 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:5568
Total number of notes:21492

5031.0. "sharing socket descriptors btwn processes" by SYSTEM::ROGGENSTEIN () Mon Dec 16 1996 11:04

T.RTitleUserPersonal
Name
DateLines
5031.1same questionSYSTEM::ROGGENSTEINThu Dec 19 1996 08:3513
5031.2Be careful here...ucxaxp.ucx.lkg.dec.com::TIBBERTLee Tibbert, DTN 226-6115Thu Dec 19 1996 14:5510
5031.3CSC32::D_DERAMODan D'Eramo, Customer Support CenterThu Dec 19 1996 18:15767
5031.4ThanksMETSYS::ROGGENSTEINMon Jan 06 1997 09:284
5031.5socket and channel relationship43945::HELLIARhttp://samedi.reo.dec.com/Tue Apr 29 1997 10:4520
    Hi,
    
    What's the relationship between a 'socket' and the 'channel' used by
    the QIO example's above?
    
    We're using the socket interface everywhere else, so ideally, having
    got and assigned to the relevant 'BG' unit I would like to revert to
    using a socket id.
    
    Can this be done, or have I got to use QIO's throughout?
    
    I tried using bind, listen, and accept on the VMS platform and it got
    the request fine. However, if I try using the socket returned from the
    accept as the 'channel' to get the BG unit I get LIB$GETDVI failing
    with
    	SYSTEM-F-IVIDENT, invalid identifier format
    
    Thanks in advance, 
    
    Graham
5031.6Try documentation for decc$get_sdc()LADDIE::TIBBERTLee Tibbert, DTN 226-6115Tue Apr 29 1997 19:5210
Without endorsing either sharing of sockets or switching
between sockets and channels....

Look at the documentation for DECC$GET_SDC() under
help socket decc$get_sdc.

Use at your own risk,

Lee
5031.7But what about channel to socket43945::HELLIARhttp://samedi.reo.dec.com/Wed Apr 30 1997 05:497
    DECC$GET_SDC gets a VMS channel from the socket descriptor. However, in
    the socket sharing example, I need the child to assign to the BG device
    and then start doing 'normal' socket operations.
    
    SO, I need some way of going from VMS channel to socket descriptor.
    
    Any takers?
5031.8Possible, but not easyLADDIE::TIBBERTLee Tibbert, DTN 226-6115Wed Apr 30 1997 10:2412
    
    Re: channel to socket.
    
    I suppose that channel to socket could be done with
    sufficient knowledge of UCX and DEC C RTL internals, but
    it is almost certainly unsupported.
    
    Wouldn't it be way easier to code this thing right from 
    the beginning (where right is defined as no socket sharing) ;-)
    
    Lee.
    
5031.9What is right on VMS, may not be right elsewhere!43945::HELLIARhttp://samedi.reo.dec.com/Wed Apr 30 1997 13:5218
    Lee,
    
    Im just going by what people tell me is the 'right' way to do things.
    
    Getting a child to service the request so the parent is ready to
    'catch' the next request comes about because the standard sockets have
    a small 'queue' and so client requests can fail because the parent cant
    service their request quick enough. At least this is the story I was
    told for Digital Unix.
    
    At the end of the day, it seems that since we're stuck with our current
    parent/child architecture and that VMS can only hack this using
    platform specific implementation via VMS devices and channels then I'll
    have to use QIO's thoughtout.
    
    Regards,
    
    Graham