cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
kumarkk
Participant
Participant
3,352 Views
Registered: ‎07-25-2016

How to read Data received from EThernet through TCP/IP

I am running Microblaze server with Nexys 4 DDR board. will any body explain me wherer data received from PC is stored and how to read that data. Since this is first time im using Microblaze i don't able to understand much of code return in microblaze server. I'm using echo server example of Microblaze.

 

Regards,

Kumar 

0 Kudos
2 Replies
muzaffer
Teacher
Teacher
3,320 Views
Registered: ‎03-31-2012

@kumarkk this can be a complicated question. Do you have a tcp/ip stack (say lwip) installed and running on your MB setup? If yes, normally you should just create a socket, connect to the server's address and recv on the socket with a pointer to a memory and the received data will appear in the memory.

- Please mark the Answer as "Accept as solution" if information provided is helpful.
Give Kudos to a post which you think is helpful and reply oriented.
0 Kudos
kumarkk
Participant
Participant
3,296 Views
Registered: ‎07-25-2016

Hello @muzaffer

 

I have gone through echo.c code which contain pbuf as buffer to store data. Pbuf is structure which hold data so inside that structure their is pointer payload which hold data received. how to read data from that buffer.

please check image for more detailed description.

 

payload.JPG
0 Kudos