2009-04-07 10:04 AM
2011-05-17 12:57 AM
Has anybody an example of sending and receiving raw data with this library?
I'm not an expert in TCP comunications and I'd like to send and receive data just doing like an echo client-server application: - Create a socket. - Conecting and sending raw information. - Receive an information. - Close socket. The same in the other side (server). Thanks a lot. [ This message was edited by: j.arroyo on 21-01-2009 09:15 ]2011-05-17 12:57 AM
A bit late, I know, but I've only just started playing with the STR9 and InterNiche...
Quote:
Has anybody an example of sending and receiving raw data with this library?
That is, in fact, just what the ''HTTP Listener'' example does! :D It just listens on a socket and, if it receives anything, does a string compare on the raw data to see if it contained the text ''GET'' or ''POST''. If it did contain either ''GET'' or ''POST'', then it just sends some ''raw'' data back to the originating IP address (the ''raw'' data just happens to be the text of a simple HTML page). Hope that helps someone, even if it is too late for the OP! :-[