I am making an application in C#. In that application I am listening data on particular port. But while listening data on that port, I am getting that packet data but I also want to listen header of that packet data (means sequence number,source port,destination port etc). The code for listening data is as:
UdpClient client = null;
IPEndPoint ipep = null;
client = new UdpClient(9000);
ipep = new IPEndPoint(IPAddress.Any,9000);
byte[] data= = client.Receive(ref ipep);