mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-16 15:36:12 -04:00
Internal refactor
PiperOrigin-RevId: 815749899
This commit is contained in:
committed by
Copybara-Service
parent
a065584164
commit
cce45b745e
@@ -12,12 +12,14 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
// Note: File language is detected using heuristics. Many Objective-C++ headers are incorrectly
|
||||
// classified as C++ resulting in invalid linter errors. The use of "NSArray" and other Foundation
|
||||
// classes like "NSData", "NSDictionary" and "NSUUID" are highly weighted for Objective-C and
|
||||
// Objective-C++ scores. Oddly, "#import <Foundation/Foundation.h>" does not contribute any points.
|
||||
// This comment alone should be enough to trick the IDE in to believing this is actually some sort
|
||||
// of Objective-C file. See: cs/google3/devtools/search/lang/recognize_language_classifiers_data
|
||||
// Note: File language is detected using heuristics. Many Objective-C++ headers
|
||||
// are incorrectly classified as C++ resulting in invalid linter errors. The use
|
||||
// of "NSArray" and other Foundation classes like "NSData", "NSDictionary" and
|
||||
// "NSUUID" are highly weighted for Objective-C and Objective-C++ scores. Oddly,
|
||||
// "#import <Foundation/Foundation.h>" does not contribute any points. This
|
||||
// comment alone should be enough to trick the IDE in to believing this is
|
||||
// actually some sort of Objective-C file. See:
|
||||
// cs/google3/devtools/search/lang/recognize_language_classifiers_data
|
||||
|
||||
// TODO(b/293336684): Remove this file when shared Weave is complete.
|
||||
|
||||
@@ -27,15 +29,14 @@
|
||||
|
||||
#include "absl/functional/any_invocable.h"
|
||||
#include "internal/platform/exception.h"
|
||||
#include "internal/platform/implementation/ble_v2.h"
|
||||
|
||||
#import "internal/platform/implementation/apple/ble_socket.h"
|
||||
#include "internal/platform/implementation/ble.h"
|
||||
|
||||
namespace nearby {
|
||||
namespace apple {
|
||||
|
||||
// A BLE server socket for listening for incoming Weave sockets.
|
||||
class BleServerSocket : public api::ble_v2::BleServerSocket {
|
||||
class BleServerSocket : public api::ble::BleServerSocket {
|
||||
public:
|
||||
BleServerSocket() = default;
|
||||
~BleServerSocket() override;
|
||||
@@ -49,7 +50,7 @@ class BleServerSocket : public api::ble_v2::BleServerSocket {
|
||||
// On success, returns connected socket, ready to exchange data or nullptr on
|
||||
// error. Once error is reported, it is permanent, and ServerSocket must be
|
||||
// closed.
|
||||
std::unique_ptr<api::ble_v2::BleSocket> Accept() override
|
||||
std::unique_ptr<api::ble::BleSocket> Accept() override
|
||||
ABSL_LOCKS_EXCLUDED(mutex_);
|
||||
|
||||
// Close the server socket.
|
||||
|
||||
Reference in New Issue
Block a user