Package java.net
Class Socket
java.lang.Object
java.net.Socket
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Socket()
Socket
(String var0, int var1, InetAddress var2, int var3) Socket
(InetAddress var0, int var1) Socket
(InetAddress var0, int var1, InetAddress var2, int var3) protected
Socket
(SocketImpl var0) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
boolean
int
int
getPort()
int
int
int
int
boolean
void
setKeepAlive
(boolean var0) void
setReceiveBufferSize
(int var0) void
setSendBufferSize
(int var0) static void
void
setSoLinger
(boolean var0, int var1) void
setSoTimeout
(int var0) void
setTcpNoDelay
(boolean var0) void
void
toString()
-
Constructor Details
-
Socket
protected Socket() -
Socket
- Throws:
UnknownHostException
IOException
-
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
-