vibe-core/tests/vibe.core.net.1452/source/app.d
2016-10-24 08:22:49 +02:00

24 lines
276 B
D

import vibe.core.core;
import vibe.core.net;
import core.time : msecs;
class C {
TCPConnection m_conn;
this()
{
m_conn = connectTCP("example.com", 443);
}
~this()
{
m_conn.close();
}
}
void main()
{
auto c = new C;
// let druntime collect c during shutdown
}