ed_SendDataExt problem

I have a problem with sending data by ed_SendDataExt.

After connecting i always receive ED_WAITING_FOR_DATA but after that when i try to send some data to server, i have a problem. Any data will receive by server. Could anybody show me a way how to do it.
Thanks a lot for any example.