c# - UdpClient Send Not Working when Data is too Large -


i'm deserializing object , sending via udpclient.

if send 2 bytes of data, data received fine, if send deserialized object bytes, nothing sent.

u.send(b, b.count(), "x.x.x.x", 1452); //does not work (b.count()=3744) u.send(new byte[] { 0x00, 0x00 }, 2, "x.x.x.x", 1452); //works 

i assume size of data.

i'm trying avoid tcpclient because udp faster, work in tcp since it's streamed?

thanks.


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

jquery - javascript onscroll fade same class but with different div -