X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/0fdb3f546ec7cb206f664f5240ac6ba3e52e8832..d1d65fe3185a6c2178bbca46e9f409bd8d747c7f:/stglibs/srvconf.lib/netunit.cpp diff --git a/stglibs/srvconf.lib/netunit.cpp b/stglibs/srvconf.lib/netunit.cpp index baf02004..182d338c 100644 --- a/stglibs/srvconf.lib/netunit.cpp +++ b/stglibs/srvconf.lib/netunit.cpp @@ -45,8 +45,6 @@ using namespace STG; namespace { -const std::string::size_type MAX_XML_CHUNK_LENGTH = 2048; - struct ReadState { bool final; @@ -343,7 +341,7 @@ int NETTRANSACT::TxData(const std::string & text) { STG::ENCRYPT_STREAM stream(password, TxCrypto, this); stream.Put(text.c_str(), text.length() + 1, true); -if (!stream.isOk()) +if (!stream.IsOk()) { errorMsg = SEND_DATA_ERROR; return st_send_fail; @@ -367,7 +365,7 @@ while (!state.final) return st_recv_fail; } stream.Put(buffer, res, res == 0); - if (!stream.isOk()) + if (!stream.IsOk()) return st_xml_parse_error; }