Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/security/nss/fuzz/targets/lib/tls/   (Browser von der Mozilla Stiftung Version 136.0.1©)  Datei vom 10.2.2025 mit Größe 855 B image not shown  

Quelle  socket.h   Sprache: C

 
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
 * You can obtain one at http://mozilla.org/MPL/2.0/. */


#ifndef TLS_SOCKET_H_
#define TLS_SOCKET_H_

#include <cstdint>

#include "dummy_io.h"
#include "prinrval.h"
#include "prio.h"

namespace TlsSocket {

class DummyPrSocket : public DummyIOLayerMethods {
 public:
  DummyPrSocket(const uint8_t *buf, size_t len) : buf_(buf), len_(len) {}

  int32_t Read(PRFileDesc *fd, void *data, int32_t len) override;
  int32_t Write(PRFileDesc *fd, const void *buf, int32_t length) override;
  int32_t Recv(PRFileDesc *fd, void *buf, int32_t buflen, int32_t flags,
               PRIntervalTime to) override;

 private:
  const uint8_t *buf_;
  size_t len_;
};

}  // namespace TlsSocket

#endif  // TLS_SOCKET_H_

Messung V0.5
C=93 H=94 G=93

¤ Dauer der Verarbeitung: 0.3 Sekunden  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.