SNICInterface for ThingPlug Example
Dependents: ThingPlug_WiFi_Example ThingPlug_WiFi_Example_2
Fork of SNICInterface by
Diff: Socket/Socket.cpp
- Revision:
- 33:33f1bc919486
- Parent:
- 32:ae95309643aa
- Child:
- 34:8c3527b8f44e
--- a/Socket/Socket.cpp Fri May 30 08:30:40 2014 +0000 +++ b/Socket/Socket.cpp Tue Jun 03 08:53:07 2014 +0000 @@ -30,6 +30,7 @@ #include "Socket.h" #include <cstring> +char gSOCKET_SEND_BUF[2048] __attribute__((section("AHBSRAM1"))); Socket::Socket() { mSocketID = -1; @@ -244,3 +245,8 @@ return ip_addr; } + +char *Socket::getSocketSendBuf() +{ + return gSOCKET_SEND_BUF; +}