[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

5239.0. "Help on using sockets in real time C." by VAXRIO::CONT_RENATO (R.Mendes@CIMsolutions Brasil) Tue Feb 18 1997 15:12

    Hi,
    
    I have a request to write a code that uses sockets, but the program,
    due to its nature (real time process control), can never stop. I'm using
    VMS AXP.
    Looking at the socket library, I found the recv() function, that 
    would make me read the socket data. It can be blocking or not.
    If it's not blocking, I would have to use an internal timer
    to keep checking for more data to arrive, using the select()
    function. If it's blocking, my code would hang until more data arrives.
    
    Is there around another way of doing it, so that there would be a
    socket read request and, once it gets its data, it calls me a
    handler or an VMS AST ? What about threads implementation. Would that solve
    my problem (but I would have to install a new product, right) ? Also,
    may I use send() while a blocking recv() is posted in the socket ?
    
    Thanks in advance for any help and my best regards.
    
    Renato Mendes
    
T.RTitleUserPersonal
Name
DateLines