|
|
@@ -68,6 +68,12 @@ public:
|
|
|
{
|
|
|
}
|
|
|
|
|
|
+ //-----------------------------------------------------------------------------
|
|
|
+ ~TCPSocket()
|
|
|
+ {
|
|
|
+ close();
|
|
|
+ }
|
|
|
+
|
|
|
//-----------------------------------------------------------------------------
|
|
|
bool open(const NetAddress& destination, uint16_t port)
|
|
|
{
|
|
|
@@ -167,6 +173,12 @@ class TCPListener
|
|
|
{
|
|
|
public:
|
|
|
|
|
|
+ //-----------------------------------------------------------------------------
|
|
|
+ ~TCPListener()
|
|
|
+ {
|
|
|
+ close();
|
|
|
+ }
|
|
|
+
|
|
|
//-----------------------------------------------------------------------------
|
|
|
bool open(uint16_t port)
|
|
|
{
|