Package java.net
Class Socket
java.lang.Object
java.net.Socket
-
Constructor Summary
ConstructorsModifierConstructorDescriptionSocket()
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
bind
(SocketAddress var0) void
close()
void
connect
(SocketAddress var0) void
connect
(SocketAddress var0, int var1) boolean
int
boolean
int
getPort()
int
boolean
int
int
int
boolean
int
boolean
isBound()
boolean
isClosed()
boolean
boolean
boolean
void
sendUrgentData
(int var0) void
setKeepAlive
(boolean var0) void
setOOBInline
(boolean var0) void
setReceiveBufferSize
(int var0) void
setReuseAddress
(boolean var0) void
setSendBufferSize
(int var0) static void
void
setSoLinger
(boolean var0, int var1) void
setSoTimeout
(int var0) void
setTcpNoDelay
(boolean var0) void
setTrafficClass
(int var0) void
void
-
Constructor Details
-
Socket
public Socket() -
Socket
- Throws:
IOException
-
Socket
- Throws:
IOException
-
Socket
- Throws:
IOException
-
Socket
- Throws:
IOException
-
Socket
- Throws:
SocketException
-
-
Method Details
-
bind
- Throws:
IOException
-
close
- Throws:
IOException
-
connect
- Throws:
IOException
-
connect
- Throws:
IOException
-
getInetAddress
-
getInputStream
- Throws:
IOException
-
getKeepAlive
- Throws:
SocketException
-
getLocalAddress
-
getLocalPort
public int getLocalPort() -
getLocalSocketAddress
-
getOOBInline
- Throws:
SocketException
-
getOutputStream
- Throws:
IOException
-
getPort
public int getPort() -
getReceiveBufferSize
- Throws:
SocketException
-
getRemoteSocketAddress
-
getReuseAddress
- Throws:
SocketException
-
getSendBufferSize
- Throws:
SocketException
-
getSoLinger
- Throws:
SocketException
-
getSoTimeout
- Throws:
SocketException
-
getTcpNoDelay
- Throws:
SocketException
-
getTrafficClass
- Throws:
SocketException
-
isBound
public boolean isBound() -
isClosed
public boolean isClosed() -
isConnected
public boolean isConnected() -
isInputShutdown
public boolean isInputShutdown() -
isOutputShutdown
public boolean isOutputShutdown() -
sendUrgentData
- Throws:
IOException
-
setKeepAlive
- Throws:
SocketException
-
setOOBInline
- Throws:
SocketException
-
setReceiveBufferSize
- Throws:
SocketException
-
setReuseAddress
- Throws:
SocketException
-
setSendBufferSize
- Throws:
SocketException
-
setSoLinger
- Throws:
SocketException
-
setSoTimeout
- Throws:
SocketException
-
setSocketImplFactory
- Throws:
IOException
-
setTcpNoDelay
- Throws:
SocketException
-
setTrafficClass
- Throws:
SocketException
-
shutdownInput
- Throws:
IOException
-
shutdownOutput
- Throws:
IOException
-