/libcore/ojluni/src/main/native/ |
net_util_md.h | 44 struct sockaddr *from, int *fromlen); 48 flags, const struct sockaddr *to, int tolen); 50 extern int NET_Connect(int s, struct sockaddr *addr, int addrlen); 51 extern int NET_Accept(int s, struct sockaddr *addr, int *addrlen); 96 typedef int (*getnameinfo_f)(const struct sockaddr *, size_t, 134 #define SOCKADDR union { \ 139 #define SOCKADDR_LEN (ipv6_available() ? sizeof(SOCKADDR) : \ 144 #define SOCKADDR union { struct sockaddr_in him4; } 145 #define SOCKADDR_LEN sizeof(SOCKADDR)
|
DatagramChannelImpl.c | 92 SOCKADDR sa; 117 rv = connect(fd, (struct sockaddr *)&sa, len); 138 SOCKADDR sa; 152 n = recvfrom(fd, buf, len, 0, (struct sockaddr *)&sa, &sa_len); 174 // Peer (or other thread) has performed an orderly shutdown, sockaddr will be 176 if (n == 0 && ((struct sockaddr *)&sa)->sa_family == 0) { 190 if (!NET_SockaddrEqualsInetAddress(env, (struct sockaddr *)&sa, 195 if (port != NET_GetPortFromSockaddr((struct sockaddr *)&sa)) { 203 jobject ia = NET_SockaddrToInetAddress(env, (struct sockaddr *)&sa, 217 NET_GetPortFromSockaddr((struct sockaddr *)&sa)) [all...] |
Net.c | 219 SOCKADDR sa; 223 if (NET_InetAddressToSockaddr(env, iao, port, (struct sockaddr *)&sa, &sa_len, preferIPv6) != 0) { 227 rv = NET_Bind(fdval(env, fdo), (struct sockaddr *)&sa, sa_len); 244 SOCKADDR sa; 248 if (NET_InetAddressToSockaddr(env, iao, port, (struct sockaddr *) &sa, 254 rv = connect(fdval(env, fdo), (struct sockaddr *)&sa, sa_len); 269 SOCKADDR sa; 271 if (getsockname(fdval(env, fdo), (struct sockaddr *)&sa, &sa_len) < 0) { 297 return NET_GetPortFromSockaddr((struct sockaddr *)&sa); 303 SOCKADDR sa [all...] |
PlainDatagramSocketImpl.c | 85 extern void setDefaultScopeID(JNIEnv *env, struct sockaddr *him); 198 SOCKADDR him; 214 if (NET_InetAddressToSockaddr(env, iaObj, localport, (struct sockaddr *)&him, &len, JNI_TRUE) != 0) { 217 setDefaultScopeID(env, (struct sockaddr *)&him); 219 if (NET_Bind(fd, (struct sockaddr *)&him, len) < 0) { 236 if (JVM_GetSockName(fd, (struct sockaddr *)&him, &len) == -1) { 242 localport = NET_GetPortFromSockaddr((struct sockaddr *)&him); 263 SOCKADDR rmtaddr; 278 if (NET_InetAddressToSockaddr(env, address, port, (struct sockaddr *)&rmtaddr, &len, JNI_TRUE) != 0) { 282 setDefaultScopeID(env, (struct sockaddr *)&rmtaddr) [all...] |
PlainSocketImpl.c | 77 extern void setDefaultScopeID(JNIEnv *env, struct sockaddr *him); 238 SOCKADDR him; 254 if (NET_InetAddressToSockaddr(env, iaObj, port, (struct sockaddr *)&him, &len, JNI_TRUE) != 0) { 257 setDefaultScopeID(env, (struct sockaddr *)&him); 261 NET_SetTrafficClass((struct sockaddr *)&him, trafficClass); 265 connect_rv = NET_Connect(fd, (struct sockaddr *)&him, len); 329 connect_rv = connect(fd, (struct sockaddr *)&him, len); 497 if (JVM_GetSockName(fd, (struct sockaddr *)&him, &len) == -1) { 501 localport = NET_GetPortFromSockaddr((struct sockaddr *)&him); 521 SOCKADDR him [all...] |
net_util_md.c | 86 void setDefaultScopeID(JNIEnv *env, struct sockaddr *him) 252 int getScopeID (struct sockaddr *him) { 260 int cmpScopeID (unsigned int scope, struct sockaddr *him) { 270 int getScopeID (struct sockaddr *him) { 275 int cmpScopeID (unsigned int scope, struct sockaddr *him) { 344 SOCKADDR sa; 363 /*if (getsockname(0, (struct sockaddr *)&sa, &sa_len) == 0) { 364 struct sockaddr *saP = (struct sockaddr *)&sa; 509 NET_AllocSockaddr(struct sockaddr **him, int *len) [all...] |
/prebuilts/gcc/linux-x86/host/x86_64-w64-mingw32-4.8/x86_64-w64-mingw32/include/psdk_inc/ |
_ip_types.h | 70 struct sockaddr { struct 94 typedef struct sockaddr SOCKADDR; 95 typedef struct sockaddr *PSOCKADDR; 96 typedef struct sockaddr *LPSOCKADDR;
|
/prebuilts/gcc/linux-x86/host/x86_64-w64-mingw32-4.8/x86_64-w64-mingw32/include/ |
iphlpapi.h | 59 DWORD WINAPI GetBestInterfaceEx(struct sockaddr *pDestAddr,PDWORD pdwBestIfIndex); 148 SOCKADDR IpAddress; 229 SOCKADDR *NetworkAddress,
|
dpaddr.h | 31 typedef struct sockaddr SOCKADDR; 316 STDMETHOD(BuildFromSockAddr)(THIS_ CONST SOCKADDR* CONST pSockAddr) PURE; 319 STDMETHOD(GetSockAddress)(THIS_ SOCKADDR* pSockAddr, PDWORD) PURE;
|
ws2tcpip.h | 185 struct sockaddr *ai_addr; 196 struct sockaddr *ai_addr; 254 WINSOCK_API_LINKAGE int WSAAPI getnameinfo(const struct sockaddr *sa,socklen_t salen,char *host,DWORD hostlen,char *serv,DWORD servlen,int flags); 255 WINSOCK_API_LINKAGE INT WSAAPI GetNameInfoW(const SOCKADDR *pSockaddr,socklen_t SockaddrLength,PWCHAR pNodeBuffer,DWORD NodeBufferSize,PWCHAR pServiceBuffer,DWORD ServiceBufferSize,INT Flags); 260 typedef int (WSAAPI *LPFN_GETNAMEINFO)(const struct sockaddr *sa,socklen_t salen,char *host,DWORD hostlen,char *serv,DWORD servlen,int flags); 261 typedef INT (WSAAPI *LPFN_GETNAMEINFOW)(const SOCKADDR *pSockaddr,socklen_t SockaddrLength,PWCHAR pNodeBuffer,DWORD NodeBufferSize,PWCHAR pServiceBuffer,DWORD ServiceBufferSize,INT Flags); 303 struct sockaddr *ai_addr; 317 struct sockaddr *ai_addr; 384 const struct sockaddr *PeerAddress,
|
/external/webrtc/webrtc/base/ |
win32socketserver.cc | 278 int result = ::getsockname(socket_, reinterpret_cast<sockaddr*>(&addr), 293 int result = ::getpeername(socket_, reinterpret_cast<sockaddr*>(&addr), 313 reinterpret_cast<sockaddr*>(&saddr), 367 reinterpret_cast<SOCKADDR*>(&saddr), 435 reinterpret_cast<sockaddr*>(&saddr), 456 reinterpret_cast<sockaddr*>(&saddr), &addr_len); 479 SOCKET s = ::accept(socket_, reinterpret_cast<sockaddr*>(&saddr), &addr_len);
|
/external/webrtc/webrtc/test/channel_transport/ |
udp_socket2_win.cc | 30 const struct sockaddr* SocketAddress; 325 const struct sockaddr* addr = 326 reinterpret_cast<const struct sockaddr*>(&name); 380 const struct sockaddr* addr = reinterpret_cast<const struct sockaddr*>(&to); 595 reinterpret_cast<struct sockaddr*>(&(pIoContext->from)), 706 getsockname(_socket, (struct sockaddr*)name, &nameLength); 778 QosDestaddr.SocketAddress = (SOCKADDR *)&stRemName; 817 getsockname(_socket, (struct sockaddr*)name, &nameLength); 848 getsockname(_socket, (struct sockaddr*)name, &nameLength) [all...] |