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, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089..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
- Author:
- MASES s.r.l https://masesgroup.com
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
assemblyFullName
Fully assembly qualified name: System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089static java.lang.String
assemblyShortName
Assembly name: Systemstatic java.lang.String
className
Qualified class name: System.Net.Sockets.TcpListenerstatic JCType
classType
The 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 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 theIJCOBridgeReflected
instance intoTcpListener
, 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 namejava.lang.String
getJCOClassName()
Returns the reflected Class namejava.lang.Object
getJCOInstance()
Returns the instantiated classjava.lang.String
getJCOObjectName()
Returns the reflected Class name used to build the objectJCType
getJCOType()
Returns the instantiated class TypeEndPoint
getLocalEndpoint()
Socket
getServer()
boolean
Pending()
void
setExclusiveAddressUse(boolean ExclusiveAddressUse)
void
setJCOInstance(JCObject instance)
void
Start()
void
Start(int backlog)
void
Stop()
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.String assemblyFullName
Fully assembly qualified name: System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089- See Also:
- Constant Field Values
-
assemblyShortName
public static final java.lang.String assemblyShortName
Assembly name: System- 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.Throwable
Internal 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, ArgumentOutOfRangeException, ArgumentNullException, ArgumentException, NotImplementedException, CultureNotFoundException, IndexOutOfRangeException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, ConfigurationException, ConfigurationErrorsException, InvalidCastException, MulticastNotSupportedException, OutOfMemoryException, SocketException, SecurityException, NullReferenceException, NotSupportedException
- Throws:
java.lang.Throwable
ArgumentOutOfRangeException
ArgumentNullException
ArgumentException
NotImplementedException
CultureNotFoundException
IndexOutOfRangeException
MissingManifestResourceException
ObjectDisposedException
InvalidOperationException
ConfigurationException
ConfigurationErrorsException
InvalidCastException
MulticastNotSupportedException
OutOfMemoryException
SocketException
SecurityException
NullReferenceException
NotSupportedException
-
TcpListener
public TcpListener(IPAddress localaddr, int port) throws java.lang.Throwable, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, NotSupportedException, ConfigurationException, ConfigurationErrorsException, OverflowException, MulticastNotSupportedException, InvalidOperationException, OutOfMemoryException, NotImplementedException, IndexOutOfRangeException, SocketException, SecurityException, ObjectDisposedException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentNullException
ArgumentOutOfRangeException
NotSupportedException
ConfigurationException
ConfigurationErrorsException
OverflowException
MulticastNotSupportedException
InvalidOperationException
OutOfMemoryException
NotImplementedException
IndexOutOfRangeException
SocketException
SecurityException
ObjectDisposedException
-
TcpListener
public TcpListener(IPEndPoint localEP) throws java.lang.Throwable, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, NotSupportedException, ConfigurationException, ConfigurationErrorsException, OverflowException, MulticastNotSupportedException, InvalidOperationException, OutOfMemoryException, NotImplementedException, IndexOutOfRangeException, SocketException, SecurityException, ObjectDisposedException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentNullException
ArgumentOutOfRangeException
NotSupportedException
ConfigurationException
ConfigurationErrorsException
OverflowException
MulticastNotSupportedException
InvalidOperationException
OutOfMemoryException
NotImplementedException
IndexOutOfRangeException
SocketException
SecurityException
ObjectDisposedException
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Assembly name- Specified by:
getJCOAssemblyName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOAssemblyName
in classNetObject
- Returns:
- A
String
representing the Fullname of reflected Assembly
-
getJCOClassName
public java.lang.String getJCOClassName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name- Specified by:
getJCOClassName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOClassName
in classNetObject
- Returns:
- A
String
representing the Fullname of reflected Class
-
getJCOObjectName
public java.lang.String getJCOObjectName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name used to build the object- Specified by:
getJCOObjectName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOObjectName
in classNetObject
- Returns:
- A
String
representing the name used to allocated the object in CLR context
-
getJCOInstance
public java.lang.Object getJCOInstance()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class- Specified by:
getJCOInstance
in interfaceIJCOBridgeReflected
- Overrides:
getJCOInstance
in classNetObject
- Returns:
- An
Object
representing the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstance
in classNetObject
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class Type- Specified by:
getJCOType
in interfaceIJCOBridgeReflected
- Overrides:
getJCOType
in classNetObject
- Returns:
- A
JCType
representing the CLR Type of the instantiated Class
-
cast
public static TcpListener cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflected
instance intoTcpListener
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
TcpListener
instance- Throws:
java.lang.Throwable
- in case of error during cast operation
-
Pending
public 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
- 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
-
BeginAcceptSocket
public 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
- Throws:
java.lang.Throwable
ArgumentException
ArgumentNullException
ArgumentOutOfRangeException
NotSupportedException
ConfigurationException
ConfigurationErrorsException
OverflowException
MulticastNotSupportedException
InvalidOperationException
OutOfMemoryException
ObjectDisposedException
SocketException
NotImplementedException
WaitHandleCannotBeOpenedException
AccessViolationException
SecurityException
-
BeginAcceptTcpClient
public 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
- Throws:
java.lang.Throwable
ArgumentException
ArgumentNullException
ArgumentOutOfRangeException
NotSupportedException
ConfigurationException
ConfigurationErrorsException
OverflowException
MulticastNotSupportedException
InvalidOperationException
OutOfMemoryException
ObjectDisposedException
SocketException
NotImplementedException
WaitHandleCannotBeOpenedException
AccessViolationException
SecurityException
-
AcceptSocket
public 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
- 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
-
EndAcceptSocket
public 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
- 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
-
AcceptTcpClient
public 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
- 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
-
EndAcceptTcpClient
public 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
- 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
-
Create
public static TcpListener Create(int port) throws java.lang.Throwable, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, NotSupportedException, ConfigurationException, ConfigurationErrorsException, OverflowException, MulticastNotSupportedException, InvalidOperationException, OutOfMemoryException, NotImplementedException, IndexOutOfRangeException, SocketException, SecurityException, ObjectDisposedException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentNullException
ArgumentOutOfRangeException
NotSupportedException
ConfigurationException
ConfigurationErrorsException
OverflowException
MulticastNotSupportedException
InvalidOperationException
OutOfMemoryException
NotImplementedException
IndexOutOfRangeException
SocketException
SecurityException
ObjectDisposedException
-
AllowNatTraversal
public void AllowNatTraversal(boolean allowed) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, IndexOutOfRangeException, OutOfMemoryException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
NotImplementedException
NotSupportedException
ArgumentOutOfRangeException
CultureNotFoundException
MissingManifestResourceException
ObjectDisposedException
IndexOutOfRangeException
OutOfMemoryException
-
Start
public void Start() throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentException, ArgumentNullException, ConfigurationException, ConfigurationErrorsException, MissingManifestResourceException, InvalidCastException, MulticastNotSupportedException, InvalidOperationException, OutOfMemoryException, ObjectDisposedException, NotImplementedException, NotSupportedException, SocketException
- Throws:
java.lang.Throwable
ArgumentOutOfRangeException
ArgumentException
ArgumentNullException
ConfigurationException
ConfigurationErrorsException
MissingManifestResourceException
InvalidCastException
MulticastNotSupportedException
InvalidOperationException
OutOfMemoryException
ObjectDisposedException
NotImplementedException
NotSupportedException
SocketException
-
Start
public void Start(int backlog) throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentException, ArgumentNullException, NotSupportedException, ConfigurationException, ConfigurationErrorsException, OverflowException, MulticastNotSupportedException, InvalidOperationException, OutOfMemoryException, ObjectDisposedException, NotImplementedException, SocketException, SecurityException
- Throws:
java.lang.Throwable
ArgumentOutOfRangeException
ArgumentException
ArgumentNullException
NotSupportedException
ConfigurationException
ConfigurationErrorsException
OverflowException
MulticastNotSupportedException
InvalidOperationException
OutOfMemoryException
ObjectDisposedException
NotImplementedException
SocketException
SecurityException
-
Stop
public void Stop() throws java.lang.Throwable, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, NotSupportedException, ConfigurationException, ConfigurationErrorsException, OverflowException, MulticastNotSupportedException, InvalidOperationException, OutOfMemoryException, NotImplementedException, IndexOutOfRangeException, SocketException, SecurityException, ObjectDisposedException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentNullException
ArgumentOutOfRangeException
NotSupportedException
ConfigurationException
ConfigurationErrorsException
OverflowException
MulticastNotSupportedException
InvalidOperationException
OutOfMemoryException
NotImplementedException
IndexOutOfRangeException
SocketException
SecurityException
ObjectDisposedException
-
getExclusiveAddressUse
public boolean getExclusiveAddressUse() throws java.lang.Throwable, ObjectDisposedException, ArgumentOutOfRangeException, IndexOutOfRangeException, ArgumentException, ArgumentNullException, OutOfMemoryException, MissingManifestResourceException, NotImplementedException, InvalidOperationException, SocketException
-
setExclusiveAddressUse
public void setExclusiveAddressUse(boolean ExclusiveAddressUse) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, IndexOutOfRangeException, OutOfMemoryException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
NotImplementedException
NotSupportedException
ArgumentOutOfRangeException
CultureNotFoundException
MissingManifestResourceException
ObjectDisposedException
IndexOutOfRangeException
OutOfMemoryException
-
getLocalEndpoint
public 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
- Throws:
java.lang.Throwable
ObjectDisposedException
ArgumentOutOfRangeException
IndexOutOfRangeException
ArgumentException
ArgumentNullException
ConfigurationErrorsException
MulticastNotSupportedException
OutOfMemoryException
FileNotFoundException
DirectoryNotFoundException
UnauthorizedAccessException
IOException
PathTooLongException
DriveNotFoundException
OperationCanceledException
NotImplementedException
MissingManifestResourceException
InvalidOperationException
SocketException
-
getServer
public Socket getServer() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
-