TSocketTransport class
Socket implementation of the TTransport interface.
- Inheritance
-
- Object
- TTransport
- TIOStreamTransport
- TSocketTransport
- Implemented types
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- inFrame ↔ bool
-
Marks the end of the a message, if applicable.
getter/setter pairinherited
-
inputBuffer
↔ List<
int?> ? -
getter/setter pairinherited
- isOpen → bool
-
Queries whether the transport is open.
Returns
true
if the transport is open.no setteroverride -
outputBuffer
↔ List<
Int8List> ? -
getter/setter pairinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
close(
) → Future -
close socket and stream, and clear buffers
override
-
consumeBuffer(
int len) → void -
Consume
len
bytes from the buffer.inherited -
flush(
[bool oneway = false]) → Future -
write buffer to socket
override
-
getBuffer(
) → Int8List? -
Returns the bytes list
inherited
-
getBufferPosition(
) → int -
Returns the position in the buffer.
inherited
-
getBytesRemainingInBuffer(
) → int -
Returns the number of bytes available in the write buffer.
inherited
-
getSocket(
) → Socket? -
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
open(
) → Future -
open socket and init stream
override
-
read(
Int8List? buffer, int? offset, int? length) → int -
Reads from the underlying input stream if not null.
inherited
-
readAll(
Int8List buffer, int offset, int length) → int -
Guarantees that all of
length
bytes are actually read off the transport. Returns the number of bytes actually read, which must be equal tolength
. Throws TTransportError if there was an error reading datainherited -
toString(
) → String -
A string representation of this object.
inherited
-
write(
Int8List buffer, int offset, int length) → void -
Writes to the underlying output stream if not null.
inherited
-
writeAll(
Int8List buffer) → void -
Writes the
bytes
to the output. Throws TTransportError if there was an error writing datainherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited