G
Guest
Hi,
I have this problem in my UDP broadcasting, im a newbie in UDP,
any help at all would be very much appreciated. I have a working UDP
broadcast that sends and recieves without any problem. I tried sending a
message 30 times in a loop simultaneously and i recieved all of them without
any problem. But last night i tried sending 64kb message in the same loop for
30 times and all i recieved was 5 messages out of 30, im not sure if i missed
the other 25 messages or most of the messages sent were not finished.
So i tried, placing a thread.sleep(500) every before it sends a
message and everything worked out fine again, i recieved all the messages
without any problem. The problem now is that i cannot risk having a
thread.sleep(500) around as it would affect the whole system. Is there
anything i can do to recieve them completely without having to use sleep?
Can anyone suggest on something? Sample code would really really help
but anything you can suggest is good enough, i just desperately need this
one... Thank you so much in advance!!!
I have this problem in my UDP broadcasting, im a newbie in UDP,
any help at all would be very much appreciated. I have a working UDP
broadcast that sends and recieves without any problem. I tried sending a
message 30 times in a loop simultaneously and i recieved all of them without
any problem. But last night i tried sending 64kb message in the same loop for
30 times and all i recieved was 5 messages out of 30, im not sure if i missed
the other 25 messages or most of the messages sent were not finished.
So i tried, placing a thread.sleep(500) every before it sends a
message and everything worked out fine again, i recieved all the messages
without any problem. The problem now is that i cannot risk having a
thread.sleep(500) around as it would affect the whole system. Is there
anything i can do to recieve them completely without having to use sleep?
Can anyone suggest on something? Sample code would really really help
but anything you can suggest is good enough, i just desperately need this
one... Thank you so much in advance!!!