Lines Matching defs:SyncSocket
16 const SyncSocket::Handle SyncSocket::kInvalidHandle = -1;
18 SyncSocket::SyncSocket() : handle_(kInvalidHandle) {
21 SyncSocket::~SyncSocket() {
26 bool SyncSocket::CreatePair(SyncSocket* socket_a, SyncSocket* socket_b) {
31 SyncSocket::Handle SyncSocket::UnwrapHandle(
32 const SyncSocket::TransitDescriptor& descriptor) {
33 // TODO(xians): Still unclear how NaCl uses SyncSocket.
36 return SyncSocket::kInvalidHandle;
39 bool SyncSocket::PrepareTransitDescriptor(
41 SyncSocket::TransitDescriptor* descriptor) {
42 // TODO(xians): Still unclear how NaCl uses SyncSocket.
48 bool SyncSocket::Close() {
57 size_t SyncSocket::Send(const void* buffer, size_t length) {
62 size_t SyncSocket::Receive(void* buffer, size_t length) {
67 size_t SyncSocket::ReceiveWithTimeout(void* buffer, size_t length, TimeDelta) {
72 size_t SyncSocket::Peek() {
81 : SyncSocket(handle) {
85 return SyncSocket::Send(buffer, length);
89 return SyncSocket::Close();
95 return SyncSocket::CreatePair(socket_a, socket_b);