#include <sstream>
#include <string>
#include "dns.h"
+#include <deque>
/**
* States which a socket may be in
/**
* Error types which a socket may exhibit
*/
-enum InspSocketError { I_ERR_TIMEOUT, I_ERR_SOCKET, I_ERR_CONNECT, I_ERR_BIND, I_ERR_RESOLVE };
+enum InspSocketError { I_ERR_TIMEOUT, I_ERR_SOCKET, I_ERR_CONNECT, I_ERR_BIND, I_ERR_RESOLVE, I_ERR_WRITE };
/**
* InspSocket is an extendable socket class which modules
/**
* The output buffer for this socket
*/
- std::string Buffer;
+ std::deque<std::string> outbuffer;
/**
* The IP address being connected
/** Flushes the write buffer
*/
- void FlushWriteBuffer();
+ bool FlushWriteBuffer();
void SetQueues(int nfd);