RawSynchronousSocketMixin mixin
class MyRawSynchronousSocket with RawSynchronousSocketMixin implements RawSynchronousSocket {
// Must override
@override
RawSynchronousSocket get rawSynchronousSocket;
...
}
- Implemented types
Properties
- address → InternetAddress
-
The InternetAddress used to connect this socket.
no setteroverride
- hashCode → int
-
The hash code for this object.
no setterinherited
- port → int
-
The port used by this socket.
no setteroverride
- rawSynchronousSocket → RawSynchronousSocket
-
no setter
- remoteAddress → InternetAddress
-
The remote InternetAddress connected to by this socket.
no setteroverride
- remotePort → int
-
The remote port connected to by this socket.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
available(
) → int -
The number of received and unread bytes in the socket that can be read.
override
-
closeSync(
) → void -
Closes the RawSynchronousSocket.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
readIntoSync(
List< int> buffer, [int start = 0, int? end]) → int -
Reads bytes into an existing
buffer
.override -
readSync(
int bytes) → List< int> ? -
Reads up to
bytes
bytes from the socket.override -
shutdown(
SocketDirection direction) → void -
Shuts down a socket in the provided direction.
override
-
toString(
) → String -
A string representation of this object.
inherited
-
writeFromSync(
List< int> buffer, [int start = 0, int? end]) → void -
Writes from a
buffer
to the socket.override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited