trying to collect 1261 UDP packet in 2D Char array using recvfrom function
define RxBuffSize 1514
define TotalPacket 1261
char RxBuff[RxBuffSize] = {0};
and the code i am trying to use is:
for (Count =0; Count <= TotalPacket; Count++)
{
recvfrom(sock, RxBuff[Count],RxBuffSize,0,(struct sockaddr *)&Sender_addr, &Sender_addrlen);
}
or no idea how to start just wanted to store all 1261 packets into RxBuff so that I can access packet data by its packet number for getting the data from packet by its packet number.
printf("%x ",Payload[packetno][data]);