i am new with XoJo and i am trying to write a small TCP server. It handles a few connections and i want be able to send data or close specific connections from a Form. So i used ServerSocket. For example i have connected clients 1, 2, 3, 4, and 5 and want to close the TCP-connection to client 2.
Problem: I want to do this from a timer which cares about the state of the clients.
I tried a lot, like
Call IncommingClientSocket.Close i
where i is the ID of the object.
But i get an error:
Static reference to instance method: call this on an instance of class SocketCore.
Is this a problem of ServerSocket/TCPSocket or do i make a mistace with handling the class?
Please help, thank you.
Here you can download the project: