• Home
  • Raw
  • Download

Lines Matching +full:asio +full:- +full:1

2  * Copyright (c) 2011-2015, Intel Corporation
8 * 1. Redistributions of source code must retain the above copyright notice, this
33 #include <asio.hpp>
105 std::vector<char> string(uiSize + 1); in readString()
110 // NULL-terminate string in readString()
126 return getMessageDataSize() - _uiIndex; in getRemainingDataSize()
132 asio::ip::tcp::socket &asioSocket = socket.get(); in serialize()
135 asio::error_code ec; in serialize()
149 if (!asio::write(asioSocket, asio::buffer(&uiSyncWord, sizeof(uiSyncWord)), ec)) { in serialize()
151 if (ec == asio::error::eof) { in serialize()
160 if (!asio::write(asioSocket, asio::buffer(&uiSize, sizeof(uiSize)), ec)) { in serialize()
167 if (!asio::write(asioSocket, asio::buffer(&_ucMsgId, sizeof(_ucMsgId)), ec)) { in serialize()
174 if (!asio::write(asioSocket, asio::buffer(mData), ec)) { in serialize()
183 if (!asio::write(asioSocket, asio::buffer(&ucChecksum, sizeof(ucChecksum)), ec)) { in serialize()
192 asio::error_code ec; in serialize()
194 if (!asio::read(asioSocket, asio::buffer(&uiSyncWord, sizeof(uiSyncWord)), ec)) { in serialize()
196 if (ec == asio::error::eof) { in serialize()
212 if (!asio::read(asioSocket, asio::buffer(&uiSize, sizeof(uiSize)), ec)) { in serialize()
218 if (!asio::read(asioSocket, asio::buffer(&_ucMsgId, sizeof(_ucMsgId)), ec)) { in serialize()
226 allocateData(uiSize - sizeof(_ucMsgId)); in serialize()
229 if (!asio::read(asioSocket, asio::buffer(mData), ec)) { in serialize()
237 if (!asio::read(asioSocket, asio::buffer(&ucChecksum, sizeof(ucChecksum)), ec)) { in serialize()