Package system.net.sockets
Class TcpListener
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.net.sockets.TcpListener
-
- All Implemented Interfaces:
IJCOBridgeReflected
public class TcpListener extends NetObject
The base .NET class managing System.Net.Sockets.TcpListener, System.Net.Sockets, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a.See: https://docs.microsoft.com/en-us/dotnet/api/System.Net.Sockets.TcpListener
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringassemblyFullNameFully assembly qualified name: System.Net.Sockets, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3astatic java.lang.StringassemblyShortNameAssembly name: System.Net.Socketsstatic java.lang.StringclassNameQualified class name: System.Net.Sockets.TcpListenerstatic JCTypeclassTypeThe type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description TcpListener()TcpListener(int port)TcpListener(java.lang.Object instance)Internal constructor.TcpListener(IPAddress localaddr, int port)TcpListener(IPEndPoint localEP)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SocketAcceptSocket()TcpClientAcceptTcpClient()voidAllowNatTraversal(boolean allowed)IAsyncResultBeginAcceptSocket(AsyncCallback callback, NetObject state)IAsyncResultBeginAcceptTcpClient(AsyncCallback callback, NetObject state)static TcpListenercast(IJCOBridgeReflected from)Try to cast theIJCOBridgeReflectedinstance intoTcpListener, a cast assert is made to check if types are compatible.static TcpListenerCreate(int port)SocketEndAcceptSocket(IAsyncResult asyncResult)TcpClientEndAcceptTcpClient(IAsyncResult asyncResult)booleangetExclusiveAddressUse()java.lang.StringgetJCOAssemblyName()Returns the reflected Assembly namejava.lang.StringgetJCOClassName()Returns the reflected Class namejava.lang.ObjectgetJCOInstance()Returns the instantiated classjava.lang.StringgetJCOObjectName()Returns the reflected Class name used to build the objectJCTypegetJCOType()Returns the instantiated class TypeEndPointgetLocalEndpoint()SocketgetServer()booleanPending()voidsetExclusiveAddressUse(boolean ExclusiveAddressUse)voidsetJCOInstance(JCObject instance)voidStart()voidStart(int backlog)voidStop()
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.String assemblyFullName
Fully assembly qualified name: System.Net.Sockets, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a- See Also:
- Constant Field Values
-
assemblyShortName
public static final java.lang.String assemblyShortName
Assembly name: System.Net.Sockets- See Also:
- Constant Field Values
-
className
public static final java.lang.String className
Qualified class name: System.Net.Sockets.TcpListener- See Also:
- Constant Field Values
-
-
Constructor Detail
-
TcpListener
public TcpListener(java.lang.Object instance) throws java.lang.ThrowableInternal constructor. Use with caution- Throws:
java.lang.Throwable
-
TcpListener
public TcpListener() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
TcpListener
public TcpListener(int port) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, IndexOutOfRangeException, NotSupportedException, ObjectDisposedException, RankException, ArrayTypeMismatchException, FormatException, EventSourceException, OutOfMemoryException, SocketException- Throws:
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionArgumentNullExceptionInvalidOperationExceptionPlatformNotSupportedExceptionIndexOutOfRangeExceptionNotSupportedExceptionObjectDisposedExceptionRankExceptionArrayTypeMismatchExceptionFormatExceptionEventSourceExceptionOutOfMemoryExceptionSocketException
-
TcpListener
public TcpListener(IPAddress localaddr, int port) throws java.lang.Throwable, PlatformNotSupportedException, IndexOutOfRangeException, InvalidOperationException, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, ArrayTypeMismatchException, FormatException, EventSourceException, OutOfMemoryException, NotSupportedException, ObjectDisposedException, SocketException
- Throws:
java.lang.ThrowablePlatformNotSupportedExceptionIndexOutOfRangeExceptionInvalidOperationExceptionArgumentNullExceptionArgumentExceptionArgumentOutOfRangeExceptionArrayTypeMismatchExceptionFormatExceptionEventSourceExceptionOutOfMemoryExceptionNotSupportedExceptionObjectDisposedExceptionSocketException
-
TcpListener
public TcpListener(IPEndPoint localEP) throws java.lang.Throwable, PlatformNotSupportedException, IndexOutOfRangeException, InvalidOperationException, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, ArrayTypeMismatchException, FormatException, EventSourceException, OutOfMemoryException, NotSupportedException, ObjectDisposedException, SocketException
- Throws:
java.lang.ThrowablePlatformNotSupportedExceptionIndexOutOfRangeExceptionInvalidOperationExceptionArgumentNullExceptionArgumentExceptionArgumentOutOfRangeExceptionArrayTypeMismatchExceptionFormatExceptionEventSourceExceptionOutOfMemoryExceptionNotSupportedExceptionObjectDisposedExceptionSocketException
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Assembly name- Specified by:
getJCOAssemblyNamein interfaceIJCOBridgeReflected- Overrides:
getJCOAssemblyNamein classNetObject- Returns:
- A
Stringrepresenting the Fullname of reflected Assembly
-
getJCOClassName
public java.lang.String getJCOClassName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name- Specified by:
getJCOClassNamein interfaceIJCOBridgeReflected- Overrides:
getJCOClassNamein classNetObject- Returns:
- A
Stringrepresenting the Fullname of reflected Class
-
getJCOObjectName
public java.lang.String getJCOObjectName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name used to build the object- Specified by:
getJCOObjectNamein interfaceIJCOBridgeReflected- Overrides:
getJCOObjectNamein classNetObject- Returns:
- A
Stringrepresenting the name used to allocated the object in CLR context
-
getJCOInstance
public java.lang.Object getJCOInstance()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class- Specified by:
getJCOInstancein interfaceIJCOBridgeReflected- Overrides:
getJCOInstancein classNetObject- Returns:
- An
Objectrepresenting the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstancein classNetObject
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class Type- Specified by:
getJCOTypein interfaceIJCOBridgeReflected- Overrides:
getJCOTypein classNetObject- Returns:
- A
JCTyperepresenting the CLR Type of the instantiated Class
-
cast
public static TcpListener cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflectedinstance intoTcpListener, a cast assert is made to check if types are compatible.- Parameters:
from-IJCOBridgeReflectedinstance to be casted- Returns:
TcpListenerinstance- Throws:
java.lang.Throwable- in case of error during cast operation
-
Pending
public boolean Pending() throws java.lang.Throwable, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, CultureNotFoundException, InvalidOperationException, ObjectDisposedException, IndexOutOfRangeException, PlatformNotSupportedException, EventSourceException, OutOfMemoryException, SocketException
-
BeginAcceptSocket
public IAsyncResult BeginAcceptSocket(AsyncCallback callback, NetObject state) throws java.lang.Throwable, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, CultureNotFoundException, InvalidOperationException, PlatformNotSupportedException, ObjectDisposedException, MulticastNotSupportedException, SocketException, ArrayTypeMismatchException, EventSourceException, OutOfMemoryException
- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionInvalidOperationExceptionPlatformNotSupportedExceptionObjectDisposedExceptionMulticastNotSupportedExceptionSocketExceptionArrayTypeMismatchExceptionEventSourceExceptionOutOfMemoryException
-
BeginAcceptTcpClient
public IAsyncResult BeginAcceptTcpClient(AsyncCallback callback, NetObject state) throws java.lang.Throwable, ArgumentNullException, ArgumentException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException, PlatformNotSupportedException, MulticastNotSupportedException, SocketException, ArrayTypeMismatchException, ArgumentOutOfRangeException
-
AcceptSocket
public Socket AcceptSocket() throws java.lang.Throwable, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, CultureNotFoundException, InvalidOperationException, ObjectDisposedException, IndexOutOfRangeException, PlatformNotSupportedException, EventSourceException, SocketException, ArrayTypeMismatchException
-
EndAcceptSocket
public Socket EndAcceptSocket(IAsyncResult asyncResult) throws java.lang.Throwable, InvalidOperationException, TaskSchedulerException, ArgumentOutOfRangeException, PlatformNotSupportedException, TaskCanceledException, AggregateException, ArgumentNullException, ObjectDisposedException
-
AcceptTcpClient
public TcpClient AcceptTcpClient() throws java.lang.Throwable, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, CultureNotFoundException, InvalidOperationException, ObjectDisposedException, IndexOutOfRangeException, PlatformNotSupportedException, EventSourceException, SocketException, ArrayTypeMismatchException
-
EndAcceptTcpClient
public TcpClient EndAcceptTcpClient(IAsyncResult asyncResult) throws java.lang.Throwable, InvalidOperationException, TaskSchedulerException, ArgumentOutOfRangeException, PlatformNotSupportedException, TaskCanceledException, AggregateException, ArgumentNullException, ObjectDisposedException
-
Create
public static TcpListener Create(int port) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, IndexOutOfRangeException, NotSupportedException, ObjectDisposedException, RankException, ArrayTypeMismatchException, SocketException
-
AllowNatTraversal
public void AllowNatTraversal(boolean allowed) throws java.lang.Throwable, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, CultureNotFoundException, InvalidOperationException, ObjectDisposedException, IndexOutOfRangeException, PlatformNotSupportedException, SocketException, NotSupportedException
-
Start
public void Start() throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, IndexOutOfRangeException, NotSupportedException, ArgumentNullException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, PlatformNotSupportedException, FormatException, EventSourceException, SocketException- Throws:
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionIndexOutOfRangeExceptionNotSupportedExceptionArgumentNullExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionPlatformNotSupportedExceptionFormatExceptionEventSourceExceptionSocketException
-
Start
public void Start(int backlog) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, IndexOutOfRangeException, NotSupportedException, ObjectDisposedException, RankException, ArrayTypeMismatchException, FormatException, EventSourceException, OutOfMemoryException, SocketException- Throws:
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionArgumentNullExceptionInvalidOperationExceptionPlatformNotSupportedExceptionIndexOutOfRangeExceptionNotSupportedExceptionObjectDisposedExceptionRankExceptionArrayTypeMismatchExceptionFormatExceptionEventSourceExceptionOutOfMemoryExceptionSocketException
-
Stop
public void Stop() throws java.lang.Throwable, ArgumentException, IndexOutOfRangeException, NotSupportedException, ArgumentNullException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException, FormatException, EventSourceException, OutOfMemoryException, ObjectDisposedException, ArrayTypeMismatchException- Throws:
java.lang.ThrowableArgumentExceptionIndexOutOfRangeExceptionNotSupportedExceptionArgumentNullExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionFormatExceptionEventSourceExceptionOutOfMemoryExceptionObjectDisposedExceptionArrayTypeMismatchException
-
getExclusiveAddressUse
public boolean getExclusiveAddressUse() throws java.lang.Throwable, ObjectDisposedException, ArgumentNullException, IndexOutOfRangeException, PlatformNotSupportedException, InvalidOperationException, FormatException, EventSourceException, SocketException, ArgumentOutOfRangeException, ArgumentException
-
setExclusiveAddressUse
public void setExclusiveAddressUse(boolean ExclusiveAddressUse) throws java.lang.Throwable, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, CultureNotFoundException, InvalidOperationException, ObjectDisposedException, IndexOutOfRangeException, PlatformNotSupportedException, EventSourceException, OutOfMemoryException, ArrayTypeMismatchException, SocketException- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionInvalidOperationExceptionObjectDisposedExceptionIndexOutOfRangeExceptionPlatformNotSupportedExceptionEventSourceExceptionOutOfMemoryExceptionArrayTypeMismatchExceptionSocketException
-
getLocalEndpoint
public EndPoint getLocalEndpoint() throws java.lang.Throwable, NotSupportedException, ArgumentNullException, ObjectDisposedException, PlatformNotSupportedException, InvalidOperationException, ArgumentException, ArgumentOutOfRangeException, FormatException, EventSourceException, OutOfMemoryException, SocketException, IndexOutOfRangeException
-
getServer
public Socket getServer() throws java.lang.Throwable, ArgumentNullException, ArgumentException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException, IndexOutOfRangeException, PlatformNotSupportedException, ArgumentOutOfRangeException, FormatException, EventSourceException, OutOfMemoryException, SocketException, NotSupportedException
- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionCultureNotFoundExceptionObjectDisposedExceptionInvalidOperationExceptionIndexOutOfRangeExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionFormatExceptionEventSourceExceptionOutOfMemoryExceptionSocketExceptionNotSupportedException
-
-