SecureSocketTransport class
TLS over TCP: the AtTransport a native program connects with.
The constructor takes Socket rather than SecureSocket because every member below is plain socket delegation; the TLS lives entirely in SecureSocketTransportFactory, which is the only thing that constructs one.
A far-end close shows only as inbound ending. isOpen turns false on a local close or destroy alone, and add and flush can succeed after the peer has gone, so a consumer watches inbound to learn that it has.
- Implemented types
Constructors
- SecureSocketTransport(Socket socket)
Properties
- description → String
-
Identifies the far end well enough for one log line.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
inbound
→ Stream<
List< int> > -
The socket itself, never a re-broadcast of it.
no setteroverride
- isOpen → bool
-
Whether the channel can still carry bytes: false once destroy has run,
or once this side has closed it.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
add(
List< int> bytes) → void -
Throws
AtIOExceptionwhen the socket refusesbytes: a failed socket refuses with an IOException, adart:iosocket that has closed with a StateError.override -
destroy(
) → void -
Renders the channel unusable and discards whatever is still queued.
override
-
flush(
) → Future< void> -
Throws
AtIOExceptionwhen the socket fails before the bytes leave.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited