5 #ifndef PPAPI_CPP_PRIVATE_TCP_SOCKET_PRIVATE_H_
6 #define PPAPI_CPP_PRIVATE_TCP_SOCKET_PRIVATE_H_
8 #include "ppapi/c/pp_stdint.h"
9 #include "ppapi/c/private/ppb_tcp_socket_private.h"
10 #include "ppapi/cpp/pass_ref.h"
11 #include "ppapi/cpp/private/x509_certificate_private.h"
12 #include "ppapi/cpp/resource.h"
16 class CompletionCallback;
56 #endif // PPAPI_CPP_PRIVATE_TCP_SOCKET_PRIVATE_H_
bool GetRemoteAddress(PP_NetAddress_Private *remote_addr)
int32_t SetOption(PP_TCPSocketOption_Private name, const Var &value, const CompletionCallback &callback)
int32_t Connect(const char *host, uint16_t port, const CompletionCallback &callback)
int32_t Read(char *buffer, int32_t bytes_to_read, const CompletionCallback &callback)
int32_t Write(const char *buffer, int32_t bytes_to_write, const CompletionCallback &callback)
X509CertificatePrivate GetServerCertificate()
static bool IsAvailable()
bool GetLocalAddress(PP_NetAddress_Private *local_addr)
TCPSocketPrivate(const InstanceHandle &instance)
A generic type used for passing data types between the module and the page.
int32_t SSLHandshake(const char *server_name, uint16_t server_port, const CompletionCallback &callback)
int32_t ConnectWithNetAddress(const PP_NetAddress_Private *addr, const CompletionCallback &callback)
A reference counted module resource.
bool AddChainBuildingCertificate(const X509CertificatePrivate &cert, bool trusted)