< prev index next >

src/java.base/share/classes/java/net/SocketImpl.java

Print this page




 211      * @see java.net.Socket#shutdownInput()
 212      * @see java.net.Socket#close()
 213      * @see java.net.Socket#setSoLinger(boolean, int)
 214      * @since 1.3
 215      */
 216     protected void shutdownOutput() throws IOException {
 217       throw new IOException("Method not implemented!");
 218     }
 219 
 220     /**
 221      * Returns the value of this socket's {@code fd} field.
 222      *
 223      * @return  the value of this socket's {@code fd} field.
 224      * @see     java.net.SocketImpl#fd
 225      */
 226     protected FileDescriptor getFileDescriptor() {
 227         return fd;
 228     }
 229 
 230     /**









 231      * Returns the value of this socket's {@code address} field.
 232      *
 233      * @return  the value of this socket's {@code address} field.
 234      * @see     java.net.SocketImpl#address
 235      */
 236     protected InetAddress getInetAddress() {
 237         return address;









 238     }
 239 
 240     /**
 241      * Returns the value of this socket's {@code port} field.
 242      *
 243      * @return  the value of this socket's {@code port} field.
 244      * @see     java.net.SocketImpl#port
 245      */
 246     protected int getPort() {
 247         return port;
 248     }
 249 
 250     /**
 251      * Returns whether or not this SocketImpl supports sending
 252      * urgent data. By default, false is returned
 253      * unless the method is overridden in a sub-class
 254      *
 255      * @return  true if urgent data supported
 256      * @see     java.net.SocketImpl#address
 257      * @since 1.4




 211      * @see java.net.Socket#shutdownInput()
 212      * @see java.net.Socket#close()
 213      * @see java.net.Socket#setSoLinger(boolean, int)
 214      * @since 1.3
 215      */
 216     protected void shutdownOutput() throws IOException {
 217       throw new IOException("Method not implemented!");
 218     }
 219 
 220     /**
 221      * Returns the value of this socket's {@code fd} field.
 222      *
 223      * @return  the value of this socket's {@code fd} field.
 224      * @see     java.net.SocketImpl#fd
 225      */
 226     protected FileDescriptor getFileDescriptor() {
 227         return fd;
 228     }
 229 
 230     /**
 231      * Sets the value of this socket's {@code fd} field.
 232      *
 233      * @param fd the value of the fd
 234      */
 235     protected void setFileDescriptor(FileDescriptor fd) {
 236         this.fd = fd;
 237     }
 238 
 239     /**
 240      * Returns the value of this socket's {@code address} field.
 241      *
 242      * @return  the value of this socket's {@code address} field.
 243      * @see     java.net.SocketImpl#address
 244      */
 245     protected InetAddress getInetAddress() {
 246         return address;
 247     }
 248 
 249     /**
 250      * Sets the value of this socket's {@code address} field.
 251      *
 252      * @param address the value of the address
 253      */
 254     protected void setAddress(InetAddress address) {
 255         this.address = address;
 256     }
 257 
 258     /**
 259      * Returns the value of this socket's {@code port} field.
 260      *
 261      * @return  the value of this socket's {@code port} field.
 262      * @see     java.net.SocketImpl#port
 263      */
 264     protected int getPort() {
 265         return port;
 266     }
 267 
 268     /**
 269      * Returns whether or not this SocketImpl supports sending
 270      * urgent data. By default, false is returned
 271      * unless the method is overridden in a sub-class
 272      *
 273      * @return  true if urgent data supported
 274      * @see     java.net.SocketImpl#address
 275      * @since 1.4


< prev index next >