#1 2015-12-16 12:14:20

svanneste
Member
From: Paris, France
Registered: 2015-05-27
Posts: 155

About Socket

Hello,
This is not really a support request but a question about the technology used. It will help me to understand (same question about npTalk). Perhaps is it a lack of knowledge.

I have installed a Redpin  server (redpin.org) which accepts sockets connections and uses a REST Api. I was able to connect to that socket using some Android or Java apps I had written. But when I try to connect to it with App Builder or npTalk, the connection is refused (about npTalk, I have seen the same problem with nzPluginSocket so it is not the code used).

So, I wonder if the problem is me not understanding a crucial concept or only the technology used (the server is released under GPL so I have took a look at its code and seen nothing special).

Many thanks

Offline

#2 2015-12-16 12:35:00

David
Admin
From: Alcobendas, Madrid, Spain
Registered: 2015-04-21
Posts: 1,657
Website

Re: About Socket

Hello Samuel,

Honestly, I am not an expert in TCP/IP nor WebSockets, however, the npTalk plugin uses the most simple components in Delphi to perform TCP/IP connections, and, on the other hand, App Builder uses the Javascript WebSocket object behind the WebSocket control to do the job.

About the npTalk behaviour, something which may can affect client and servers (not created with the npTalk plugin) is the "buffer" variable. You can take a look at the plugin help and read about the "buffer" variable used in the plugin.

About the WebSocket in App Builder, maybe a server is not capable to intereact with Javascript Websockets out of the box, so maybe you found interesting to read this Mozilla Developer Network article about how to implement a Javascript Websocket into the server.

Hope this information can help you in some manner Samuel.

Offline

#3 2015-12-16 12:46:00

svanneste
Member
From: Paris, France
Registered: 2015-05-27
Posts: 155

Re: About Socket

Hello David,

Thanks a lot for the detailed information provided. I will study them and report if I do find a solution. smile

Offline

#4 2015-12-16 12:48:58

David
Admin
From: Alcobendas, Madrid, Spain
Registered: 2015-04-21
Posts: 1,657
Website

Re: About Socket

You're welcome!

Offline

Board footer

Powered by FluxBB


Copyright ©2018 DecSoft. All rights reserved.