#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 () ;
void handleReadEvent (void);
void handleWriteEvent (void);
+ int handleResolve (void);
// These are meant to be overridden.
virtual void handleClose (void) {