I’m not sure, I suspect you could loop on the Get Characters function as long as the TCP socket is still open with a client, but when a new client connects, then you may need another Accept Incoming Communication. And how would you handle simultaneous clients, I have no idea - can’t exactly start another thread… I would have to test this, the documentation isn’t real clear in this area.
Yeah, you don’t want to do that. - I notice that the web server sample I linked you to does this, that isn’t right, as you want to leave the comm open if you expect more communications.
From the docs: “When using TCP communication handles, keep in mind that the controller has a limited amount of TCP/IP resources, so you need to be careful about how frequently these communication handles are opened and closed. TCP communication handles are meant to be left open as long as possible.”