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?
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?
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.
There is no such thing. The connection is made when you send the request. If you want to maintain a persistent connection then use WebSockets (which are supported by jServer).