mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2026-12-01 08:07:08 +01:00
Update POCO library.
This commit is contained in:
1 parent
8d15f4b6e9
commit
233fc103f9
2521 files changed
+257092
-72789
No files matched your search
+4
-4
@@ -31,7 +31,7 @@ int main(int argc, char** argv)
|
||||
{
|
||||
const std::string HOST("dict.org");
|
||||
const unsigned short PORT = 2628;
|
||||
|
||||
|
||||
if (argc != 2)
|
||||
{
|
||||
Path p(argv[0]);
|
||||
@@ -40,13 +40,13 @@ int main(int argc, char** argv)
|
||||
return 1;
|
||||
}
|
||||
std::string term(argv[1]);
|
||||
|
||||
|
||||
try
|
||||
{
|
||||
SocketAddress sa(HOST, PORT);
|
||||
StreamSocket sock(sa);
|
||||
SocketStream str(sock);
|
||||
|
||||
|
||||
str << "DEFINE ! " << term << "\r\n" << std::flush;
|
||||
str << "QUIT\r\n" << std::flush;
|
||||
|
||||
@@ -58,6 +58,6 @@ int main(int argc, char** argv)
|
||||
std::cerr << exc.displayText() << std::endl;
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in new issue
Block a user