/**@class android.net.LocalSocket implements java.io.Closeable @extends java.lang.Object Creates a (non-server) socket in the UNIX-domain namespace. The interface here is not entirely unlike that of java.net.Socket */ var LocalSocket = { /**Datagram socket type */ SOCKET_DGRAM : "1", /**Stream socket type */ SOCKET_STREAM : "2", /**Sequential packet socket type */ SOCKET_SEQPACKET : "3", /**{@inheritDoc} */ toString : function( ) {}, /**Connects this socket to an endpoint. May only be called on an instance that has not yet been connected. @param {Object {LocalSocketAddress}} endpoint endpoint address @throws IOException if socket is in invalid state or the address does not exist. */ connect : function( ) {}, /**Binds this socket to an endpoint name. May only be called on an instance that has not yet been bound. @param {Object {LocalSocketAddress}} bindpoint endpoint address @throws IOException */ bind : function( ) {}, /**Retrieves the name that this socket is bound to, if any. @return {Object {android.net.LocalSocketAddress}} Local address or null if anonymous */ getLocalSocketAddress : function( ) {}, /**Retrieves the input stream for this instance. @return {Object {java.io.InputStream}} input stream @throws IOException if socket has been closed or cannot be created. */ getInputStream : function( ) {}, /**Retrieves the output stream for this instance. @return {Object {java.io.OutputStream}} output stream @throws IOException if socket has been closed or cannot be created. */ getOutputStream : function( ) {}, /**Closes the socket. @throws IOException */ close : function( ) {}, /**Shuts down the input side of the socket. @throws IOException */ shutdownInput : function( ) {}, /**Shuts down the output side of the socket. @throws IOException */ shutdownOutput : function( ) {}, /** */ setReceiveBufferSize : function( ) {}, /** */ getReceiveBufferSize : function( ) {}, /** */ setSoTimeout : function( ) {}, /** */ getSoTimeout : function( ) {}, /** */ setSendBufferSize : function( ) {}, /** */ getSendBufferSize : function( ) {}, /** */ getRemoteSocketAddress : function( ) {}, /** */ isConnected : function( ) {}, /** */ isClosed : function( ) {}, /** */ isBound : function( ) {}, /** */ isOutputShutdown : function( ) {}, /** */ isInputShutdown : function( ) {}, /** */ connect : function( ) {}, /**Enqueues a set of file descriptors to send to the peer. The queue is one deep. The file descriptors will be sent with the next write of normal data, and will be delivered in a single ancillary message. See "man 7 unix" SCM_RIGHTS on a desktop Linux machine. @param {Object {java.io.FileDescriptor[]}} fds non-null; file descriptors to send. */ setFileDescriptorsForSend : function( ) {}, /**Retrieves a set of file descriptors that a peer has sent through an ancillary message. This method retrieves the most recent set sent, and then returns null until a new set arrives. File descriptors may only be passed along with regular data, so this method can only return a non-null after a read operation. @return {Object {java.io.FileDescriptor}} null or file descriptor array @throws IOException */ getAncillaryFileDescriptors : function( ) {}, /**Retrieves the credentials of this socket's peer. Only valid on connected sockets. @return {Object {android.net.Credentials}} non-null; peer credentials @throws IOException */ getPeerCredentials : function( ) {}, /**Returns file descriptor or null if not yet open/already closed @return {Object {java.io.FileDescriptor}} fd or null */ getFileDescriptor : function( ) {}, };