X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=simgear%2Fio%2Fraw_socket.hxx;h=9450e9eb8729cefe97caeefbfc445172e3a3513d;hb=1cb9a79fd48ce6151f6a2cf8d07ef23e002a81b1;hp=6ae529f285e9f5259c0c57a4701beacb6c1c54e0;hpb=50e226a1467d53d9bcb2987d0b6cfb58beb66c9c;p=simgear.git diff --git a/simgear/io/raw_socket.hxx b/simgear/io/raw_socket.hxx index 6ae529f2..9450e9eb 100644 --- a/simgear/io/raw_socket.hxx +++ b/simgear/io/raw_socket.hxx @@ -40,15 +40,22 @@ namespace simgear */ class IPAddress { - struct sockaddr_in* addr; + mutable struct sockaddr_in* addr; public: IPAddress () : addr(0) {} IPAddress ( const char* host, int port ) ; ~IPAddress(); + static bool lookupNonblocking(const char* host, IPAddress& addr); + + IPAddress( const IPAddress& other ); + const IPAddress& operator=(const IPAddress& other); + void set ( const char* host, int port ) ; const char* getHost () const ; unsigned int getPort() const ; + void setPort(int port); + unsigned int getIP () const ; unsigned int getFamily () const ; static const char* getLocalHost () ; @@ -66,7 +73,7 @@ public: class Socket { int handle ; - + public: Socket () ;