reverted HTTPCLient debug back to defaulted off

Dependencies:   HTTPClient-SSL

Fork of MTS-Socket by Keith Ruenheck

Socket.cpp

Committer:
Vanger
Date:
2014-10-21
Revision:
19:f9a0041c4501
Parent:
18:119547e27ff1

File content as of revision 19:f9a0041c4501:

#include "Socket.h"
#include <cstring>
#include "Transport.h"

Socket::Socket() : _blocking(true), _timeout(1500) {
    ip = Transport::getInstance();
}

void Socket::set_blocking(bool blocking, unsigned int timeout) {
    _blocking = blocking;
    _timeout = timeout;
}

int Socket::close(bool shutdown) {
    return (ip->close(shutdown)) ? 0 : -1;
}

Socket::~Socket() {
    close(true); //Don't want to leak
}