예제 #1
0
    IpAddressV6::IpAddressV6(const ByteArray& bytes) :
        IpAddress(16, true)
    {
        Expect(bytes.getCapacity() == 16, Throw(InvalidParameter, "Invalid buffer size"));

        m_bytes = bytes;
    }
예제 #2
0
파일: TcpClient.cpp 프로젝트: siliace/Bull
 size_t TcpClient::write(const ByteArray& bytes)
 {
     return send(bytes.getBuffer(), bytes.getCapacity());
 }