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

        m_bytes = bytes;
    }
Ejemplo n.º 2
0
 size_t TcpClient::write(const ByteArray& bytes)
 {
     return send(bytes.getBuffer(), bytes.getCapacity());
 }