3 #include "wvstreamclone.h"
6 #define WIN32_LEAN_AND_MEAN
10 #define WM_SELECT (WM_USER)
11 #define WM_DONESELECT (WM_USER+1)
19 static DWORD Initialize();
23 typedef std::map<SOCKET, long> SocketEventsMap;
24 typedef std::map<HWND, WvWinStreamClone *> WndStreamMap;
25 typedef std::vector<HWND> WndVector;
29 static WndVector s_wndpool;
30 static WndStreamMap s_wndmap;
31 const static UINT_PTR TIMER_ID = 12345;
32 static LRESULT CALLBACK WndProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
38 bool m_pending_callback;
39 bool m_select_in_progress;
43 void select_set(SocketEventsMap &sockmap, fd_set *set,
long event );
44 void select_callback(SOCKET socket,
int event,
int error);
46 void free_wnd(HWND w);