Commit Graph
16 Commits
Author SHA1 Message Date
Francis Tsui 77ce859862 Switch ConnectionOptions to use MacAddress class.
PiperOrigin-RevId: 802210252
2025-09-02 10:56:48 -07:00
Guogang Li 2f07f1ceee Remove dependents on GTMLogger
PiperOrigin-RevId: 766849674
2025-06-03 15:42:07 -07:00
hai007 0ba9201113 Add AWDL in HelloConnection
PiperOrigin-RevId: 745025636
2025-04-08 01:10:26 -07:00
Nick Bourdakos 5fb7f69830 Expose NearbyFlags through Objective-C package so BLE v2 can more easily be enabled in the Swift SDK
PiperOrigin-RevId: 600790011
2024-01-23 08:04:03 -08:00
Janusz Sobczak 56acecdffa Migrate to AnyInvocable in DiscoveryListener
PiperOrigin-RevId: 571077933
2023-10-05 11:20:17 -07:00
Janusz Sobczak 2c55c0cdbd Refactor Pipe implementation
* Remove Pipe classes
* Rename BasePipe to Pipe
* Hide Pipe class in anonymous namespace in pipe.cc
* Add CreatePipe static method
* Replace Payload(std::function<InputStream&()>) with Payload(std::unique_ptr<InputStream>)
* Find&Replace Pipe usages

PiperOrigin-RevId: 557276980
2023-08-15 15:53:58 -07:00
hai007 3a88f4e217 record connection layer status code
PiperOrigin-RevId: 553302833
2023-08-09 19:06:13 -07:00
Anay Wadhera 4958a32c35 make ResultCallback a bare function type and convert to AnyInvocable
PiperOrigin-RevId: 551081080
2023-07-25 21:07:48 -07:00
Anay Wadhera 5da4b33824 Revert "Revert incoming connections listener changes for internal breakages."
PiperOrigin-RevId: 542381558
2023-06-21 15:36:44 -07:00
Anay Wadhera 1973b09849 Revert incoming connections listener changes for internal breakages.
PiperOrigin-RevId: 542010849
2023-06-20 12:16:10 -07:00
Anay Wadhera 5737b867ed implement startlisteningforincomingconnections
PiperOrigin-RevId: 540707703
2023-06-15 15:31:08 -07:00
Nick Bourdakos 3c72e4f40c Fix EXC_BAD_ACCESS crash when calling payload delegate methods.
Objective-C objects cannot be captured by reference in C++ lambdas and must always be captured by value.

This also takes a copy of the data returned from the Wi-Fi LAN reader, to prevent potential intermittent empty packet issues.

Fixes: #1702
PiperOrigin-RevId: 533925980
2023-05-21 19:19:18 -07:00
Anay Wadhera f2cadc2815 move payload listeners to absl::AnyInvocable
PiperOrigin-RevId: 533365325
2023-05-18 23:30:01 -07:00
Anay Wadhera 13f7fb7966 Remove generic variant of MediumSelector, we only use bool as the indicator type.
PiperOrigin-RevId: 521834776
2023-04-04 12:31:06 -07:00
hai007 e5efc0a09a Add all options to GNCAdvertisingOptions, GNCDiscoveryOptions, and GNCConnectionOptions.
PiperOrigin-RevId: 515153199
2023-03-08 15:08:30 -08:00
Nick Bourdakos 819f816600 Refactor nearby connections clients to be organized by languages.
PiperOrigin-RevId: 503308736
2023-01-19 17:36:07 -08:00