View Full Version : About GUI C/S app
leonhardt
25-05-2013, 15:10
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.
leonhardt
31-05-2013, 17:59
Nobody knows that or it can't be done?:(
ErosOlmi
31-05-2013, 21:58
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.
ErosOlmi
31-05-2013, 22:14
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.