Hello everybody. First of all i want to say that very good compiler and tools but soo poor documentation and examples. I have a few questions (I have cortex m3 mcu,enc28j60 ethernet controller. I can use dns,tcp connection,ping without any problem):
1-When my socket type is "TCP_TYPE_CLIENT", i m connecting to http server with this code "tcp_connect (tcp_soc, IPADR, 80,0)". I can do GET request succesfully for server side. But i can not get html data which server send back. i can see server response over netmonitor. But there is no any callback with TCP_EVT_CONREQ or TCP_EVT_DATA events. So is it normal without getting response from http server for "TCP_TYPE_CLIENT" tcp sockets?One way?
2- I changed code a little to get data,i changed socket type with this TCP_TYPE_CLIENT_SERVER. im connecting to http server with get request. After completion of GET request ,my tcp socket state is going to TCP_STATE_LISTEN automatically. Is it normal? Because i did not call tcp_listen function. Anyway i couldnt get http response... And i couldnt see any information-examples about this kind of socket in the documents.
3- Finally i tested these changes.Socket type is TCP_TYPE_CLIENT_SERVER and i changed connection code ith this one "tcp_connect (tcp_soc, IPADR, 80,90)".Again my tcp socket state is going to TCP_STATE_LISTEN automatically without http response data.But when i make http request from my firefox browser to my cm3 board, i can get http GET request.