Fixed warnings
This commit is contained in:
@@ -97,7 +97,7 @@ sockinetaddr::sockinetaddr(const char* hn, const char* sn, const char* pn)
|
||||
setport(sn, pn);
|
||||
}
|
||||
|
||||
sockinetaddr::sockinetaddr (const sockinetaddr& sina)
|
||||
sockinetaddr::sockinetaddr (const sockinetaddr& sina): sockAddr()
|
||||
{
|
||||
sin_family = sockinetbuf::af_inet;
|
||||
sin_addr.s_addr = sina.sin_addr.s_addr;
|
||||
|
||||
@@ -289,6 +289,7 @@ sockbuf::sockbuf (int domain, sockbuf::type st, int proto)
|
||||
|
||||
sockbuf::sockbuf (const sockbuf& sb)
|
||||
:
|
||||
streambuf(),
|
||||
//streambuf (sb),
|
||||
rep (sb.rep)
|
||||
{
|
||||
|
||||
@@ -327,7 +327,7 @@ class isockstream: public istream
|
||||
//isockstream (): istream(rdbuf()), ios (0) {}
|
||||
|
||||
public:
|
||||
isockstream(sockbuf* sb): istream(sb), ios (sb) {}
|
||||
isockstream(sockbuf* sb): ios (sb) , istream(sb) {}
|
||||
virtual ~isockstream () {}
|
||||
|
||||
sockbuf* rdbuf () { return (sockbuf*)ios::rdbuf(); }
|
||||
@@ -339,7 +339,7 @@ class osockstream: public ostream
|
||||
protected:
|
||||
//osockstream (): ostream(static_cast<>rdbuf()), ios (0) {}
|
||||
public:
|
||||
osockstream(sockbuf* sb): ostream(sb), ios (sb) {}
|
||||
osockstream(sockbuf* sb): ios (sb) , ostream(sb) {}
|
||||
virtual ~osockstream () {}
|
||||
sockbuf* rdbuf () { return (sockbuf*)ios::rdbuf(); }
|
||||
sockbuf* operator -> () { return rdbuf(); }
|
||||
@@ -350,7 +350,7 @@ class iosockstream: public iostream
|
||||
protected:
|
||||
iosockstream ();
|
||||
public:
|
||||
iosockstream(sockbuf* sb): iostream(sb), ios (sb) {}
|
||||
iosockstream(sockbuf* sb): ios(sb), iostream(sb) {}
|
||||
virtual ~iosockstream () {}
|
||||
|
||||
sockbuf* rdbuf () { return (sockbuf*)ios::rdbuf(); }
|
||||
|
||||
Reference in New Issue
Block a user