public class LocalSocket extends Object
| Constructor and Description |
|---|
LocalSocket() |
| Modifier and Type | Method and Description |
|---|---|
void |
bind(LocalSocketAddress bindpoint) |
void |
close() |
void |
connect(LocalSocketAddress endpoint) |
void |
connect(LocalSocketAddress endpoint,
int timeout) |
FileDescriptor[] |
getAncillaryFileDescriptors() |
FileDescriptor |
getFileDescriptor() |
InputStream |
getInputStream() |
LocalSocketAddress |
getLocalSocketAddress() |
OutputStream |
getOutputStream() |
Credentials |
getPeerCredentials() |
int |
getReceiveBufferSize() |
LocalSocketAddress |
getRemoteSocketAddress() |
int |
getSendBufferSize() |
int |
getSoTimeout() |
boolean |
isBound() |
boolean |
isClosed() |
boolean |
isConnected() |
boolean |
isInputShutdown() |
boolean |
isOutputShutdown() |
void |
setFileDescriptorsForSend(FileDescriptor[] fds) |
void |
setReceiveBufferSize(int size) |
void |
setSendBufferSize(int n) |
void |
setSoTimeout(int n) |
void |
shutdownInput() |
void |
shutdownOutput() |
String |
toString() |
public void connect(LocalSocketAddress endpoint) throws IOException
IOExceptionpublic void bind(LocalSocketAddress bindpoint) throws IOException
IOExceptionpublic LocalSocketAddress getLocalSocketAddress()
public InputStream getInputStream() throws IOException
IOExceptionpublic OutputStream getOutputStream() throws IOException
IOExceptionpublic void close()
throws IOException
IOExceptionpublic void shutdownInput()
throws IOException
IOExceptionpublic void shutdownOutput()
throws IOException
IOExceptionpublic void setReceiveBufferSize(int size)
throws IOException
IOExceptionpublic int getReceiveBufferSize()
throws IOException
IOExceptionpublic void setSoTimeout(int n)
throws IOException
IOExceptionpublic int getSoTimeout()
throws IOException
IOExceptionpublic void setSendBufferSize(int n)
throws IOException
IOExceptionpublic int getSendBufferSize()
throws IOException
IOExceptionpublic LocalSocketAddress getRemoteSocketAddress()
public boolean isConnected()
public boolean isClosed()
public boolean isBound()
public boolean isOutputShutdown()
public boolean isInputShutdown()
public void connect(LocalSocketAddress endpoint, int timeout) throws IOException
IOExceptionpublic void setFileDescriptorsForSend(FileDescriptor[] fds)
public FileDescriptor[] getAncillaryFileDescriptors() throws IOException
IOExceptionpublic Credentials getPeerCredentials() throws IOException
IOExceptionpublic FileDescriptor getFileDescriptor()
Copyright © 2008-2013. All Rights Reserved.