Ethernet to Serial sample question

Hi
Im using RCM5700 and Dinamic C 10.60
Im testing the ethernet_to_serial.c sample, and it is working
But I need capturta the data, from ethernet socket and serial buffer, and my question is How can I do it?, because I need chech the data, and make a Switch for some data cases,
please, how can get the data in variables, where in application can get it?
Regards

I am trying to do something very similar did you ever find out how to do this? thanks