[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Socket comunication.


On 2/10/25 11:23 AM, gaucho wrote:
Hi everyone,

I would like to communicate two programs.
One is a web application with webforms and the other is a terminal
program that “talks” to a database.

I am trying the example but they are not working, maybe they are
outdated or maybe I am doing something wrong.
Could someone send me an example of 2 programs communicating via
socket?

I took the sample from here:
https://gambaswiki.org/wiki/doc/network

Errors:
Static Server As ClsServer (unknown identifier)

in server program I check the follow components:
Component=gb.image
Component=gb.gui
Component=gb.form
Component=gb.net
Component=gb.net.curl
Component=gb.util.web
Component=gb.web
Component=gb.xml
Component=gb.xml.rpc


Thanks.
Martin.

The third step of the server application instructions says, "Add a new class called "ClsServer"." Did you do that?

Also, the full code listing for the server application has the following line as the first line of code:
STATIC Server AS ClsServer   ' not needed in newer Gambas 3 versions

Notice the comment says that line is not needed for newer versions of Gambas 3. So, try removing it. (I have not yet tested the full code to see if that works.)


--
Lee

--- Gambas User List Netiquette [https://gambaswiki.org/wiki/doc/netiquette] ----
--- Gambas User List Archive [https://lists.gambas-basic.org/archive/user] ----


Follow-Ups:
Re: Socket comunication.T Lee Davidson <t.lee.davidson@xxxxxxxxx>
References:
Socket comunication.gaucho <64xcode@xxxxxxxxx>