Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

streams.h

Go to the documentation of this file.
00001 #pragma once 00002 #include <winsock2.h> 00003 00004 struct socket_fd_pair 00005 { 00006 SOCKET socket; 00007 int fd; 00008 }; 00009 00010 class SocketFromFDMaker 00011 { 00012 protected: 00013 HANDLE m_hThread; 00014 socket_fd_pair m_pair; 00015 SOCKET m_socket; 00016 bool m_wait; 00017 public: 00018 SocketFromFDMaker(int fd, LPTHREAD_START_ROUTINE lpt, bool wait_for_termination = false); 00019 ~SocketFromFDMaker(); 00020 SOCKET GetSocket() { return m_socket; } 00021 }; 00022 DWORD WINAPI fd2socket_fwd(LPVOID lpThreadParameter); 00023 DWORD WINAPI socket2fd_fwd(LPVOID lpThreadParameter); 00024

Generated on Tue Oct 5 01:09:19 2004 for WvStreams by doxygen 1.3.7