B4J Code Snippet TCP Server - Supports multiple Clients

TILogistic

Expert
Licensed User
Longtime User
and multiple ports with multiple clients per port, i.e., a port manager?

It's a class for dynamically managing multiple ports and clients,
as well as adding data reception and transmission templates.


1766784337269.png


1766784417573.png
 
Last edited:

TILogistic

Expert
Licensed User
Longtime User
Single Port - Multiple clients per port. But I guess you can run multiple instances of the server at different ports to achieve what you are asking.
I don't think it's a dynamic instance; I only specify the port and, optionally, the template for how the data is received or sent. It's completely dynamic; I can close ports or clients, or assign a template (protocol).
See post edit.
 
Last edited:

aminoacid

Active Member
Licensed User
Longtime User
I don't think it's a dynamic instance; I only specify the port and, optionally, the template for how the data is received or sent. It's completely dynamic; I can close ports or clients, or assign a template.
See post edit.

Ok.. I see it now. Pretty cool! I assume TCP Port Server and the Port Manager Class is a B4J Application? I did not see any link or attachment for it.
 

TILogistic

Expert
Licensed User
Longtime User
Ok.. I see it now. Pretty cool! I assume TCP Port Server and the Port Manager Class is a B4J Application? I did not see any link or attachment for it.
I just wanted to demonstrate that your solution is similar in client management. You can extend your solution to port management and also assign the sending and receiving protocols for each port.

My proposed solution is part of a development process for sending and receiving data to different types of devices connected to a server; that is, each device has its own data protocol or structure.

And yes, it's developed in B4J.
 
Top