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.
Diff: Socket/TCPSocketConnection.h
- Revision:
- 54:7ba8e4c218e2
- Parent:
- 47:9a89e5195721
- Child:
- 60:1f65abb842be
--- 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) {