Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of GSwifi_tcpserver by
Revision 3:7ec5f2741abf, committed 2012-10-27
- Comitter:
- gsfan
- Date:
- Sat Oct 27 00:43:28 2012 +0000
- Parent:
- 2:e22671f88297
- Child:
- 4:e6192ed22442
- Commit message:
- 1st build
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Sat Oct 27 00:40:35 2012 +0000
+++ b/main.cpp Sat Oct 27 00:43:28 2012 +0000
@@ -42,7 +42,8 @@
pc.printf("connection\r\n");
host.setName(HOST);
host.setPort(PORT);
- cid = gs.open(host, GSPROT_TCP, &onGsReceive);
+ cid = gs.open(host, GSPROT_TCP, &onGsReceive); // TCP client
+// cid = gs.open(host, GSPROT_TCP, &onGsReceive); // UDP client
if (cid < 0) {
return -1;
}
