Search found 7 matches
- Sat Feb 13, 2021 10:22 am
- Forum: Support and Development
- Topic: Client/Server UDP within a thread.
- Replies: 13
- Views: 8587
Re: Client/Server UDP within a thread.
Ok, I fixed the problem! I changed: udp:setsockname ('*', 65050) to udp:setsockname ('192.168.1.71', 65050) It works completely fine, even tried my external IP on the client and port forwarded via router and it works like a charm. No problems with the thread's pushin' n poppin' either. I'll post the...
- Wed Feb 10, 2021 7:53 pm
- Forum: Support and Development
- Topic: Client/Server UDP within a thread.
- Replies: 13
- Views: 8587
Re: Client/Server UDP within a thread.
Ok, I've made amendments to the code as you all have suggested, I'm not really sure how to go about fixing the race condition issue, if it happens or not I don't even know. On the server main file, I had incorrectly written the err line to check "msg" instead of "message", soon a...
- Wed Feb 10, 2021 2:02 pm
- Forum: Support and Development
- Topic: Client/Server UDP within a thread.
- Replies: 13
- Views: 8587
Re: Client/Server UDP within a thread.
I have a client that on a keypress it sends a single word, "fish". You're not sending only one "fish" when a key is pressed; you're sending one "fish" per frame after the key was pressed. Not sure if that's what you actually want. function love.update(dt) local message...
- Wed Feb 10, 2021 12:10 pm
- Forum: Support and Development
- Topic: Client/Server UDP within a thread.
- Replies: 13
- Views: 8587
Re: Client/Server UDP within a thread.
This post suggests that you should not pass 0 to udp:settimeout(). You haven't actually said what's (not) happening, by the way. What are you expecting your code to do? What does it (not) do instead? I’ve actually read that post, I originally didn’t have anything within the timeout, it didn’t work,...
- Wed Feb 10, 2021 11:39 am
- Forum: Support and Development
- Topic: Client/Server UDP within a thread.
- Replies: 13
- Views: 8587
Re: Client/Server UDP within a thread.
I originally had that no number in the timeout but it didn’t work like now and I added it because of something I read on the net, it still didn’t work and I’ve just left it there. I’m expecting the client to send a single word “fish” to the server and then the server to receive it, push it via threa...
- Wed Feb 10, 2021 11:12 am
- Forum: Support and Development
- Topic: Client/Server UDP within a thread.
- Replies: 13
- Views: 8587
Re: Client/Server UDP within a thread.
It’s gives me 192.168.1.71 same as client up and I’ve tried port forwarding on router, also tried local host and doesn’t make a difference. Firewall off too Cheers fd
- Tue Feb 09, 2021 9:54 pm
- Forum: Support and Development
- Topic: Client/Server UDP within a thread.
- Replies: 13
- Views: 8587
Client/Server UDP within a thread.
Hi, lurked but haven't posted nor created an account until now, I've been just playing around with love for a while getting to grips with it, I've tried to setup a BASIC server with UDP that listens only. I have a client that on a keypress it sends a single word, "fish". I've tested the th...