L2CapChannelServerSocketUtils class

Server side utilities for L2CAP channels as sockets.

L2CapChannelServerSocketUtils can be used on either a central or peripheral to accept single or multiplexed sockets for one l2cap channel. The type of single or multiplexed must be matched by both sides. For example, if the central uses L2CapChannelClientSocketUtils.multiplex then the peripheral must use L2CapChannelServerSocketUtils.multiplex.

For more information on multiplexing, see Multiplexing Connections.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

Static Methods

acceptSingle(L2CapChannel channel) ServerSocket
Creates an exclusive socket for one channel that will only accept once.
multiplex(L2CapChannel channel) ServerSocket
Creates a server side multiplexed socket over one channel.