i would like to understand how the UDPSocket library works. if i have a server that opens a connection and listen to a port like 5000 now i want a client to send a Packet to the server or send a Packet to another client through the server how is that possible?
The purpose of this tutorial is to cover the various communication options available for B4X developers. Will start with two important utilities: AsyncStreams: Asynchronously reads and writes to any stream and avoids blocking the main thread. Do not assume that messages will arrive as a single...
The purpose of this tutorial is to cover the various communication options available for B4X developers. Will start with two important utilities: AsyncStreams: Asynchronously reads and writes to any stream and avoids blocking the main thread. Do not assume that messages will arrive as a single...
thank you erel i managed to create a simple b4a and b4j app and send packets between them.
i have read that UDP is much faster than TCP because TCP expects a response, not like a UDP connection.
so i see a very big potential for a multiplayer game framework using UDP. the idea is to send stats from a b4x app to another b4x app and like this update the game stats on both apps. in games where the game stats update every few milliseconds, it is less important to know the last sent stat because it is no more relevant so if the packet did not arrive the game can keep going on and for that is UDP a better choice and if i need to verify that the packet arrived on the other side i could use a TCP request. (i guess) ?
Requires B4A V9.90 or higher. Hello fellow B4X developers. Here is my example of using a broadcast address to automatically find another devices IP address on a network, then to use that IP address to play a game (in this case Tic-Tac-Toe) across that WiFi network (device 1 vs device 2...
Requires B4A V9.90 or higher. Hello fellow B4X developers. Here is my example of using a broadcast address to automatically find another devices IP address on a network, then to use that IP address to play a game (in this case Tic-Tac-Toe) across that WiFi network (device 1 vs device 2...
very nice Peter!
i am working on a more complex game. as soon as i will have a working alpha version i will create a thread about it in the game section.
i think that this topic is not talked about enough in this forum i hope to change it