OLD | NEW |
1 // Copyright (c) 2012 The Native Client Authors. All rights reserved. | 1 // Copyright (c) 2012 The Native Client 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 PACKAGES_LIBRARIES_NACL_MOUNTS_NET_TCP_SERVER_SOCKET_H_ | 5 #ifndef PACKAGES_LIBRARIES_NACL_MOUNTS_NET_TCP_SERVER_SOCKET_H_ |
6 #define PACKAGES_LIBRARIES_NACL_MOUNTS_NET_TCP_SERVER_SOCKET_H_ | 6 #define PACKAGES_LIBRARIES_NACL_MOUNTS_NET_TCP_SERVER_SOCKET_H_ |
7 | 7 |
8 #include <string.h> | 8 #include <string.h> |
9 #ifndef __GLIBC__ | 9 #ifndef __GLIBC__ |
10 #include "../net/newlib_compat.h" | 10 #include "../net/newlib_compat.h" |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 void Listen(int32_t result, int backlog, int32_t* pres); | 45 void Listen(int32_t result, int backlog, int32_t* pres); |
46 void Accept(int32_t result, int32_t* pres); | 46 void Accept(int32_t result, int32_t* pres); |
47 void OnAccept(int32_t result); | 47 void OnAccept(int32_t result); |
48 void Close(int32_t result, int32_t* pres); | 48 void Close(int32_t result, int32_t* pres); |
49 bool CreateNetAddress(const struct sockaddr* saddr, | 49 bool CreateNetAddress(const struct sockaddr* saddr, |
50 PP_NetAddress_Private* addr); | 50 PP_NetAddress_Private* addr); |
51 | 51 |
52 SocketSubSystem* sys_; | 52 SocketSubSystem* sys_; |
53 int ref_; | 53 int ref_; |
54 int oflag_; | 54 int oflag_; |
55 pp::CompletionCallbackFactory<TCPServerSocket, ThreadSafeRefCount> factory_; | 55 pp::CompletionCallbackFactory<TCPServerSocket> factory_; |
56 pp::TCPServerSocketPrivate* socket_; | 56 pp::TCPServerSocketPrivate* socket_; |
57 struct sockaddr_in6 sin6_; | 57 struct sockaddr_in6 sin6_; |
58 PP_Resource resource_; | 58 PP_Resource resource_; |
59 | 59 |
60 DISALLOW_COPY_AND_ASSIGN(TCPServerSocket); | 60 DISALLOW_COPY_AND_ASSIGN(TCPServerSocket); |
61 }; | 61 }; |
62 | 62 |
63 #endif // PACKAGES_LIBRARIES_NACL_MOUNTS_NET_TCP_SERVER_SOCKET_H_ | 63 #endif // PACKAGES_LIBRARIES_NACL_MOUNTS_NET_TCP_SERVER_SOCKET_H_ |
64 | 64 |
OLD | NEW |