Class Socket
java.lang.Object
java.net.Socket
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedSocket()Socket(String var0, int var1, InetAddress var2, int var3) Socket(InetAddress var0, int var1) Socket(InetAddress var0, int var1, InetAddress var2, int var3) protectedSocket(SocketImpl var0) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()booleanintintgetPort()intintintintbooleanvoidsetKeepAlive(boolean var0) voidsetReceiveBufferSize(int var0) voidsetSendBufferSize(int var0) static voidvoidsetSoLinger(boolean var0, int var1) voidsetSoTimeout(int var0) voidsetTcpNoDelay(boolean var0) voidvoidtoString()
-
Constructor Details
-
Socket
protected Socket() -
Socket
- Throws:
UnknownHostExceptionIOException
-
Socket
- Throws:
IOException
-
Socket
- Throws:
IOException
-
Socket
- Throws:
IOException
-
Socket
- Throws:
SocketException
-
-
Method Details
-
close
- Throws:
IOException
-
getInetAddress
-
getInputStream
- Throws:
IOException
-
getKeepAlive
- Throws:
SocketException
-
getLocalAddress
-
getLocalPort
public int getLocalPort() -
getOutputStream
- Throws:
IOException
-
getPort
public int getPort() -
getSoLinger
- Throws:
SocketException
-
getReceiveBufferSize
- Throws:
SocketException
-
getSendBufferSize
- Throws:
SocketException
-
getSoTimeout
- Throws:
SocketException
-
getTcpNoDelay
- Throws:
SocketException
-
setKeepAlive
- Throws:
SocketException
-
setSocketImplFactory
- Throws:
IOException
-
setSendBufferSize
- Throws:
SocketException
-
setReceiveBufferSize
- Throws:
SocketException
-
setSoLinger
- Throws:
SocketException
-
setSoTimeout
- Throws:
SocketException
-
setTcpNoDelay
- Throws:
SocketException
-
toString
-
shutdownInput
- Throws:
IOException
-
shutdownOutput
- Throws:
IOException
-