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
Post a Comment