 Chromium Code Reviews
 Chromium Code Reviews Issue 23498015:
  [NaCl SDK] Support non blocking TCP/UDP  (Closed) 
  Base URL: svn://svn.chromium.org/chrome/trunk/src
    
  
    Issue 23498015:
  [NaCl SDK] Support non blocking TCP/UDP  (Closed) 
  Base URL: svn://svn.chromium.org/chrome/trunk/src| Index: native_client_sdk/src/libraries/nacl_io/mount_node_tcp.h | 
| diff --git a/native_client_sdk/src/libraries/nacl_io/mount_node_tcp.h b/native_client_sdk/src/libraries/nacl_io/mount_node_tcp.h | 
| index 860e93bba1f1105a178f277eb6f4023aa9874b93..4ba9f3f4f558a05b84a6e262597e597d4fb26457 100644 | 
| --- a/native_client_sdk/src/libraries/nacl_io/mount_node_tcp.h | 
| +++ b/native_client_sdk/src/libraries/nacl_io/mount_node_tcp.h | 
| @@ -11,6 +11,7 @@ | 
| #include <ppapi/c/pp_resource.h> | 
| #include <ppapi/c/ppb_tcp_socket.h> | 
| +#include "nacl_io/event_emitter_tcp.h" | 
| #include "nacl_io/mount_node.h" | 
| #include "nacl_io/mount_node_socket.h" | 
| @@ -21,6 +22,7 @@ class MountNodeTCP : public MountNodeSocket { | 
| explicit MountNodeTCP(Mount* mount); | 
| virtual Error Init(int flags); | 
| + virtual EventEmitter* GetEventEmitter(); | 
| virtual Error Bind(const struct sockaddr* addr, socklen_t len); | 
| virtual Error Connect(const struct sockaddr* addr, socklen_t len); | 
| @@ -42,7 +44,9 @@ class MountNodeTCP : public MountNodeSocket { | 
| int* out_len); | 
| protected: | 
| - TCPSocketInterface* TCPSocket(); | 
| + ScopedEventEmitterTCP emitter_; | 
| + friend class UDPSendWork; | 
| 
binji
2013/09/15 22:18:58
It should be TCP*Work, but if it compiles it isn't
 
noelallen1
2013/09/17 21:21:54
Not needed, I've been removing friends all over.
 | 
| + friend class UDPRecvWork; | 
| }; |