Added type names to events.

This commit is contained in:
rakshasa
2012-02-14 19:37:21 +09:00
parent 7fe2fb1584
commit 45d2d0bd49
2 changed files with 5 additions and 1 deletions
+3 -1
View File
@@ -50,6 +50,8 @@ public:
CurlSocket(int fd, CurlStack* stack) : m_stack(stack) { m_fileDesc = fd; }
~CurlSocket();
const char* type_name() const { return "curl"; }
void close();
static int receive_socket(void* easy_handle, curl_socket_t fd, int what, void* userp, void* socketp);
@@ -62,7 +64,7 @@ private:
virtual void event_write();
virtual void event_error();
CurlStack* m_stack;
CurlStack* m_stack;
};
}
+2
View File
@@ -59,6 +59,8 @@ public:
SCgi() : m_logFd(-1) {}
virtual ~SCgi();
const char* type_name() const { return "scgi"; }
void open_port(void* sa, unsigned int length, bool dontRoute);
void open_named(const std::string& filename);