I'm building a UDP server/client program using UdpClient in C#.
Its 'send' (byte , int length, IPAddress dest, int port) method allows me to send bytes to the other side. However, what I really want to do is I want to send multiple pieces of data to the other side. I therefore would like to have a data struture which contains the data which I would like to send and then send this data, thus I need to explicitly construct the UDP payload myself. Therefore, the payload must be split into multiple data items to send to the other side.
I've looked over books and documentation but can't seem to find the answer?
Therefore, I was wondering how you would implement this?
Thanks in advance for your help!