/device/generic/goldfish/dhcp/common/ |
socket.h | 25 class Socket { 27 Socket(); 28 Socket(const Socket&) = delete; 29 ~Socket(); 31 Socket& operator=(const Socket&) = delete; 34 // Open a socket, |domain|, |type| and |protocol| are as described in the 35 // man pages for socket. 41 // Bind a raw socket to the interface with index |interfaceIndex| [all...] |
socket.cpp | 17 #include "socket.h" 27 #include <sys/socket.h> 64 Socket::Socket() : mSocketFd(-1) { 67 Socket::~Socket() { 75 Result Socket::open(int domain, int type, int protocol) { 77 return Result::error("Socket already open"); 79 mSocketFd = ::socket(domain, type, protocol); 81 return Result::error("Failed to open socket: %s", strerror(errno)) [all...] |
/external/parameter-framework/upstream/remote-processor/ |
Socket.h | 32 /** Wraps and hides asio::ip::tcp::socket 34 * asio::ip::tcp::socket cannot be forward-declared because it is an 38 class Socket 41 Socket(asio::ip::tcp::socket &socket) : mSocket(socket) {} 43 asio::ip::tcp::socket &get() { return mSocket; } 46 asio::ip::tcp::socket &mSocket;
|
/external/swiftshader/src/Common/ |
Socket.hpp | 21 #include <sys/socket.h> 22 typedef int SOCKET; 27 class Socket 30 Socket(SOCKET socket); 31 Socket(const char *address, const char *port); 32 ~Socket(); 36 Socket *accept(); 45 SOCKET socket member in class:sw::Socket [all...] |
Socket.cpp | 15 #include "Socket.hpp" 28 Socket::Socket(SOCKET socket) : socket(socket) 32 Socket::Socket(const char *address, const char *port) 35 socket = INVALID_SOCKET [all...] |
/prebuilts/go/darwin-x86/src/net/internal/socktest/ |
sys_unix.go | 11 // Socket wraps syscall.Socket. 12 func (sw *Switch) Socket(family, sotype, proto int) (s int, err error) { 24 s, so.Err = syscall.Socket(family, sotype, proto)
|
sys_windows.go | 12 // Socket wraps syscall.Socket. 13 func (sw *Switch) Socket(family, sotype, proto int) (s syscall.Handle, err error) { 25 s, so.Err = syscall.Socket(family, sotype, proto)
|
/prebuilts/go/linux-x86/src/net/internal/socktest/ |
sys_unix.go | 11 // Socket wraps syscall.Socket. 12 func (sw *Switch) Socket(family, sotype, proto int) (s int, err error) { 24 s, so.Err = syscall.Socket(family, sotype, proto)
|
sys_windows.go | 12 // Socket wraps syscall.Socket. 13 func (sw *Switch) Socket(family, sotype, proto int) (s syscall.Handle, err error) { 25 s, so.Err = syscall.Socket(family, sotype, proto)
|
/external/autotest/client/cros/crash/crasher/ |
crasher.cc | 5 #include <sys/socket.h> 45 // sent over a Unix domain socket to a process in a different PID namespace is 48 struct Socket { 49 Socket(): fd(socket(AF_UNIX, SOCK_DGRAM, 0)) {} 50 ~Socket() { if (fd != -1) close(fd); } 55 fprintf(stderr,"socket() failed: %s\n", strerror(errno));
|
/device/linaro/bootloader/OpenPlatformPkg/Chips/Hisilicon/Library/I2CLib/ |
I2CLibRuntime.c | 32 UINTN GetI2cBase (UINT32 Socket, UINT8 Port)
34 if (gI2cBase[Socket][Port] == 0) {
35 gI2cBase[Socket][Port] = PlatformGetI2cBase(Socket, Port);
38 return gI2cBase[Socket][Port];
48 UINT32 Socket;
53 for (Socket = 0; Socket < MAX_SOCKET; Socket++) {
55 if (gI2cBase[Socket][Port] != 0) { [all...] |
/system/core/fastboot/ |
socket.h | 29 // This file provides a class interface for cross-platform socket functionality. The main fastboot 46 // Socket interface to be implemented for each platform. 47 class Socket { 51 // Returns the socket error message. This must be called immediately after a socket failure 58 static std::unique_ptr<Socket> NewClient(Protocol protocol, const std::string& hostname, 65 static std::unique_ptr<Socket> NewServer(Protocol protocol, int port); 67 // Destructor closes the socket if it's open. 68 virtual ~Socket(); 95 // Closes the socket. Returns 0 on success, -1 on error [all...] |
socket.cpp | 29 #include "socket.h" 34 Socket::Socket(cutils_socket_t sock) : sock_(sock) {} 36 Socket::~Socket() { 40 int Socket::Close() { 51 ssize_t Socket::ReceiveAll(void* data, size_t length, int timeout_ms) { 69 int Socket::GetLocalPort() { 73 // According to Windows setsockopt() documentation, if a Windows socket times out during send() or 77 bool Socket::WaitForRecv(int timeout_ms) [all...] |
/device/generic/goldfish/wifi/ipv6proxy/ |
socket.cpp | 17 #include "socket.h" 26 #include <sys/socket.h> 32 Socket::Socket() : mState(State::New), mSocket(-1) { 35 Socket::Socket(Socket&& other) : mState(other.mState), mSocket(other.mSocket) { 40 Socket::~Socket() { 48 Socket& Socket::operator=(Socket&& other) [all...] |
socket.h | 28 class Socket { 39 Raw, // A raw socket 48 // Construct an empty socket object, next use open() to start using it 49 Socket(); 50 // Move construct a socket, The constructed socket will be in the same state 53 Socket(Socket&& other); 54 ~Socket(); 56 // Move the |other| socket object into this one. If this object has an ope [all...] |
/external/deqp/framework/delibs/decpp/ |
deSocket.cpp | 76 // Socket 78 Socket::Socket (void) 85 Socket::~Socket (void) 90 void Socket::setFlags (deUint32 flags) 93 throw SocketError("Setting socket flags failed"); 96 void Socket::listen (const SocketAddress& address) 99 throw SocketError("Listening on socket failed"); 102 void Socket::connect (const SocketAddress& address [all...] |
deSocket.hpp | 72 class Socket 75 Socket (void); 76 ~Socket (void); 84 Socket* accept (SocketAddress& clientAddress) { return accept(clientAddress.getPtr()); } 85 Socket* accept (void) { return accept(DE_NULL); } 102 Socket (deSocket* socket) : m_socket(socket) {} 103 Socket (const Socket& other) [all...] |
/device/linaro/bootloader/OpenPlatformPkg/Chips/Hisilicon/Include/Library/ |
I2CLib.h | 41 UINT32 Socket;
50 I2CInit(UINT32 Socket, UINT32 Port, SPEED_MODE SpeedMode);
70 I2CSdaConfig(UINT32 Socket, UINT32 Port);
|
/libcore/ojluni/src/test/java/net/Socket/ |
ShutdownInput.java | 27 * @summary Socket.getInputStream().available() not clear for 31 package test.java.net.Socket; 38 import java.net.Socket; 51 Socket s1 = new Socket(iaddr, ss.getLocalPort()); 52 Socket s2 = ss.accept() ) { 57 // check the NIO socket adapter 60 new InetSocketAddress(iaddr, sc.socket().getLocalPort())); 63 test(s1.socket(), s2.socket(), "Testing NIO") [all...] |
/external/webrtc/webrtc/base/ |
socket.h | 18 #include <sys/socket.h> 33 // Reuse the POSIX socket api errors. Note this depends on 136 // General interface for the socket implementations of various networks. The 138 class Socket { 140 virtual ~Socket() {} 142 // Returns the address to which the socket is bound. If the socket is not 146 // Returns the address to which the socket is connected. If the socket is 157 virtual Socket *Accept(SocketAddress *paddr) = 0 [all...] |
/device/google/cuttlefish_common/common/libs/fs/ |
shared_fd.cpp | 259 SharedFD SharedFD::Socket(int domain, int socket_type, int protocol) { 260 int fd = TEMP_FAILURE_RETRY(socket(domain, socket_type, protocol)); 273 SharedFD rval = SharedFD::Socket(PF_UNIX, in_type, 0); 290 SharedFD rval = SharedFD::Socket(AF_INET, type, 0); 309 SharedFD rval = SharedFD::Socket(AF_INET, type, 0); 343 SharedFD rval = SharedFD::Socket(PF_UNIX, in_type, 0); 360 /* Only the bottom bits are really the socket type; there are flags too. */ 376 // However, continue since we do have a listening socket
|
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Network/Tcp4Dxe/ |
SockInterface.c | 2 Interface function of the Socket.
56 in the related socket's lists.
58 @param Sock Pointer to the instance's socket.
61 @retval TRUE The Event exists in related socket's lists.
62 @retval FALSE The Event is not in related socket's lists.
67 IN SOCKET *Sock,
95 Buffer a token into the specific list of socket Sock.
97 @param Sock Pointer to the instance's socket.
107 IN SOCKET *Sock,
134 Destroy the socket Sock and its associated protocol control block. [all...] |
/device/linaro/bootloader/edk2/NetworkPkg/TcpDxe/ |
SockInterface.c | 2 Interface function of the Socket.
54 in the related socket's lists.
56 @param[in] Sock Pointer to the instance's socket.
59 @retval TRUE The Event exists in related socket's lists.
60 @retval FALSE The Event is not in related socket's lists.
65 IN SOCKET *Sock,
92 Buffer a token into the specific list of the socket Sock.
94 @param[in] Sock Pointer to the instance's socket.
104 IN SOCKET *Sock,
132 Destroy the socket Sock and its associated protocol control block. [all...] |
/libcore/luni/src/test/java/libcore/java/net/ |
OldSocketImplFactoryTest.java | 8 import java.net.Socket; 30 Socket.setSocketImplFactory(factory); 33 new Socket(); 41 Socket.setSocketImplFactory(factory); 48 Socket.setSocketImplFactory(null); 65 Field [] fields = Socket.class.getDeclaredFields();
|
/sdk/apps/SdkController/src/com/android/tools/sdkcontroller/lib/ |
Socket.java | 28 * Encapsulates a connection with the emulator over a UNIX-domain socket. 30 public class Socket { 31 /** UNIX-domain socket connected with the emulator. */ 33 /** Channel name for the connection established via this socket. */ 44 * Constructs Socket instance. 46 * @param socket Socket connection with the emulator. 50 public Socket(LocalSocket socket, String name, ByteOrder endian) { 51 mSocket = socket; 99 LocalSocket socket = mSocket; local 116 LocalSocket socket = mSocket; local 153 LocalSocket socket = mSocket; local 182 LocalSocket socket; local [all...] |