reverted HTTPCLient debug back to defaulted off

Dependencies:   HTTPClient-SSL

Fork of MTS-Socket by Keith Ruenheck

Committer:
JonB
Date:
Fri Mar 11 16:46:34 2016 +0000
Revision:
51:d4ac1662a2df
Parent:
19:f9a0041c4501
reverted HTTPCLient debug back to defaulted off

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Mike Fiore 1:096f484f3ae6 1 #include "Socket.h"
Mike Fiore 1:096f484f3ae6 2 #include <cstring>
Mike Fiore 1:096f484f3ae6 3 #include "Transport.h"
Mike Fiore 1:096f484f3ae6 4
Mike Fiore 1:096f484f3ae6 5 Socket::Socket() : _blocking(true), _timeout(1500) {
Mike Fiore 1:096f484f3ae6 6 ip = Transport::getInstance();
Mike Fiore 1:096f484f3ae6 7 }
Mike Fiore 1:096f484f3ae6 8
Mike Fiore 1:096f484f3ae6 9 void Socket::set_blocking(bool blocking, unsigned int timeout) {
Mike Fiore 1:096f484f3ae6 10 _blocking = blocking;
Mike Fiore 1:096f484f3ae6 11 _timeout = timeout;
Mike Fiore 1:096f484f3ae6 12 }
Mike Fiore 1:096f484f3ae6 13
Vanger 19:f9a0041c4501 14 int Socket::close(bool shutdown) {
Vanger 19:f9a0041c4501 15 return (ip->close(shutdown)) ? 0 : -1;
Mike Fiore 1:096f484f3ae6 16 }
Mike Fiore 1:096f484f3ae6 17
Mike Fiore 1:096f484f3ae6 18 Socket::~Socket() {
Vanger 18:119547e27ff1 19 close(true); //Don't want to leak
Mike Fiore 1:096f484f3ae6 20 }