Nobody knows that or it can't be done?
hello, can anyone show me an example of how to write a GUI tcp server/client app? I just don't know how to do event stuff in callback such as connect,disconnect,recieve data ETC. the sample scripts are all console based.
Nobody knows that or it can't be done?
Have you checked your \thinBasic\SampleScripts\TcpUdp\ directory?
UDP_Notify_Server.tbasic
UDP_Notify_Client.tbasic
- Start the Server
- Start the client
- Move the Window client and you will see the Window Server moving according while they exchange each other UDT data over the network.
- You can start many session of the client and move each of the client windows and see what happen
It is just an example, the rest is programmer fantasy.
Last edited by ErosOlmi; 31-05-2013 at 22:01.
www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000
Well, network is network.
The example can work locally or remotely as far as you have an access to the remote network.
Execute the Server on a networked machine.
Execute the Client on another networked machine (Lan or Wan) able to "see" the Server machine with UDP datagram
Do not forget to change server IP address to connect to from loop back ip 127.0.0.1 to the ip of your server machine.
Last edited by ErosOlmi; 01-06-2013 at 10:15.
www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000
Bookmarks