X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=simgear%2Fio%2Fsg_netChannel.hxx;h=0ccc8607a7ba259ca03f968b2eeccc1eef2a107b;hb=09b0dd2b2d7d934c1d4059cb2cbd3b4fcbb7872f;hp=5c7d19577fe0b3ce907a1e32c17c7bbb0c78dd4f;hpb=878b504f8e044bc0e59903caa8641492421b76d8;p=simgear.git diff --git a/simgear/io/sg_netChannel.hxx b/simgear/io/sg_netChannel.hxx index 5c7d1957..0ccc8607 100644 --- a/simgear/io/sg_netChannel.hxx +++ b/simgear/io/sg_netChannel.hxx @@ -54,24 +54,20 @@ #define SG_NET_CHANNEL_H #include -#include - +#include 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 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) {