Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(571)

Side by Side Diff: native_client_sdk/src/libraries/nacl_io/socket/udp_node.h

Issue 304373008: Add support for modifying TCP and UDP socket buffer size in nacl_io (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: in socket_test.cc, change accept() to ki_accept() per review comments Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef LIBRARIES_NACL_IO_SOCKET_UDP_NODE_H_ 5 #ifndef LIBRARIES_NACL_IO_SOCKET_UDP_NODE_H_
6 #define LIBRARIES_NACL_IO_SOCKET_UDP_NODE_H_ 6 #define LIBRARIES_NACL_IO_SOCKET_UDP_NODE_H_
7 7
8 #include "nacl_io/ossocket.h" 8 #include "nacl_io/ossocket.h"
9 #ifdef PROVIDES_SOCKET_API 9 #ifdef PROVIDES_SOCKET_API
10 10
(...skipping 17 matching lines...) Expand all
28 virtual UdpEventEmitter* GetEventEmitter(); 28 virtual UdpEventEmitter* GetEventEmitter();
29 29
30 virtual void QueueInput(); 30 virtual void QueueInput();
31 virtual void QueueOutput(); 31 virtual void QueueOutput();
32 32
33 virtual Error Bind(const struct sockaddr* addr, socklen_t len); 33 virtual Error Bind(const struct sockaddr* addr, socklen_t len);
34 virtual Error Connect(const HandleAttr& attr, 34 virtual Error Connect(const HandleAttr& attr,
35 const struct sockaddr* addr, 35 const struct sockaddr* addr,
36 socklen_t len); 36 socklen_t len);
37 37
38 virtual Error SetSockOpt(int lvl,
39 int optname,
40 const void* optval,
41 socklen_t len);
42
38 protected: 43 protected:
39 virtual Error Recv_Locked(void* buf, 44 virtual Error Recv_Locked(void* buf,
40 size_t len, 45 size_t len,
41 PP_Resource* addr, 46 PP_Resource* addr,
42 int* out_len); 47 int* out_len);
43 48
44 virtual Error Send_Locked(const void* buf, 49 virtual Error Send_Locked(const void* buf,
45 size_t len, 50 size_t len,
46 PP_Resource addr, 51 PP_Resource addr,
47 int* out_len); 52 int* out_len);
48 53
49 ScopedUdpEventEmitter emitter_; 54 ScopedUdpEventEmitter emitter_;
50 }; 55 };
51 56
52 } // namespace nacl_io 57 } // namespace nacl_io
53 58
54 #endif // PROVIDES_SOCKET_API 59 #endif // PROVIDES_SOCKET_API
55 #endif // LIBRARIES_NACL_IO_SOCKET_UDP_NODE_H_ 60 #endif // LIBRARIES_NACL_IO_SOCKET_UDP_NODE_H_
OLDNEW
« no previous file with comments | « native_client_sdk/src/libraries/nacl_io/socket/tcp_node.cc ('k') | native_client_sdk/src/libraries/nacl_io/socket/udp_node.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698