मुख्य कंटेंट तक स्किप करें

Class: Socket

This page documents the methods and fields available in the Socket class.

Members

SignatureDescription
Socket()Creates a new instance of Socket.
Socket(Proxy)Creates a new instance of Socket.
Socket(java.net.Socket)Creates a new instance of Socket.
equals(Object)Compares this instance with another for equality/order.
getChannel()Returns the current channel.
getInetAddress()Returns the current inet address.
getLocalAddress()Returns the current local address.
getLocalPort()Returns the current local port.
getLocalSocketAddress()Returns the current local socket address.
getPort()Returns the current port.
getRemoteSocketAddress()Returns the current remote socket address.
hashCode()Returns whether code is true.
isBound()Returns whether bound is true.
isClosed()Returns whether closed is true.
isConnected()Returns whether connected is true.
isInputShutdown()Returns whether input shutdown is true.
isOutputShutdown()Returns whether output shutdown is true.
setPerformancePreferences(int, int, int)Sets or updates the performance preferences.
toString()Returns the string representation.