@MoKaLux , polling when the server is stopped makes not much sense, but i agree that it should not produce errors. in any case the following line change in udp-socket.lua line 118 in the M:poll function makes it work for me: was: if data == nil then return false end new: if data == nil or data== "" then return false end
also the performance might be bad of the polling, at least moving the server window around is lagging. i need to test this in a real app situation where something else is going on too.
Comments
Is the project you posted last the final one? I can add it to the wiki asap
so you stopped and started the server again. i never tried that, will do.
Likes: MoKaLux
Fragmenter - animated loop machine and IKONOMIKON - the memory game
polling when the server is stopped makes not much sense, but i agree that it should not produce errors.
in any case the following line change in udp-socket.lua line 118 in the M:poll function makes it work for me:
was:
if data == nil then return false end
new:
if data == nil or data== "" then return false end
Fragmenter - animated loop machine and IKONOMIKON - the memory game
I tried to build both but I cannot seem to make them see one another and communicate
yes, here is a project with qt-exported client and server:
https://www.dropbox.com/scl/fi/1dvw6tgnkq2y02aagjobj/loscdemo_exported.zip?rlkey=k2wj52irkrc0p1lg8djngr07l&dl=0
pressing M in the client will send a message which the server will catch and print the 'address' part of the message on the screen.
EDIT link:
https://www.dropbox.com/scl/fi/v29mo04mbh59c5piy11bl/loscdemo_exported.zip?rlkey=hsau5sqaofmxwvne7esuzh99x&dl=0
Likes: MoKaLux
Fragmenter - animated loop machine and IKONOMIKON - the memory game
Likes: MoKaLux
Fragmenter - animated loop machine and IKONOMIKON - the memory game
Likes: MoKaLux
Fragmenter - animated loop machine and IKONOMIKON - the memory game