cancel
Showing results for 
Search instead for 
Did you mean: 

Nitche TCP/IP lib or uIp

jarroyo9
Associate
Posted on April 07, 2009 at 19:04

Nitche TCP/IP lib or uIp

2 REPLIES 2
jarroyo9
Associate
Posted on May 17, 2011 at 09:57

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 ]

st3
Associate II
Posted on May 17, 2011 at 09:57

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! :-[