public class TcpListener extends NetObject
.NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Net.Sockets.TcpListener
Powered by JCOBridge: more info at https://www.jcobridge.com
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
assemblyFullName
Fully assembly qualified name: System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
|
static java.lang.String |
assemblyShortName
Assembly name: System
|
static java.lang.String |
className
Qualified class name: System.Net.Sockets.TcpListener
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
TcpListener() |
TcpListener(int port) |
TcpListener(IPAddress localaddr,
int port) |
TcpListener(IPEndPoint localEP) |
TcpListener(java.lang.Object instance)
Internal constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Socket |
AcceptSocket() |
TcpClient |
AcceptTcpClient() |
void |
AllowNatTraversal(boolean allowed) |
IAsyncResult |
BeginAcceptSocket(AsyncCallback callback,
NetObject state) |
IAsyncResult |
BeginAcceptTcpClient(AsyncCallback callback,
NetObject state) |
static TcpListener |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into TcpListener, a cast assert is made to check if types are compatible. |
static TcpListener |
Create(int port) |
Socket |
EndAcceptSocket(IAsyncResult asyncResult) |
TcpClient |
EndAcceptTcpClient(IAsyncResult asyncResult) |
boolean |
getExclusiveAddressUse() |
java.lang.String |
getJCOAssemblyName()
Returns the reflected Assembly name
|
java.lang.String |
getJCOClassName()
Returns the reflected Class name
|
java.lang.Object |
getJCOInstance()
Returns the instantiated class
|
java.lang.String |
getJCOObjectName()
Returns the reflected Class name used to build the object
|
JCType |
getJCOType()
Returns the instantiated class Type
|
EndPoint |
getLocalEndpoint() |
Socket |
getServer() |
boolean |
Pending() |
void |
setExclusiveAddressUse(boolean ExclusiveAddressUse) |
void |
setJCOInstance(JCObject instance) |
void |
Start() |
void |
Start(int backlog) |
void |
Stop() |
public static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public TcpListener()
throws java.lang.Throwable
java.lang.Throwablepublic TcpListener(int port)
throws java.lang.Throwable,
ArgumentOutOfRangeException,
ArgumentNullException,
ArgumentException,
NotImplementedException,
CultureNotFoundException,
IndexOutOfRangeException,
MissingManifestResourceException,
ObjectDisposedException,
InvalidOperationException,
ConfigurationException,
ConfigurationErrorsException,
InvalidCastException,
MulticastNotSupportedException,
OutOfMemoryException,
SocketException,
SecurityException,
NullReferenceException,
NotSupportedException
java.lang.ThrowableArgumentOutOfRangeExceptionArgumentNullExceptionArgumentExceptionNotImplementedExceptionCultureNotFoundExceptionIndexOutOfRangeExceptionMissingManifestResourceExceptionObjectDisposedExceptionInvalidOperationExceptionConfigurationExceptionConfigurationErrorsExceptionInvalidCastExceptionMulticastNotSupportedExceptionOutOfMemoryExceptionSocketExceptionSecurityExceptionNullReferenceExceptionNotSupportedExceptionpublic TcpListener(IPAddress localaddr, int port) throws java.lang.Throwable, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, NotSupportedException, ConfigurationException, ConfigurationErrorsException, OverflowException, MulticastNotSupportedException, InvalidOperationException, OutOfMemoryException, NotImplementedException, IndexOutOfRangeException, SocketException, SecurityException, ObjectDisposedException
java.lang.ThrowableArgumentExceptionArgumentNullExceptionArgumentOutOfRangeExceptionNotSupportedExceptionConfigurationExceptionConfigurationErrorsExceptionOverflowExceptionMulticastNotSupportedExceptionInvalidOperationExceptionOutOfMemoryExceptionNotImplementedExceptionIndexOutOfRangeExceptionSocketExceptionSecurityExceptionObjectDisposedExceptionpublic TcpListener(IPEndPoint localEP) throws java.lang.Throwable, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, NotSupportedException, ConfigurationException, ConfigurationErrorsException, OverflowException, MulticastNotSupportedException, InvalidOperationException, OutOfMemoryException, NotImplementedException, IndexOutOfRangeException, SocketException, SecurityException, ObjectDisposedException
java.lang.ThrowableArgumentExceptionArgumentNullExceptionArgumentOutOfRangeExceptionNotSupportedExceptionConfigurationExceptionConfigurationErrorsExceptionOverflowExceptionMulticastNotSupportedExceptionInvalidOperationExceptionOutOfMemoryExceptionNotImplementedExceptionIndexOutOfRangeExceptionSocketExceptionSecurityExceptionObjectDisposedExceptionpublic TcpListener(java.lang.Object instance)
throws java.lang.Throwable
java.lang.Throwablepublic Socket AcceptSocket() throws java.lang.Throwable, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, NotSupportedException, ConfigurationException, ConfigurationErrorsException, OverflowException, MulticastNotSupportedException, InvalidOperationException, OutOfMemoryException, ObjectDisposedException, NotImplementedException, IndexOutOfRangeException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, PathTooLongException, DriveNotFoundException, OperationCanceledException, SocketException, SecurityException
java.lang.ThrowableArgumentExceptionArgumentNullExceptionArgumentOutOfRangeExceptionNotSupportedExceptionConfigurationExceptionConfigurationErrorsExceptionOverflowExceptionMulticastNotSupportedExceptionInvalidOperationExceptionOutOfMemoryExceptionObjectDisposedExceptionNotImplementedExceptionIndexOutOfRangeExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionPathTooLongExceptionDriveNotFoundExceptionOperationCanceledExceptionSocketExceptionSecurityExceptionpublic TcpClient AcceptTcpClient() throws java.lang.Throwable, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, NotSupportedException, ConfigurationException, ConfigurationErrorsException, OverflowException, MulticastNotSupportedException, InvalidOperationException, OutOfMemoryException, ObjectDisposedException, NotImplementedException, IndexOutOfRangeException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, PathTooLongException, DriveNotFoundException, OperationCanceledException, SocketException, SecurityException
java.lang.ThrowableArgumentExceptionArgumentNullExceptionArgumentOutOfRangeExceptionNotSupportedExceptionConfigurationExceptionConfigurationErrorsExceptionOverflowExceptionMulticastNotSupportedExceptionInvalidOperationExceptionOutOfMemoryExceptionObjectDisposedExceptionNotImplementedExceptionIndexOutOfRangeExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionPathTooLongExceptionDriveNotFoundExceptionOperationCanceledExceptionSocketExceptionSecurityExceptionpublic void AllowNatTraversal(boolean allowed)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
InvalidOperationException,
MissingMethodException,
TargetInvocationException,
NotImplementedException,
NotSupportedException,
ArgumentOutOfRangeException,
CultureNotFoundException,
MissingManifestResourceException,
ObjectDisposedException,
IndexOutOfRangeException,
OutOfMemoryException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionNotSupportedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionMissingManifestResourceExceptionObjectDisposedExceptionIndexOutOfRangeExceptionOutOfMemoryExceptionpublic IAsyncResult BeginAcceptSocket(AsyncCallback callback, NetObject state) throws java.lang.Throwable, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, NotSupportedException, ConfigurationException, ConfigurationErrorsException, OverflowException, MulticastNotSupportedException, InvalidOperationException, OutOfMemoryException, ObjectDisposedException, SocketException, NotImplementedException, WaitHandleCannotBeOpenedException, AccessViolationException, SecurityException
java.lang.ThrowableArgumentExceptionArgumentNullExceptionArgumentOutOfRangeExceptionNotSupportedExceptionConfigurationExceptionConfigurationErrorsExceptionOverflowExceptionMulticastNotSupportedExceptionInvalidOperationExceptionOutOfMemoryExceptionObjectDisposedExceptionSocketExceptionNotImplementedExceptionWaitHandleCannotBeOpenedExceptionAccessViolationExceptionSecurityExceptionpublic IAsyncResult BeginAcceptTcpClient(AsyncCallback callback, NetObject state) throws java.lang.Throwable, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, NotSupportedException, ConfigurationException, ConfigurationErrorsException, OverflowException, MulticastNotSupportedException, InvalidOperationException, OutOfMemoryException, ObjectDisposedException, SocketException, NotImplementedException, WaitHandleCannotBeOpenedException, AccessViolationException, SecurityException
java.lang.ThrowableArgumentExceptionArgumentNullExceptionArgumentOutOfRangeExceptionNotSupportedExceptionConfigurationExceptionConfigurationErrorsExceptionOverflowExceptionMulticastNotSupportedExceptionInvalidOperationExceptionOutOfMemoryExceptionObjectDisposedExceptionSocketExceptionNotImplementedExceptionWaitHandleCannotBeOpenedExceptionAccessViolationExceptionSecurityExceptionpublic static TcpListener cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into TcpListener, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedTcpListener instancejava.lang.Throwable - in case of error during cast operationpublic static TcpListener Create(int port) throws java.lang.Throwable, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, NotSupportedException, ConfigurationException, ConfigurationErrorsException, OverflowException, MulticastNotSupportedException, InvalidOperationException, OutOfMemoryException, NotImplementedException, IndexOutOfRangeException, SocketException, SecurityException, ObjectDisposedException
java.lang.ThrowableArgumentExceptionArgumentNullExceptionArgumentOutOfRangeExceptionNotSupportedExceptionConfigurationExceptionConfigurationErrorsExceptionOverflowExceptionMulticastNotSupportedExceptionInvalidOperationExceptionOutOfMemoryExceptionNotImplementedExceptionIndexOutOfRangeExceptionSocketExceptionSecurityExceptionObjectDisposedExceptionpublic Socket EndAcceptSocket(IAsyncResult asyncResult) throws java.lang.Throwable, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, NotSupportedException, ConfigurationException, ConfigurationErrorsException, OverflowException, MulticastNotSupportedException, InvalidOperationException, OutOfMemoryException, ObjectDisposedException, WaitHandleCannotBeOpenedException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, PathTooLongException, DriveNotFoundException, OperationCanceledException, AbandonedMutexException, SecurityException, IndexOutOfRangeException, NotImplementedException, SocketException
java.lang.ThrowableArgumentExceptionArgumentNullExceptionArgumentOutOfRangeExceptionNotSupportedExceptionConfigurationExceptionConfigurationErrorsExceptionOverflowExceptionMulticastNotSupportedExceptionInvalidOperationExceptionOutOfMemoryExceptionObjectDisposedExceptionWaitHandleCannotBeOpenedExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionPathTooLongExceptionDriveNotFoundExceptionOperationCanceledExceptionAbandonedMutexExceptionSecurityExceptionIndexOutOfRangeExceptionNotImplementedExceptionSocketExceptionpublic TcpClient EndAcceptTcpClient(IAsyncResult asyncResult) throws java.lang.Throwable, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, NotSupportedException, ConfigurationException, ConfigurationErrorsException, OverflowException, MulticastNotSupportedException, InvalidOperationException, OutOfMemoryException, ObjectDisposedException, WaitHandleCannotBeOpenedException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, PathTooLongException, DriveNotFoundException, OperationCanceledException, AbandonedMutexException, SecurityException, IndexOutOfRangeException, NotImplementedException, SocketException
java.lang.ThrowableArgumentExceptionArgumentNullExceptionArgumentOutOfRangeExceptionNotSupportedExceptionConfigurationExceptionConfigurationErrorsExceptionOverflowExceptionMulticastNotSupportedExceptionInvalidOperationExceptionOutOfMemoryExceptionObjectDisposedExceptionWaitHandleCannotBeOpenedExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionPathTooLongExceptionDriveNotFoundExceptionOperationCanceledExceptionAbandonedMutexExceptionSecurityExceptionIndexOutOfRangeExceptionNotImplementedExceptionSocketExceptionpublic boolean getExclusiveAddressUse()
throws java.lang.Throwable,
ObjectDisposedException,
ArgumentOutOfRangeException,
IndexOutOfRangeException,
ArgumentException,
ArgumentNullException,
OutOfMemoryException,
MissingManifestResourceException,
NotImplementedException,
InvalidOperationException,
SocketException
public java.lang.String getJCOAssemblyName()
IJCOBridgeReflectedgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in class NetObjectString representing the Fullname of reflected Assemblypublic java.lang.String getJCOClassName()
IJCOBridgeReflectedgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class NetObjectString representing the Fullname of reflected Classpublic java.lang.Object getJCOInstance()
IJCOBridgeReflectedgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class NetObjectObject representing the CLR instance of the instantiated Classpublic java.lang.String getJCOObjectName()
IJCOBridgeReflectedgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class NetObjectString representing the name used to allocated the object
in CLR contextpublic JCType getJCOType()
IJCOBridgeReflectedgetJCOType in interface IJCOBridgeReflectedgetJCOType in class NetObjectJCType representing the CLR Type of the instantiated Classpublic EndPoint getLocalEndpoint() throws java.lang.Throwable, ObjectDisposedException, ArgumentOutOfRangeException, IndexOutOfRangeException, ArgumentException, ArgumentNullException, ConfigurationErrorsException, MulticastNotSupportedException, OutOfMemoryException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, PathTooLongException, DriveNotFoundException, OperationCanceledException, NotImplementedException, MissingManifestResourceException, InvalidOperationException, SocketException
java.lang.ThrowableObjectDisposedExceptionArgumentOutOfRangeExceptionIndexOutOfRangeExceptionArgumentExceptionArgumentNullExceptionConfigurationErrorsExceptionMulticastNotSupportedExceptionOutOfMemoryExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionPathTooLongExceptionDriveNotFoundExceptionOperationCanceledExceptionNotImplementedExceptionMissingManifestResourceExceptionInvalidOperationExceptionSocketExceptionpublic Socket getServer() throws java.lang.Throwable
java.lang.Throwablepublic boolean Pending()
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
InvalidOperationException,
MissingMethodException,
TargetInvocationException,
NotImplementedException,
NotSupportedException,
ArgumentOutOfRangeException,
CultureNotFoundException,
MissingManifestResourceException,
ObjectDisposedException,
IndexOutOfRangeException,
ConfigurationErrorsException,
MulticastNotSupportedException,
OutOfMemoryException,
FileNotFoundException,
DirectoryNotFoundException,
UnauthorizedAccessException,
IOException,
PathTooLongException,
DriveNotFoundException,
OperationCanceledException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionNotSupportedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionMissingManifestResourceExceptionObjectDisposedExceptionIndexOutOfRangeExceptionConfigurationErrorsExceptionMulticastNotSupportedExceptionOutOfMemoryExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionPathTooLongExceptionDriveNotFoundExceptionOperationCanceledExceptionpublic void setExclusiveAddressUse(boolean ExclusiveAddressUse)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
InvalidOperationException,
MissingMethodException,
TargetInvocationException,
NotImplementedException,
NotSupportedException,
ArgumentOutOfRangeException,
CultureNotFoundException,
MissingManifestResourceException,
ObjectDisposedException,
IndexOutOfRangeException,
OutOfMemoryException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionNotSupportedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionMissingManifestResourceExceptionObjectDisposedExceptionIndexOutOfRangeExceptionOutOfMemoryExceptionpublic void setJCOInstance(JCObject instance)
setJCOInstance in class NetObjectpublic void Start()
throws java.lang.Throwable,
ArgumentOutOfRangeException,
ArgumentException,
ArgumentNullException,
ConfigurationException,
ConfigurationErrorsException,
MissingManifestResourceException,
InvalidCastException,
MulticastNotSupportedException,
InvalidOperationException,
OutOfMemoryException,
ObjectDisposedException,
NotImplementedException,
NotSupportedException,
SocketException
java.lang.ThrowableArgumentOutOfRangeExceptionArgumentExceptionArgumentNullExceptionConfigurationExceptionConfigurationErrorsExceptionMissingManifestResourceExceptionInvalidCastExceptionMulticastNotSupportedExceptionInvalidOperationExceptionOutOfMemoryExceptionObjectDisposedExceptionNotImplementedExceptionNotSupportedExceptionSocketExceptionpublic void Start(int backlog)
throws java.lang.Throwable,
ArgumentOutOfRangeException,
ArgumentException,
ArgumentNullException,
NotSupportedException,
ConfigurationException,
ConfigurationErrorsException,
OverflowException,
MulticastNotSupportedException,
InvalidOperationException,
OutOfMemoryException,
ObjectDisposedException,
NotImplementedException,
SocketException,
SecurityException
java.lang.ThrowableArgumentOutOfRangeExceptionArgumentExceptionArgumentNullExceptionNotSupportedExceptionConfigurationExceptionConfigurationErrorsExceptionOverflowExceptionMulticastNotSupportedExceptionInvalidOperationExceptionOutOfMemoryExceptionObjectDisposedExceptionNotImplementedExceptionSocketExceptionSecurityExceptionpublic void Stop()
throws java.lang.Throwable,
ArgumentException,
ArgumentNullException,
ArgumentOutOfRangeException,
NotSupportedException,
ConfigurationException,
ConfigurationErrorsException,
OverflowException,
MulticastNotSupportedException,
InvalidOperationException,
OutOfMemoryException,
NotImplementedException,
IndexOutOfRangeException,
SocketException,
SecurityException,
ObjectDisposedException
java.lang.ThrowableArgumentExceptionArgumentNullExceptionArgumentOutOfRangeExceptionNotSupportedExceptionConfigurationExceptionConfigurationErrorsExceptionOverflowExceptionMulticastNotSupportedExceptionInvalidOperationExceptionOutOfMemoryExceptionNotImplementedExceptionIndexOutOfRangeExceptionSocketExceptionSecurityExceptionObjectDisposedException