B4J Question Serversockets and threading ?

wl

Well-Known Member
Licensed User
Longtime User
Hello,

I'm looking in using serversockets in B4A.

The idea is that multiple clients would connect to a B4A server and keep these sockets open indefinitely.
When any of the clients send data through its socket the server should reply.

I can't seem to find an event on a Socket (created by the ServerSocket) to respond to incomming data.
I can read the inputstream, but can I do this for all sockets at once ?

Aka: how is threading implemented in using serversockets/sockets ?

Thanks !
 

wl

Well-Known Member
Licensed User
Longtime User
The serverside (serversocket) would be on B4J and the client (single thread) in B4A
 
Upvote 0
Top