a library to use GPRS like ethernet or wifi, which makes it possible to connect to the internet with your GPRS module

Dependencies:   BufferedSerial

Dependents:   ThinkSpeak_Test roam_v1 roam_v2 finalv3

Fork of GPRSInterface by wei zou

Revision:
1:7298a7950f65
Parent:
0:8ccbd963e74d
Child:
3:acf2ea413e72
diff -r 8ccbd963e74d -r 7298a7950f65 Socket/Socket.cpp
--- a/Socket/Socket.cpp	Tue Feb 25 02:52:48 2014 +0000
+++ b/Socket/Socket.cpp	Tue Feb 25 05:56:19 2014 +0000
@@ -22,22 +22,17 @@
  
 #include "Socket.h"
 
-Socket::Socket() : _sock_fd(-1),_blocking(true), _timeout(1500) {
+Socket::Socket() : _sock_fd(-1) {
     gprs = GPRS::getInstance();
     if (gprs == NULL) {
-        error("Socket constructor error: no WIZ8820io instance available!\r\n");
+        error("Socket constructor error: no GPRS instance available!\r\n");
     }       
 }
 
-void Socket::set_blocking(bool blocking, unsigned int timeout) {
-    _blocking = blocking;
-    _timeout = timeout;
-}
-
 int Socket::close() {
     return (gprs->close(_sock_fd)) ? 0 : -1;
 }
 
 Socket::~Socket() {
-    close(); //Don't want to leak
+    close();
 }