454

Fork of C027_Support by Umar Naeem

Revision:
54:7ba8e4c218e2
Parent:
47:9a89e5195721
Child:
60:1f65abb842be
diff -r 8071747a7cb3 -r 7ba8e4c218e2 Socket/TCPSocketConnection.h
--- a/Socket/TCPSocketConnection.h	Mon May 12 07:39:29 2014 +0000
+++ b/Socket/TCPSocketConnection.h	Mon May 12 13:00:27 2014 +0000
@@ -21,6 +21,10 @@
     */
     int connect(const char* host, const int port)
     {
+        _mdm = MDMParser::getInstance();
+        if (_mdm == NULL)
+            return -1;
+            
         if (_socket < 0) {
             _socket = _mdm->socketSocket(MDMParser::IPPROTO_TCP);
             if (_socket < 0) {