< prev index next >
src/java.base/share/classes/java/net/SocketImpl.java
Print this page
*** 278,296 ****
*/
protected int getLocalPort() {
return localport;
}
! void setSocket(Socket soc) {
this.socket = soc;
}
Socket getSocket() {
return socket;
}
! void setServerSocket(ServerSocket soc) {
this.serverSocket = soc;
}
ServerSocket getServerSocket() {
return serverSocket;
--- 278,304 ----
*/
protected int getLocalPort() {
return localport;
}
! /**
! * Set the Socket object
! * @param soc the socket
! */
! protected void setSocket(Socket soc) {
this.socket = soc;
}
Socket getSocket() {
return socket;
}
! /**
! * Set the ServerSocket object
! * @param soc the socket
! */
! protected void setServerSocket(ServerSocket soc) {
this.serverSocket = soc;
}
ServerSocket getServerSocket() {
return serverSocket;
< prev index next >