SimpleSocket 1.0 examples
Dependencies: EthernetNetIf SimpleSocket 1.0 mbed
Diff: main.cpp
- Revision:
- 17:50c0e9c5ca79
- Parent:
- 15:ae9aff693b07
- Child:
- 21:a3cf1f055a4d
diff -r c61fc549bb01 -r 50c0e9c5ca79 main.cpp --- a/main.cpp Fri Aug 19 11:23:38 2011 +0000 +++ b/main.cpp Thu Sep 01 04:34:43 2011 +0000 @@ -5,7 +5,7 @@ void echoserver(int port); void echoclient(char *server, int port, char *message); void httpclient(char *url); -void proxyserver(int port, char *target, int targetport); +void relayserver(int port, char *target, int targetport); int main() { EthernetNetIf eth; @@ -13,7 +13,7 @@ if (ethErr) error("Error %d in setup.\n", ethErr); //echoserver(7777); - //echoclient("10.0.3.20", 7777, "Hello world\n"); + //echoclient("10.0.3.17", 7777, "Hello world\n"); //httpclient("http://www.senio.co.jp/index.html"); - proxyserver(8888, "10.0.3.20", 7777); + relayserver(8888, "10.0.3.17", 1234); } \ No newline at end of file