public class Socket extends Object
Modifier | Constructor and Description |
---|---|
protected |
Socket() |
|
Socket(InetAddress var0,
int var1) |
|
Socket(InetAddress var0,
int var1,
InetAddress var2,
int var3) |
protected |
Socket(SocketImpl var0) |
|
Socket(String var0,
int var1) |
|
Socket(String var0,
int var1,
InetAddress var2,
int var3) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
InetAddress |
getInetAddress() |
InputStream |
getInputStream() |
boolean |
getKeepAlive() |
InetAddress |
getLocalAddress() |
int |
getLocalPort() |
OutputStream |
getOutputStream() |
int |
getPort() |
int |
getReceiveBufferSize() |
int |
getSendBufferSize() |
int |
getSoLinger() |
int |
getSoTimeout() |
boolean |
getTcpNoDelay() |
void |
setKeepAlive(boolean var0) |
void |
setReceiveBufferSize(int var0) |
void |
setSendBufferSize(int var0) |
static void |
setSocketImplFactory(SocketImplFactory var0) |
void |
setSoLinger(boolean var0,
int var1) |
void |
setSoTimeout(int var0) |
void |
setTcpNoDelay(boolean var0) |
void |
shutdownInput() |
void |
shutdownOutput() |
String |
toString() |
protected Socket()
public Socket(String var0, int var1) throws UnknownHostException, IOException
UnknownHostException
IOException
public Socket(String var0, int var1, InetAddress var2, int var3) throws IOException
IOException
public Socket(InetAddress var0, int var1) throws IOException
IOException
public Socket(InetAddress var0, int var1, InetAddress var2, int var3) throws IOException
IOException
protected Socket(SocketImpl var0) throws SocketException
SocketException
public void close() throws IOException
IOException
public InetAddress getInetAddress()
public InputStream getInputStream() throws IOException
IOException
public boolean getKeepAlive() throws SocketException
SocketException
public InetAddress getLocalAddress()
public int getLocalPort()
public OutputStream getOutputStream() throws IOException
IOException
public int getPort()
public int getSoLinger() throws SocketException
SocketException
public int getReceiveBufferSize() throws SocketException
SocketException
public int getSendBufferSize() throws SocketException
SocketException
public int getSoTimeout() throws SocketException
SocketException
public boolean getTcpNoDelay() throws SocketException
SocketException
public void setKeepAlive(boolean var0) throws SocketException
SocketException
public static void setSocketImplFactory(SocketImplFactory var0) throws IOException
IOException
public void setSendBufferSize(int var0) throws SocketException
SocketException
public void setReceiveBufferSize(int var0) throws SocketException
SocketException
public void setSoLinger(boolean var0, int var1) throws SocketException
SocketException
public void setSoTimeout(int var0) throws SocketException
SocketException
public void setTcpNoDelay(boolean var0) throws SocketException
SocketException
public void shutdownInput() throws IOException
IOException
public void shutdownOutput() throws IOException
IOException
Copyright © 2006–2013 OSGi Alliance. All rights reserved.