Hi Kevin,
I provided code that works between two Cache machines, in another
thread here on Hardhats.
You can also find that code, and documentation here:
http://vista.intersystems.com/csp/docbook/DocBook.UI.Page.cls?KEY=GIOD_interproccomm#GIOD_ipc_tcp
I would like to try GT.M but have not had time to do that yet.
I would suggest:
1. Baby steps ... write whether the open succeeds or not, on the
server side, and also on the client side. Use $T to test (I $T U 0 W
"Open succeeded ..... E U 0 W "Open failed".
2. Only after you know that the two $Ts succeed, before send/receive
traffic.
3. If the is a GT.M sample/example of working code, use it exactly as
written to see if it works the first time. Then make your changes.
4. Note that only the client side provides the TCP/IP address (of the
server), along with the port to use. The server side only needs to
specify a port number (noTCP/IP address is needed)
5. In Cache, Closing a device, frees the socket. Or just exit and
sign back on, if you think the socket is not freed by the OS. Putting
the $T test in you code should allow you to know for sure whether the
Opens succeeded or not.
6. Technically, in Cache at least, the client writes first to
establish/complete the connection. However my code and the sample code
in Cache, don't seem to require this.
Let us know what happens.
> > ;- Hide quoted text -
>
> - Show quoted text -