| Index: native_client_sdk/src/libraries/nacl_io/event_emitter_tcp.h
|
| diff --git a/native_client_sdk/src/libraries/nacl_io/event_emitter_tcp.h b/native_client_sdk/src/libraries/nacl_io/event_emitter_tcp.h
|
| index 99a559aeb6ee6122b93d5afdd9325d7acb25a554..728fe6123a929d786af9172d2afc4e0d52517938 100644
|
| --- a/native_client_sdk/src/libraries/nacl_io/event_emitter_tcp.h
|
| +++ b/native_client_sdk/src/libraries/nacl_io/event_emitter_tcp.h
|
| @@ -8,12 +8,17 @@
|
| #include "nacl_io/event_emitter_stream.h"
|
| #include "nacl_io/fifo_char.h"
|
|
|
| +#include <ppapi/c/pp_resource.h>
|
| +
|
| #include "sdk_util/macros.h"
|
| #include "sdk_util/scoped_ref.h"
|
|
|
| +
|
| namespace nacl_io {
|
|
|
| class EventEmitterTCP;
|
| +class MountNode;
|
| +
|
| typedef sdk_util::ScopedRef<EventEmitterTCP> ScopedEventEmitterTCP;
|
|
|
| class EventEmitterTCP : public EventEmitterStream {
|
| @@ -26,12 +31,19 @@ class EventEmitterTCP : public EventEmitterStream {
|
| uint32_t ReadOut_Locked(char* buffer, uint32_t len);
|
| uint32_t WriteOut_Locked(const char* buffer, uint32_t len);
|
|
|
| + void ConnectDone();
|
| +
|
| + PP_Resource GetAcceptedSocket_Locked();
|
| + void SetAcceptedSocket_Locked(PP_Resource socket);
|
| +
|
| + protected:
|
| virtual FIFOChar* in_fifo() { return &in_fifo_; }
|
| virtual FIFOChar* out_fifo() { return &out_fifo_; }
|
|
|
| -protected:
|
| + private:
|
| FIFOChar in_fifo_;
|
| FIFOChar out_fifo_;
|
| + PP_Resource accepted_socket_;
|
| DISALLOW_COPY_AND_ASSIGN(EventEmitterTCP);
|
| };
|
|
|
|
|