B4J Question JServer and ServerSocket

BeneBarros

Active Member
Licensed User
Longtime User
I have a server using the "JServer" and working perfect.
Now I have some devices that I need to check whether they are connected or not.
I'm thinking of using the "ServerSocket" and creating a Client class.
Can I do this in the same application?
Can I use the same port?
 

BeneBarros

Active Member
Licensed User
Longtime User
Yes.


No.

In most cases it is a mistake. It is easy to mess things up with ServerSocket, especially if you want to support multiple clients. What do you need it for?
is an existing server with JServer serving several PCs.
Now I need to include the android devices that are Free Lancer employees.
When a customer contacts the company, I need to know which employee is connected and closest to the service.
 
Upvote 0
Top