Thank you guys for all your answers and suggestions!
I really appreciate!
Sorry about the screenshots, it was the only way to make the packets "human 
readable"
How could you code that kind of implementation based on your knowledge and 
skill?
I have noone of these in golang ahah as I said, im too newbie to do all 
this alone!
Also not working examples ( if they throw an error I don't care, based on 
my code are fine!
These examples could rapresent a great start from me!(:


Il giorno martedì 29 giugno 2021 alle 19:00:06 UTC+2 
jesper.lou...@gmail.com ha scritto:

> On Tue, Jun 29, 2021 at 5:24 PM LetGo <non3...@gmail.com> wrote:
>
>> Thanks for the answer! (:
>> In python it was straightforward to implement and it works like a charm. 
>> It sends small packets with delay between each other without even care if 
>> it is UDP or TCP:
>>
>>
> Beware! This is an assumption that will break at some point in time. 
> Currently the delay and the OS makes things straightforward for you. But 
> TCP doesn't behave like you expect, and you are very likely to run into 
> trouble if the machine, the network, or the system starts taking additional 
> load.
>
> You need to frame the data. A good way is to use 4 bytes as a size 
> (unsigned 32 bit integer), followed by a payload of that size. You can then 
> avoid this becoming an uncontrolled explosion in your software at a later 
> date. You can also close connections early if too large messages get sent, 
> etc.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/6b283ccb-a2d6-442f-a179-64fdc18465e4n%40googlegroups.com.

Reply via email to