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

Conference ie::jabberwocky

Title:Feedback on Jabberwocky User Environment
Notice:*** New Presales Presentation - see note 530.0 ***
Moderator:dumpty.reo.dec.com::SMITH
Created:Thu Mar 19 1987
Last Modified:Fri May 16 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:542
Total number of notes:2101

540.0. "smp talk over a socket" by BACHUS::ROETS (Chris Roets) Thu Mar 20 1997 16:47

    Hello Guys,
    
    me again
    
    suppose I have a socket /dev/mysocket
    
    and I want my client-server application to talk over this socker
    
    the client ca do echo's and read to it.
    
    how can I implement this now on my smp-script.
    
    suppose I have :
    
    RULE: prompt1
    
            MATCH:  "prompt>"
    
            ADDRESS: SHELL
    
            ADDRESS: SMP$SERVER
            MESSAGE: "DISABLE RULE %niceprompt1%"
    
    END RULE:
    
    or something,
    
    how to I program in the rule to write a string "give me a command"
    to /dev/mysocket and then reads in the command
    
    Thanks
    
    Chris
T.RTitleUserPersonal
Name
DateLines
540.1Can't be done directlyESME::SPENCEBugs? You mean insects?Fri Apr 11 1997 16:2615
SMP sends messages to other servers in the same dialogue
bus, normally. If you want to write to a socket then you
should use the WRITE function to write the required message
to the special device (see page 65 of the Programmer's Guide).

Having said that, is this really the best approach for
communications that is available? Have you considered using
middleware instead, and using something like our Service
Provider Interface RTL to act as a bridge between the 
middleware and a DBUS environment?

We've been doing this on all our own DBUS-based projects for
years now, and it works very well.

	- Cameron