Namespace Swan.Net
Classes
Connection
Represents a network connection either on the server or on the client. It wraps a TcpClient and its corresponding network streams. It is capable of working in 2 modes. Typically on the server side you will need to enable continuous reading and events. On the client side you may want to disable continuous reading and use the Read methods available. In continuous reading mode Read methods are not available and will throw an invalid operation exceptions if they are used. Continuous Reading Mode: Subscribe to data reception events, it runs a background thread, don't use Read methods Manual Reading Mode: Data reception events are NEVER fired. No background threads are used. Use Read methods to receive data.
ConnectionAcceptedEventArgs
The event arguments for when connections are accepted.
ConnectionAcceptingEventArgs
Occurs before a connection is accepted. Set the Cancel property to true to prevent the connection from being accepted.
ConnectionDataReceivedEventArgs
Event arguments for when data is received.
ConnectionFailureEventArgs
The event arguments for connection failure events.
ConnectionListener
TCP Listener manager with built-in events and asynchronous functionality. This networking component is typically used when writing server software.
ConnectionListenerFailedEventArgs
Event arguments for when a server listener fails to start.
ConnectionListenerStartedEventArgs
Event arguments for when a server listener is started.
ConnectionListenerStoppedEventArgs
Event arguments for when a server listener stopped.
IPAddressRange
Represents an inclusive range of IP addresses.
IPAddressRangeExtensions
Provides extension methods for instances and collections of IPAddressRange.
IPAddressUtility
Provides utility methods to work with the
JsonClient
Represents a HttpClient with extended methods to use with JSON payloads and bearer tokens authentication.
JsonRequestException
Represents errors that occurs requesting a JSON file through HTTP.
Network
Provides miscellaneous network utilities such as a Public IP finder, a DNS client to query DNS records of any kind, and an NTP client.
Enums
ConnectionDataReceivedTrigger
Enumerates the possible causes of the DataReceived event occurring.