17 #include <pia/definitions.h> 19 #include <pia/local/local_LocalNetworkSetting.h> 57 virtual LocalNetworkType GetLocalNetworkType()
const 59 return LOCAL_NETWORK_TYPE_UDS;
86 m_LocalCommunicationId(0),
87 m_PassphraseLength(0),
89 m_ApplicationDataSize(0)
91 memset(m_Passphrase, 0,
sizeof(m_Passphrase));
92 memset(m_ApplicationData, 0,
sizeof(m_ApplicationData));
130 return m_NetworkDescription.GetNowEntry();
140 return m_NetworkDescription.GetMaxEntry();
154 return m_NetworkDescription.CanConnectAsClient();
157 virtual u32 GetLocalCommunicationId()
const 159 return m_NetworkDescription.GetLocalCommunicationId();
169 return m_NetworkDescription.GetSubId();
181 return m_NetworkDescription.GetChannel();
193 if (!PIA_IS_VALID_POINTER(pBssidBuffer))
197 memcpy(pBssidBuffer, m_NetworkDescription.GetBssid(), nn::uds::MAC_ADDRESS_SIZE);
203 const nn::uds::NetworkDescription& GetNetworkDescription()
const 205 return m_NetworkDescription;
212 nn::uds::NetworkDescription& GetNetworkDescription()
214 return m_NetworkDescription;
221 void SetNetworkDescription(
const nn::uds::NetworkDescription& networkDescription)
223 m_NetworkDescription = networkDescription;
231 m_NetworkDescription = pUdsDesc->m_NetworkDescription;
235 nn::uds::NetworkDescription m_NetworkDescription;
248 m_PassphraseLength(0)
250 memset(m_Passphrase, 0,
sizeof(m_Passphrase));
262 class UdsScanNetworkSetting :
public LocalScanNetworkSetting
265 UdsScanNetworkSetting()
266 : LocalScanNetworkSetting(),
268 m_LocalCommunicationId(0),
275 u32 m_LocalCommunicationId;
281 class UdsNetworkConnectionStatus :
public LocalConnectionStatus
284 UdsNetworkConnectionStatus()
285 : LocalConnectionStatus()
289 virtual u8 GetParticipantNum()
const 291 return m_ConnectionStatus.nowEntry;
294 nn::uds::ConnectionStatus m_ConnectionStatus;
297 class UdsBeaconSystemData :
public LocalBeaconSystemData
300 UdsBeaconSystemData()
301 : LocalBeaconSystemData()
306 class UdsBeaconSystemDataHostMigration :
public LocalBeaconSystemData
309 UdsBeaconSystemDataHostMigration()
311 memset(m_MacAddress, 0,
sizeof(m_MacAddress));
312 memset(m_ReservedUdsHostMigration, 0,
sizeof(m_ReservedUdsHostMigration));
315 bit8 m_MacAddress[nn::uds::MAC_ADDRESS_SIZE];
316 u8 m_ReservedUdsHostMigration[6];
Class that holds information about a network discovered via the nearby network search feature...
Definition: local_UdsNetworkSetting.h:347
u32 m_LocalCommunicationId
Specifies the local communication ID. Specify the value generated by LocalNetwork::CreateLocalCommuni...
Definition: local_UdsNetworkSetting.h:97
UdsCreateNetworkSetting()
The default constructor.
Definition: local_UdsNetworkSetting.h:82
Class for configuring the creation of networks that use the UDS library.
Definition: local_UdsNetworkSetting.h:76
static const size_t UDS_PASSPHRASE_LENGTH_MAX
Maximum size of the passphrase for generating the encryption key used in communication.
Definition: local_UdsNetworkSetting.h:32
Class for configuring connections to networks that use the UDS library.
Definition: local_UdsNetworkSetting.h:243
size_t m_ApplicationDataSize
Size of the optional data to set for the beacon. The size must be no greater than the value that can ...
Definition: local_UdsNetworkSetting.h:102
static const u8 STATION_MAX_ENTRY
The maximum number of nodes that can connect. The local network host is included in the number of con...
Definition: local_LocalNetworkSetting.h:33
u8 m_SubId
Specifies an ID for identifying the communication mode. Set this parameter to a value between 0x00 an...
Definition: local_UdsNetworkSetting.h:95
u8 m_MaxEntry
Maximum number of stations that can connect to the network.
Definition: local_UdsNetworkSetting.h:96
virtual bool IsOpened() const
Gets whether the network allows participation.
Definition: local_UdsNetworkSetting.h:152
Class for configuring a local network.
Definition: local_LocalNetworkSetting.h:73
Class that holds information about the network discovered using nearby network search.
Definition: local_LocalNetworkSetting.h:262
static const u32 UDS_RECEIVE_BUFFER_SIZE_MIN
Defines the minimum receive buffer size.
Definition: local_UdsNetworkSetting.h:28
nn::uds::ScrambledLocalFriendCode m_ScrambledLocalFriendCode
Information that can be converted into a local friend code.
Definition: local_UdsNetworkSetting.h:337
static const u32 UDS_SCAN_BUFFER_SIZE_MIN
Minimum size of the scan buffer.
Definition: local_UdsNetworkSetting.h:29
size_t m_PassphraseLength
Specifies the size of the passphrase used to encrypt the wireless layer. Must be at least UDS_PASSPHR...
Definition: local_UdsNetworkSetting.h:99
u8 m_ReceiveOption
Specifies UDS receive options. Always set nn::uds::NO_WAIT to on. Use the OR operator to set multiple...
Definition: local_UdsNetworkSetting.h:67
UdsNetworkDescription()
The default constructor.
Definition: local_UdsNetworkSetting.h:116
Class that holds information about stations that are connected to a network that uses the UDS library...
Definition: local_UdsNetworkSetting.h:330
size_t m_ReceiveBufferSize
Specifies the receive buffer size. The size must be at least local::UDS_RECEIVE_BUFFER_SIZE_MIN and a...
Definition: local_UdsNetworkSetting.h:63
void * m_pReceiveBuffer
Specifies the receive buffer size. This value should be specified if you want to allocate the buffer ...
Definition: local_UdsNetworkSetting.h:64
u8 m_PassphraseLength
Specifies the size of the passphrase used to encrypt the wireless layer. Must be at least UDS_PASSPHR...
Definition: local_UdsNetworkSetting.h:254
nn::cfg::CTR::UserName * m_pUserName
Returns the user name.
Definition: local_UdsNetworkSetting.h:68
Class for configuring the creation of a local network.
Definition: local_LocalNetworkSetting.h:102
virtual u16 GetChannel() const
Gets the channel being used for the communication.
Definition: local_UdsNetworkSetting.h:179
u8 m_SendOption
Specifies UDS send options. Available options include nn::uds::NO_WAIT and nn::uds::FORCE_DIRECT_BC. Use the OR operator to set multiple options.
Definition: local_UdsNetworkSetting.h:66
Class that holds information about networks that use the UDS library.
Definition: local_UdsNetworkSetting.h:110
Class that holds information about a local network.
Definition: local_LocalNetworkSetting.h:121
virtual u8 GetSubId() const
Gets the ID for identifying the communication mode.
Definition: local_UdsNetworkSetting.h:167
virtual void GetBssid(bit8 *pBssidBuffer) const
Gets the BSSID (the host's MAC address).
Definition: local_UdsNetworkSetting.h:191
static const size_t UDS_PASSPHRASE_LENGTH_MIN
Minimum size of the passphrase for generating the encrypted key used in communication.
Definition: local_UdsNetworkSetting.h:31
UdsNetworkDescription m_NetworkDescription
Information about the network.
Definition: local_UdsNetworkSetting.h:355
size_t m_ScanBufferSize
Specifies the scan buffer size. The size must be at least local::UDS_SCAN_BUFFER_SIZE_MIN.
Definition: local_UdsNetworkSetting.h:65
virtual u32 GetCurrentParticipants() const
Gets the number of stations currently participating in the network.
Definition: local_UdsNetworkSetting.h:128
nn::cfg::UserName m_UserName
The user name.
Definition: local_UdsNetworkSetting.h:338
u8 m_Channel
Specifies the channel to use for communication. Specify channel 0 (automatic), 1, 6...
Definition: local_UdsNetworkSetting.h:100
virtual u32 GetMaxParticipants() const
Gets the maximum number of stations that can participate in the network.
Definition: local_UdsNetworkSetting.h:138
static const size_t UDS_APPLICATION_DATA_SIZE_MAX
Maximum size of the application data that can be set for the beacon. The size available for the appli...
Definition: local_UdsNetworkSetting.h:33
Class for configuring networks that use the UDS library.
Definition: local_UdsNetworkSetting.h:40
Class for configuring a connection to a local network.
Definition: local_LocalNetworkSetting.h:152
Class that holds information about stations connected to a local network.
Definition: local_LocalNetworkSetting.h:230