reverted HTTPCLient debug back to defaulted off
Fork of MTS-Socket by
Socket.cpp
- Committer:
- Mike Fiore
- Date:
- 2014-05-19
- Revision:
- 1:096f484f3ae6
- Child:
- 18:119547e27ff1
File content as of revision 1:096f484f3ae6:
#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() { return (ip->close()) ? 0 : -1; } Socket::~Socket() { close(); //Don't want to leak }