1 //
2 // Copyright (c) ZeroC, Inc. All rights reserved.
3 //
4 
5 #ifndef ICE_BT_UTIL_H
6 #define ICE_BT_UTIL_H
7 
8 #include <IceBT/Config.h>
9 #include <IceBT/Types.h>
10 
11 #include <Ice/Network.h>
12 
13 namespace IceBT
14 {
15 
16 bool isValidDeviceAddress(const std::string&);
17 bool parseDeviceAddress(const std::string&, DeviceAddress&);
18 std::string formatDeviceAddress(const DeviceAddress&);
19 
20 std::string addrToString(const std::string&, Ice::Int);
21 std::string addrToString(const SocketAddress&);
22 SocketAddress createAddr(const std::string&, Ice::Int);
23 
24 std::string fdToString(SOCKET);
25 void fdToAddressAndChannel(SOCKET, std::string&, int&, std::string&, int&);
26 int compareAddress(const SocketAddress&, const SocketAddress&);
27 
28 }
29 
30 #endif
31