Hi Mark,
I have an application that uses TCP, and UDP communication. I receive 4 packets of data of size 305 bytes, right after each other, and can have this for TCP and UDP.
I have the following defines:
#define NUMBER_OF_TX_BUFFERS_IN_ETHERNET_DEVICE 2 // allocate 2 buffers for transmission
#define NUMBER_OF_RX_BUFFERS_IN_ETHERNET_DEVICE 6 // allocate 6 (full) buffers for reception
What size are these buffers?
Also, In my listner routine as follows:
int fnUDP(USOCKET SocketNr, unsigned char ucEvent, unsigned char *ucIP, unsigned short usPortNr, unsigned char *data, unsigned short usLength)
I parse the data of the packet received. Am I better copying the data straight away to another buffer before parsing? Before the listner routine is called, is the frame copied to a buffer and the pointer (*data in my case) pointing to the buffer?
Regards
Neil