#define SG_NET_CHANNEL_H
#include <simgear/io/raw_socket.hxx>
+#include <string>
namespace simgear
{
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 ;
+ std::string host;
+ int port;
friend bool netPoll (unsigned int timeout);
void handleReadEvent (void);
void handleWriteEvent (void);
+ int handleResolve (void);
// These are meant to be overridden.
virtual void handleClose (void) {