Home
last modified time | relevance | path

Searched refs:localport (Results 1 – 4 of 4) sorted by relevance

/libcore/ojluni/src/main/java/java/net/
DSocketImpl.java70 protected int localport; field in SocketImpl
286 return localport; in getLocalPort()
318 localport = 0; in reset()
DAbstractPlainSocketImpl.java437 void setLocalPort(int localport) { in setLocalPort() argument
438 this.localport = localport; in setLocalPort()
/libcore/ojluni/src/main/native/
DPlainSocketImpl.c223 jint localport = (*env)->GetIntField(env, this, psi_localportID); in PlainSocketImpl_socketConnect() local
492 if (localport == 0) { in PlainSocketImpl_socketConnect()
501 localport = NET_GetPortFromSockaddr((struct sockaddr *)&him); in PlainSocketImpl_socketConnect()
502 (*env)->SetIntField(env, this, psi_localportID, localport); in PlainSocketImpl_socketConnect()
514 jobject iaObj, jint localport) { in PlainSocketImpl_socketBind() argument
536 …if (NET_InetAddressToSockaddr(env, iaObj, localport, (struct sockaddr *)&him, &len, JNI_TRUE) != 0… in PlainSocketImpl_socketBind()
557 if (localport == 0) { in PlainSocketImpl_socketBind()
566 localport = NET_GetPortFromSockaddr((struct sockaddr *)&him); in PlainSocketImpl_socketBind()
567 (*env)->SetIntField(env, this, psi_localportID, localport); in PlainSocketImpl_socketBind()
569 (*env)->SetIntField(env, this, psi_localportID, localport); in PlainSocketImpl_socketBind()
DPlainDatagramSocketImpl.c192 jint localport, jobject iaObj) { in PlainDatagramSocketImpl_bind0() argument
214 …if (NET_InetAddressToSockaddr(env, iaObj, localport, (struct sockaddr *)&him, &len, JNI_TRUE) != 0… in PlainDatagramSocketImpl_bind0()
232 if (localport == 0) { in PlainDatagramSocketImpl_bind0()
242 localport = NET_GetPortFromSockaddr((struct sockaddr *)&him); in PlainDatagramSocketImpl_bind0()
244 (*env)->SetIntField(env, this, pdsi_localPortID, localport); in PlainDatagramSocketImpl_bind0()
246 (*env)->SetIntField(env, this, pdsi_localPortID, localport); in PlainDatagramSocketImpl_bind0()