]> git.mxchange.org Git - simgear.git/blobdiff - simgear/io/sg_netChannel.hxx
Fix windows build
[simgear.git] / simgear / io / sg_netChannel.hxx
index 5c7d19577fe0b3ce907a1e32c17c7bbb0c78dd4f..0ccc8607a7ba259ca03f968b2eeccc1eef2a107b 100644 (file)
 #define SG_NET_CHANNEL_H
 
 #include <simgear/io/raw_socket.hxx>
-#include <simgear/structure/SGSharedPtr.hxx>
-
+#include <string>
 
 namespace simgear
 {
 
-class HostLookup;
-
 class NetChannel : public Socket
 {
-  bool closed, connected, accepting, write_blocked, should_delete ;
+  bool closed, connected, accepting, write_blocked, should_delete, resolving_host ;
   NetChannel* next_channel ;
-  SGSharedPtr<HostLookup> host_lookup ;
+  std::string host;
   int port;
   
   friend bool netPoll (unsigned int timeout);
 
-  void doConnect();
 public:
 
   NetChannel () ;
@@ -103,6 +99,7 @@ public:
   
   void handleReadEvent (void);
   void handleWriteEvent (void);
+  int handleResolve (void);
   
 // These are meant to be overridden.
   virtual void handleClose (void) {