Gamestudio Links
Zorro Links
Newest Posts
Trading Journey
by howardR. 04/28/24 09:55
basik85278
by basik85278. 04/28/24 08:56
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Help with plotting multiple ZigZag
by M_D. 04/26/24 20:03
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
M1 Oversampling
by jcl. 04/26/24 11:12
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
0 registered members (), 728 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
wandaluciaia, Mega_Rod, EternallyCurious, howardR, 11honza11
19049 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
Web Sockets #433234
11/26/13 20:57
11/26/13 20:57
Joined: Jul 2013
Posts: 158
F
Feindbild Offline OP
Member
Feindbild  Offline OP
Member
F

Joined: Jul 2013
Posts: 158
Would it be possible to communicate with an Acknex server via HTML5 Websockets? Maybe using the Anet plugin?
I have to admit I have no experience whatsoever in GStudio multiplayer coding, so I'd be glad to hear about any advice and information from you guys.

Re: Web Sockets [Re: Feindbild] #433237
11/26/13 21:41
11/26/13 21:41
Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
Quad Offline
Senior Expert
Quad  Offline
Senior Expert

Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
Anet plugin won't speak websockets. But i am pretty sure it can be done with a plugin.

Last edited by Quad; 11/26/13 21:42.

3333333333
Re: Web Sockets [Re: Quad] #433361
11/28/13 14:43
11/28/13 14:43
Joined: Jul 2013
Posts: 158
F
Feindbild Offline OP
Member
Feindbild  Offline OP
Member
F

Joined: Jul 2013
Posts: 158
There are several C/C++ websockets libraries existing, but I have no idea how to integrate them into Acknex. I guess I'd need to create something called a "wrapper" since I can't just use the DLLs, right?

Is there a tutorial available on how to achieve what I want to do or at least something that puts me in the right direction?

Re: Web Sockets [Re: Feindbild] #433368
11/28/13 16:22
11/28/13 16:22
Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
Quad Offline
Senior Expert
Quad  Offline
Senior Expert

Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
check out the sdk_plugin folder in yout Gstudio folder


3333333333
Re: Web Sockets [Re: Quad] #433375
11/28/13 17:40
11/28/13 17:40
Joined: Apr 2007
Posts: 3,751
Canada
WretchedSid Offline
Expert
WretchedSid  Offline
Expert

Joined: Apr 2007
Posts: 3,751
Canada
You can alternatively use LoadLibrary() and GetProcAddress() to load the library at runtime and get addresses out of it. Just include the right header and bind the correction functions and you are done.


Shitlord by trade and passion. Graphics programmer at Laminar Research.
I write blog posts at feresignum.com
Re: Web Sockets [Re: WretchedSid] #433503
11/30/13 16:22
11/30/13 16:22
Joined: Jul 2013
Posts: 158
F
Feindbild Offline OP
Member
Feindbild  Offline OP
Member
F

Joined: Jul 2013
Posts: 158
From what I gathered from the manual (thanks Sid for pointing me in the right direction!) I can use the Windows API directly from within Lite-C, right?
Does this mean I could use these protocols:
http://msdn.microsoft.com/en-us/library/windows/desktop/hh437448(v=vs.85).aspx
just by including the right functions?

edit: disregard that, it seems this component is only available in Windows 8

Last edited by Feindbild; 11/30/13 16:32.
Re: Web Sockets [Re: Feindbild] #433513
11/30/13 19:37
11/30/13 19:37
Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
MasterQ32 Offline
Expert
MasterQ32  Offline
Expert

Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
you could implement the websocket protocol with tcp communication and sockets.
a web socket is afaik just a socket connection that builds its connection via a http header.


Visit my site: www.masterq32.de
Re: Web Sockets [Re: MasterQ32] #433514
11/30/13 19:45
11/30/13 19:45
Joined: Apr 2007
Posts: 3,751
Canada
WretchedSid Offline
Expert
WretchedSid  Offline
Expert

Joined: Apr 2007
Posts: 3,751
Canada
Originally Posted By: MasterQ32
a web socket is afaik just a socket connection that builds its connection via a http header.

It really is a tiny bit more complicated than that.

Also, various incompatible versions of the protocol.


Shitlord by trade and passion. Graphics programmer at Laminar Research.
I write blog posts at feresignum.com
Re: Web Sockets [Re: WretchedSid] #433517
11/30/13 21:09
11/30/13 21:09
Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
MasterQ32 Offline
Expert
MasterQ32  Offline
Expert

Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
only a little grin
maybe there's another c library for that


Visit my site: www.masterq32.de
Re: Web Sockets [Re: MasterQ32] #433774
12/06/13 18:05
12/06/13 18:05
Joined: Jul 2013
Posts: 158
F
Feindbild Offline OP
Member
Feindbild  Offline OP
Member
F

Joined: Jul 2013
Posts: 158
http://libwebsockets.org/trac/libwebsockets

Pure C Websocket library, this seems to do the trick... now I only need to find the time to work myself into it laugh

Page 1 of 2 1 2

Moderated by  HeelX, Spirit 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1