Table of Contents

Class LocalSocket

Namespace
Android.Net
Assembly
MASES.Netdroid.dll
public class LocalSocket : Closeable, IDynamicMetaObjectProvider, IJVMBridgeCore, IEquatable<IJVMBridgeBaseInstance>, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeBaseInstance, IJVMBridgeDefinition, ICloseable, IAutoCloseable
Inheritance
LocalSocket
Implements
Extension Methods

Constructors

LocalSocket()

public LocalSocket()

LocalSocket(IJVMBridgeBaseInitializer)

Initializer used internally by JCOBridge. Do not use directly.

[Obsolete("This public initializer is needed for JCOBridge internal use, other uses can produce unidentible behaviors.")]
public LocalSocket(IJVMBridgeBaseInitializer initializer)

Parameters

initializer IJVMBridgeBaseInitializer

LocalSocket(int)

public LocalSocket(int arg0)

Parameters

arg0 int

int

Properties

BridgeClassName

Java class name to be instantiated

public override string BridgeClassName { get; }

Property Value

string

IsBridgeAbstract

true if the BridgeClassName is an abstract class, i.e. cannot be created an instance

public override bool IsBridgeAbstract { get; }

Property Value

bool

IsBridgeCloseable

true if the BridgeClassName implements java.lang.AutoCloseable

public override bool IsBridgeCloseable { get; }

Property Value

bool

IsBridgeInterface

true if the BridgeClassName is an interface, i.e. does not have any public constructor

public override bool IsBridgeInterface { get; }

Property Value

bool

IsBridgeStatic

true if the BridgeClassName is a static class, i.e. does not have any public constructor

public override bool IsBridgeStatic { get; }

Property Value

bool

SOCKET_DGRAM

public static int SOCKET_DGRAM { get; set; }

Property Value

int

SOCKET_SEQPACKET

public static int SOCKET_SEQPACKET { get; set; }

Property Value

int

SOCKET_STREAM

public static int SOCKET_STREAM { get; set; }

Property Value

int

Methods

Bind(LocalSocketAddress)

public void Bind(LocalSocketAddress arg0)

Parameters

arg0 LocalSocketAddress

LocalSocketAddress

Exceptions

IOException

Close()

public void Close()

Exceptions

IOException

Connect(LocalSocketAddress)

public void Connect(LocalSocketAddress arg0)

Parameters

arg0 LocalSocketAddress

LocalSocketAddress

Exceptions

IOException

Connect(LocalSocketAddress, int)

public void Connect(LocalSocketAddress arg0, int arg1)

Parameters

arg0 LocalSocketAddress

LocalSocketAddress

arg1 int

int

Exceptions

IOException

CreatePoolableInstance()

HPA initializer for LocalSocket()

public static LocalSocket CreatePoolableInstance()

Returns

LocalSocket

CreatePoolableInstance(int)

HPA initializer for LocalSocket(int arg0)

public static LocalSocket CreatePoolableInstance(int arg0)

Parameters

arg0 int

Returns

LocalSocket

GetAncillaryFileDescriptors()

public FileDescriptor[] GetAncillaryFileDescriptors()

Returns

FileDescriptor[]

FileDescriptor

Exceptions

IOException

GetFileDescriptor()

public FileDescriptor GetFileDescriptor()

Returns

FileDescriptor

FileDescriptor

GetInputStream()

public InputStream GetInputStream()

Returns

InputStream

InputStream

Exceptions

IOException

GetLocalSocketAddress()

public LocalSocketAddress GetLocalSocketAddress()

Returns

LocalSocketAddress

LocalSocketAddress

GetOutputStream()

public OutputStream GetOutputStream()

Returns

OutputStream

OutputStream

Exceptions

IOException

GetPeerCredentials()

public Credentials GetPeerCredentials()

Returns

Credentials

Credentials

Exceptions

IOException

GetReceiveBufferSize()

public int GetReceiveBufferSize()

Returns

int

int

Exceptions

IOException

GetRemoteSocketAddress()

public LocalSocketAddress GetRemoteSocketAddress()

Returns

LocalSocketAddress

LocalSocketAddress

GetSendBufferSize()

public int GetSendBufferSize()

Returns

int

int

Exceptions

IOException

GetSoTimeout()

public int GetSoTimeout()

Returns

int

int

Exceptions

IOException

IsBound()

public bool IsBound()

Returns

bool

bool

IsClosed()

public bool IsClosed()

Returns

bool

bool

IsConnected()

public bool IsConnected()

Returns

bool

bool

IsInputShutdown()

public bool IsInputShutdown()

Returns

bool

bool

IsOutputShutdown()

public bool IsOutputShutdown()

Returns

bool

bool

SetFileDescriptorsForSend(FileDescriptor[])

public void SetFileDescriptorsForSend(FileDescriptor[] arg0)

Parameters

arg0 FileDescriptor[]

FileDescriptor

SetReceiveBufferSize(int)

public void SetReceiveBufferSize(int arg0)

Parameters

arg0 int

int

Exceptions

IOException

SetSendBufferSize(int)

public void SetSendBufferSize(int arg0)

Parameters

arg0 int

int

Exceptions

IOException

SetSoTimeout(int)

public void SetSoTimeout(int arg0)

Parameters

arg0 int

int

Exceptions

IOException

ShutdownInput()

public void ShutdownInput()

Exceptions

IOException

ShutdownOutput()

public void ShutdownOutput()

Exceptions

IOException