Stay organized with collections
Save and categorize content based on your preferences.
Builder
class Builder
A builder class for L2capNetworkSpecifier.
Summary
Public constructors
Public methods
fun setHeaderCompression(headerCompression: Int): L2capNetworkSpecifier.Builder
Set the header compression mechanism to use for this network. If not set, defaults to HEADER_COMPRESSION_ANY. This option must be specified (i.e. must not be set to HEADER_COMPRESSION_ANY) when requesting or reserving a new network.
setPsm
fun setPsm(psm: Int): L2capNetworkSpecifier.Builder
Set the Protocol/Service Multiplexer (PSM) for the client to connect to. If not set, defaults to PSM_ANY.
Parameters |
psm |
Int: the Protocol/Service Multiplexer (PSM) to connect to. Value is between 0 and 255 inclusive |
setRemoteAddress
fun setRemoteAddress(remoteAddress: MacAddress?): L2capNetworkSpecifier.Builder
Set the remote address for the client to connect to. Only valid for client networks. If not set, the specifier matches any MAC address.
Parameters |
remoteAddress |
MacAddress?: the MAC address to connect to, or null to match any MAC address. |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-13 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-13 UTC."],[],[]]