Disable UDP + DHCP + DNS to reduce the amount of memory usage
Fork of Socket by
Diff: Socket.cpp
- Revision:
- 11:3d83c348fb8b
- Parent:
- 10:d24738f4ef99
- Child:
- 16:2d471deff212
--- a/Socket.cpp Tue Jul 31 11:50:55 2012 +0000 +++ b/Socket.cpp Wed Aug 01 13:02:32 2012 +0000 @@ -20,7 +20,7 @@ using std::memset; -Socket::Socket() : _sock_fd(-1), _blocking(true), _timeout(3000) { +Socket::Socket() : _sock_fd(-1), _blocking(true), _timeout(1500) { } @@ -71,6 +71,10 @@ return 0; } +Socket::~Socket() { + close(); //Don't want to leak +} + TimeInterval::TimeInterval(unsigned int ms) { _time.tv_sec = ms / 1000; _time.tv_usec = (ms - (_time.tv_sec * 1000)) * 1000;