InboundConnection class abstract

Inheritance

Constructors

InboundConnection()

Properties

hashCode int
The hash code for this object.
no setterinherited
initiatedBy String?
This contains the value of the atsign initiated the connection
getter/setter pair
isMonitor bool?
getter/setter pair
maxRequestsPerTimeFrame int
The maximum number of requests allowed within the specified time frame.
getter/setter pairinherited
metaData AtConnectionMetaData
Gets the connection metadata
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
timeFrameInMillis int
The duration of the time frame within which requests are limited.
getter/setter pairinherited
underlying → dynamic
The underlying connection
no setterinherited

Methods

acceptRequests(dynamic callback(String, InboundConnection), dynamic streamCallback(List<int>, InboundConnection)) → void
close() Future<void>
closes the underlying connection
inherited
equals(InboundConnection connection) bool
Returns true if remote socket and remote port of this and connection matches
isInValid() bool
Returns true if connection is closed or idle for configured time
inherited
isRequestAllowed() bool
Checks whether a new request is allowed based on the rate limiting rules.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
write(String data) → void
Write some data to the underlying connection. Throws AtIOException for any exception during the operation
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited