O$ v8.1 Omnis to Omnis talking..
Bruno Del Sol
bruno.delsol at bydesign.fr
Fri Sep 27 14:54:51 EDT 2019
Hi Mike,
For simple messaging HTTP GET only, you can use the builtin http server
/Ultra that comes with every copy of Omnis as long as you enter a valid
$prefs.$serverport value.
for instance, with $prefs.$serverport?$assign(5990), any Omnis will
answer to this request, by running OmnisLibrary.OmnisClass.$construct
[1]http://localhost:5990/Ultra?OmnisLibrary=BD&OmnisClass=HeartBeat&nam
e=Mike
BD.HeartBeat.$construct
Quit method con('550 HeartBeat at server timestamp ',now,' in
',abs(#CT)-ct,' thicks ',abs(#CT),' - ',ct)z
## can then spit text
Quit method con('Hello ',name,' HeartBeat at server timestamp ',#D,"
",#T)
## or create a more elaborate http answer
Calculate HttpResponse as "<html><head></head><body>....</body></html>"
Begin text block
Text: Content-Type: [contenttype]; charset=utf-8 (Carriage
return,Linefeed)
Text: Content-Length: [binlength(chartoutf8(HttpResponse))] (Carriage
return,Linefeed)
If len(headers)
Text: [headers] (Carriage return,Linefeed)
End If
Text: (Carriage return,Linefeed)
Text: [HttpResponse] (Carriage return,Linefeed)
End text block
Get text block HttpResponse
Quit method HttpResponse
hth
regards
bruno
By Design
[2]http://www.bydesign.fr
Bruno Del Sol
[3]bruno.delsol at bydesign.fr
tel (33) 01 48 78 47 37
46, rue de La Tour d'Auvergne
75009 Paris (France)
Le 27/09/2019 à 19:59, Omnis a écrit :
Hello All,
I would like to have 2 copies of Omnis talking to each other. One copy would be
listening, while the other would ask a question, and expect an answer.
How best to do this over a IP network please?
Rest or Http as both seem able.
I’m using Studio v8.1
Thanks
Mike
[Lineal Software Solutions] [4]<http://www.lineal.co.uk>
[Twitter][5]<https://twitter.com/linealsoftware> [Facebook] [6]<https://www.face
book.com/linealsoftware?fref=ts&ref=br_tf> [Google +] [7]<https://plus.google.c
om/112982815000763473226/about> [LinkedIn] [8]<https://www.linkedin.com/company
/1859834?trk=tyah&trkInfo=clickedVertical%3Acompany%2Cidx%3A1-1-1%2CtarId%3A1437
729256906%2Ctas%3Alineal%20s>
[[9]https://s3.amazonaws.com/htmlsig-assets/spacer.gif]
Mike Matthews
[10]omnis at lineal.co.uk[11]<mailto:omnis at lineal.co.uk>
Lineal Software Solutions
01271 375999
Commercial House, The StrandBarnstaple, Devon, EX31 1EU
[12]www.lineal.co.uk[13]<http://www.lineal.co.uk>
[[14]http://www.lineal.co.uk/stuff/EmailSig/MicrosoftPartner.png][15]<http://www
.lineal.co.uk/windows-support/> [[16]http://www.lineal.co.uk/stuff/EmailSig/Offi
ce_365.png] [17]<http://www.lineal.co.uk/microsoft-office-365/> [[18]http://www
.lineal.co.uk/stuff/EmailSig/Cisco.png] [19]<http://www.lineal.co.uk/wifi-networ
ks/> [[20]http://www.lineal.co.uk/stuff/EmailSig/Meraki.png] [21]<http://www.li
neal.co.uk/wifi-networks/> [[22]http://www.lineal.co.uk/stuff/EmailSig/Dell.png
] [23]<http://www.lineal.co.uk/it-systems/> [[24]http://www.lineal.co.uk/stuff/
EmailSig/Gamma.png] [25]<http://www.lineal.co.uk/gamma-horizon-voip/> [[26]http
://www.lineal.co.uk/stuff/EmailSig/Kerio.png] [27]<http://www.lineal.co.uk/kerio
/> [[28]http://www.lineal.co.uk/stuff/EmailSig/Apple.png] [29]<http://www.linea
l.co.uk/apple-upgrades-repairs/> [[30]http://www.lineal.co.uk/stuff/EmailSig/Es
et.png] [31]<http://www.lineal.co.uk/eset-security-software/> [[32]http://www.l
ineal.co.uk/stuff/EmailSig/mitel.png] [33]<http://www.lineal.co.uk/shoretel/>
_____________________________________________________________
Manage your list subscriptions at [34]http://lists.omnis-dev.com
Start a new message -> [35]mailto:omnisdev-en at lists.omnis-dev.com
References
1. http://localhost:5990/Ultra?OmnisLibrary=BD&OmnisClass=HeartBeat&name=Mike
2. http://www.bydesign.fr/
3. mailto:bruno.delsol at bydesign.fr
4. http://www.lineal.co.uk/
5. https://twitter.com/linealsoftware
6. https://www.facebook.com/linealsoftware?fref=ts&ref=br_tf
7. https://plus.google.com/112982815000763473226/about
8. https://www.linkedin.com/company/1859834?trk=tyah&trkInfo=clickedVertical:company,idx:1-1-1,tarId:1437729256906,tas:lineal s
9. https://s3.amazonaws.com/htmlsig-assets/spacer.gif
10. mailto:omnis at lineal.co.uk
11. mailto:omnis at lineal.co.uk
12. http://www.lineal.co.uk/
13. http://www.lineal.co.uk/
14. http://www.lineal.co.uk/stuff/EmailSig/MicrosoftPartner.png
15. http://www.lineal.co.uk/windows-support/
16. http://www.lineal.co.uk/stuff/EmailSig/Office_365.png
17. http://www.lineal.co.uk/microsoft-office-365/
18. http://www.lineal.co.uk/stuff/EmailSig/Cisco.png
19. http://www.lineal.co.uk/wifi-networks/
20. http://www.lineal.co.uk/stuff/EmailSig/Meraki.png
21. http://www.lineal.co.uk/wifi-networks/
22. http://www.lineal.co.uk/stuff/EmailSig/Dell.png
23. http://www.lineal.co.uk/it-systems/
24. http://www.lineal.co.uk/stuff/EmailSig/Gamma.png
25. http://www.lineal.co.uk/gamma-horizon-voip/
26. http://www.lineal.co.uk/stuff/EmailSig/Kerio.png
27. http://www.lineal.co.uk/kerio/
28. http://www.lineal.co.uk/stuff/EmailSig/Apple.png
29. http://www.lineal.co.uk/apple-upgrades-repairs/
30. http://www.lineal.co.uk/stuff/EmailSig/Eset.png
31. http://www.lineal.co.uk/eset-security-software/
32. http://www.lineal.co.uk/stuff/EmailSig/mitel.png
33. http://www.lineal.co.uk/shoretel/
34. http://lists.omnis-dev.com/
35. mailto:omnisdev-en at lists.omnis-dev.com
More information about the omnisdev-en
mailing list