Here is how write for Cache:
" You can use the JOB command to implement a TCP concurrent server. A
TCP concurrent server allows multiple clients to be served
simultaneously. In this mode, a client does not have to wait for the
server to finish serving other clients. Instead, each time a client
requests the server, it spawns a separate subjob for that client which
remains open as long as the client needs it. As soon as this subjob
has been spawned (indicated by the return of the JOB command), another
client may request service and the server will create a subjob for
that client as well. "
server ;
SET io="|TCP|1"
SET ^serverport=7001
OPEN io:(:^serverport:"MA"):200
IF ('$TEST) {
WRITE !,"Cannot open server port"
QUIT }
ELSE { WRITE !,"Server port opened" }
loop
USE io READ x ; Read for accept
USE 0 WRITE !,"Accepted connection"
JOB child:(:5:io:io) ;Concurrent server bit is on
GOTO loop
child
WRITE $JOB,! ; Send job id on TCP device to be read by client
QUIT
And how it to use in GT.M ???
Thanks
Regards
-- Bhaskar
ks dot bhaskar at fnis dot com <-- send e-mail here
Who can will share a small example of connection
Through xinetd with GT.M Routine through socket???
It is not enough information and examples ...
Thanks
[KSB2] Let me tell you how you can get a working example to play with
on your own PC. Look at the instructions at
http://downloads.sourceforge.net/sourceforge/worldvista/WVEHRVOE10Release6-08Toaster4SliceMSCFM1034Readme.html
and scroll down to the end (you don't care about the details of VistA)
where it tells you how to boot and run the virtual machine.
Login to the virtual machine as user vistaadmin, password vistaadmin
and look at the files /etc/xinetd.d/clinicp and /etc/xinetd.d/clinicq.
Hi all! Could anybody send me at my e-mail these files:
/etc/xinetd.d/clinicp and /etc/xinetd.d/clinicq
I have a limited access to internet now. Thank you very much.
Alexander.
It will take me a little time to get those, but if you just want an
example of setting up a service with xinetd, take a look at
http://tinyurl.com/mevhlx
Regards
-- Bhaskar
Thanks a lot. That is it what I need.
Does this example also work in the cach� evalution version? I never managed
to get it running there, when I start the routine I get the "Server port
opened" message alright, but when I open a browser window on that same
machine http://127.0.0.1:7001/testtest all I get is a "page can not be
displayed"...tried it with all kinds of ports, firewall off and everything,
always the same result.
Uli
Uli
"uli" <ulrich...@freenet.de> schrieb im Newsbeitrag
news:4a794e69$0$10490$9b62...@news.freenet.de...