android.net
Class LocalSocket

java.lang.Object
  extended by android.net.LocalSocket

public class LocalSocket
extends Object


Constructor Summary
LocalSocket()
           
 
Method Summary
 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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LocalSocket

public LocalSocket()
Method Detail

toString

public String toString()
Overrides:
toString in class Object

connect

public void connect(LocalSocketAddress endpoint)
             throws IOException
Throws:
IOException

bind

public void bind(LocalSocketAddress bindpoint)
          throws IOException
Throws:
IOException

getLocalSocketAddress

public LocalSocketAddress getLocalSocketAddress()

getInputStream

public InputStream getInputStream()
                           throws IOException
Throws:
IOException

getOutputStream

public OutputStream getOutputStream()
                             throws IOException
Throws:
IOException

close

public void close()
           throws IOException
Throws:
IOException

shutdownInput

public void shutdownInput()
                   throws IOException
Throws:
IOException

shutdownOutput

public void shutdownOutput()
                    throws IOException
Throws:
IOException

setReceiveBufferSize

public void setReceiveBufferSize(int size)
                          throws IOException
Throws:
IOException

getReceiveBufferSize

public int getReceiveBufferSize()
                         throws IOException
Throws:
IOException

setSoTimeout

public void setSoTimeout(int n)
                  throws IOException
Throws:
IOException

getSoTimeout

public int getSoTimeout()
                 throws IOException
Throws:
IOException

setSendBufferSize

public void setSendBufferSize(int n)
                       throws IOException
Throws:
IOException

getSendBufferSize

public int getSendBufferSize()
                      throws IOException
Throws:
IOException

getRemoteSocketAddress

public LocalSocketAddress getRemoteSocketAddress()

isConnected

public boolean isConnected()

isClosed

public boolean isClosed()

isBound

public boolean isBound()

isOutputShutdown

public boolean isOutputShutdown()

isInputShutdown

public boolean isInputShutdown()

connect

public void connect(LocalSocketAddress endpoint,
                    int timeout)
             throws IOException
Throws:
IOException

setFileDescriptorsForSend

public void setFileDescriptorsForSend(FileDescriptor[] fds)

getAncillaryFileDescriptors

public FileDescriptor[] getAncillaryFileDescriptors()
                                             throws IOException
Throws:
IOException

getPeerCredentials

public Credentials getPeerCredentials()
                               throws IOException
Throws:
IOException

getFileDescriptor

public FileDescriptor getFileDescriptor()


Copyright © 2008-2012. All Rights Reserved.