Home
last modified time | relevance | path

Searched refs:serverId (Results 1 - 25 of 29) sorted by relevance

12

/foundation/communication/bluetooth/interfaces/inner_api/include/c_header/
H A Dohos_bt_gatt_server.h166 typedef void (*RegisterServerCallback)(int status, int serverId, BtUuid *appUuid);
173 typedef void (*ConnectServerCallback)(int connId, int serverId, const BdAddr *bdAddr);
180 typedef void (*DisconnectServerCallback)(int connId, int serverId, const BdAddr *bdAddr);
187 typedef void (*ServiceAddCallback)(int status, int serverId, BtUuid *uuid, int srvcHandle);
194 typedef void (*IncludeServiceAddCallback)(int status, int serverId, int srvcHandle, int includeSrvcHandle);
201 typedef void (*CharacteristicAddCallback)(int status, int serverId, BtUuid *uuid,
209 typedef void (*DescriptorAddCallback)(int status, int serverId, BtUuid *uuid,
217 typedef void (*ServiceStartCallback)(int status, int serverId, int srvcHandle);
224 typedef void (*ServiceStopCallback)(int status, int serverId, int srvcHandle);
231 typedef void (*ServiceDeleteCallback)(int status, int serverId, in
[all...]
H A Dohos_bt_socket.h88 * @param serverId The relative ID used to identify the current server socket, obtain the value by calling
92 int SocketServerAccept(int serverId);
97 * @param serverId The relative ID used to identify the current server socket, obtain the value by calling
101 int SocketServerClose(int serverId);
189 * @param serverId The relative ID used to identify the current server socket, obtain the value by calling
194 int SocketGetPsm(int serverId);
199 * @param serverId The relative ID used to identify the current server socket, obtain the value by calling
204 int SocketGetScn(int serverId);
H A Dohos_bt_spp.h57 * @param serverId The relative ID used to identify the current server socket, obtain the value by calling
61 int SppServerAccept(int serverId);
66 * @param serverId The relative ID used to identify the current server socket, obtain the value by calling
70 int SppServerClose(int serverId);
/foundation/communication/bluetooth/frameworks/inner/c_adapter/
H A Dohos_bt_gatt_server.cpp45 int serverId; member
50 if (serverId == device.serverId && in operator ==()
140 static void AddAttribute(int serverId, int serviceIndex, int attrType, UUID uuid, uint16_t handle) in AddAttribute() argument
143 0 <= serverId && serverId < MAXIMUM_NUMBER_APPLICATION, "serverId(%{public}d) is invalid", serverId); in AddAttribute()
148 GattServiceWrapper &gattServiceWrapper = GATTSERVICES(serverId, serviceIndex); in AddAttribute()
151 HILOGD("serverId( in AddAttribute()
155 GetAttribute(int serverId, int serviceIndex, std::function<bool(GattAttribute &)> predicate) GetAttribute() argument
175 GetAttributeWithHandle(int serverId, int handle) GetAttributeWithHandle() argument
189 GetAttributeWithUuid(int serverId, int serviceIndex, int attributeType, UUID uuid) GetAttributeWithUuid() argument
202 GetDescriptorAttribute( int serverId, int serviceIndex, UUID characterUuid, UUID descriptorUuid) GetDescriptorAttribute() argument
222 GetAttributeWithActualHandle(int serverId, uint16_t actualHandle) GetAttributeWithActualHandle() argument
239 GattServerCallbackWapper(BtGattServerCallbacks *callback, int serverId) GattServerCallbackWapper() argument
631 BleGattsUnRegister(int serverId) BleGattsUnRegister() argument
654 BleGattsConnect(int serverId, BdAddr bdAddr) BleGattsConnect() argument
678 BleGattsDisconnect(int serverId, BdAddr bdAddr, int connId) BleGattsDisconnect() argument
708 BleGattsAddService(int serverId, BtUuid srvcUuid, bool isPrimary, int number) BleGattsAddService() argument
759 BleGattsAddIncludedService(int serverId, int srvcHandle, int includedHandle) BleGattsAddIncludedService() argument
780 BleGattsAddCharacteristic(int serverId, int srvcHandle, BtUuid characUuid, int properties, int permissions) BleGattsAddCharacteristic() argument
838 BleGattsAddDescriptor(int serverId, int srvcHandle, BtUuid descUuid, int permissions) BleGattsAddDescriptor() argument
889 BleGattsStartService(int serverId, int srvcHandle) BleGattsStartService() argument
917 BleGattsStopService(int serverId, int srvcHandle) BleGattsStopService() argument
953 BleGattsDeleteService(int serverId, int srvcHandle) BleGattsDeleteService() argument
989 BleGattsClearServices(int serverId) BleGattsClearServices() argument
1004 BleGattsSendResponse(int serverId, GattsSendRspParam *param) BleGattsSendResponse() argument
1062 BleGattsSendIndication(int serverId, GattsSendIndParam *param) BleGattsSendIndication() argument
[all...]
H A Dohos_bt_spp.cpp68 * @param serverId The relative ID used to identify the current server socket, obtain the value by calling
72 int SppServerAccept(int serverId) in SppServerAccept() argument
74 HILOGI("start, serverId: %{public}d", serverId); in SppServerAccept()
75 return SocketServerAccept(serverId); in SppServerAccept()
81 * @param serverId The relative ID used to identify the current server socket, obtain the value by calling
85 int SppServerClose(int serverId) in SppServerClose() argument
87 HILOGI("serverId: %{public}d", serverId); in SppServerClose()
88 return SocketServerClose(serverId); in SppServerClose()
[all...]
H A Dohos_bt_socket.cpp136 int serverId = g_serverMap.AddObject(server); in SocketServerCreate() local
137 HILOGI("success, serverId: %{public}d, socketType: %{public}d, isEncrypt: %{public}d", serverId, in SocketServerCreate()
139 return serverId; in SocketServerCreate()
149 * @param serverId The relative ID used to identify the current server socket, obtain the value by calling
153 int SocketServerAccept(int serverId) in SocketServerAccept() argument
155 HILOGI("SocketServerAccept start, serverId: %{public}d", serverId); in SocketServerAccept()
156 std::shared_ptr<ServerSocket> server = g_serverMap.GetObject(serverId); in SocketServerAccept()
175 * @param serverId Th
179 SocketServerClose(int serverId) SocketServerClose() argument
447 SocketGetPsm(int serverId) SocketGetPsm() argument
463 SocketGetScn(int serverId) SocketGetScn() argument
[all...]
/foundation/communication/dsoftbus/tests/adapter/bluetooth/
H A Dbluetooth_mock.cpp191 int32_t BleGattsAddService(int32_t serverId, BtUuid srvcUuid, bool isPrimary, int32_t number) in BleGattsAddService() argument
193 return MockBluetooth::GetMocker()->BleGattsAddService(serverId, srvcUuid, isPrimary, number); in BleGattsAddService()
196 int32_t BleGattsUnRegister(int32_t serverId) in BleGattsUnRegister() argument
198 return MockBluetooth::GetMocker()->BleGattsUnRegister(serverId); in BleGattsUnRegister()
201 int32_t BleGattsAddCharacteristic(int32_t serverId, int32_t srvcHandle, in BleGattsAddCharacteristic() argument
205 serverId, srvcHandle, characUuid, properties, permissions); in BleGattsAddCharacteristic()
208 int32_t BleGattsAddDescriptor(int32_t serverId, int32_t srvcHandle, BtUuid descUuid, int32_t permissions) in BleGattsAddDescriptor() argument
210 return MockBluetooth::GetMocker()->BleGattsAddDescriptor(serverId, srvcHandle, descUuid, permissions); in BleGattsAddDescriptor()
213 int32_t BleGattsStartService(int32_t serverId, int32_t srvcHandle) in BleGattsStartService() argument
215 return MockBluetooth::GetMocker()->BleGattsStartService(serverId, srvcHandl in BleGattsStartService()
218 BleGattsStopService(int32_t serverId, int32_t srvcHandle) BleGattsStopService() argument
223 BleGattsDeleteService(int32_t serverId, int32_t srvcHandle) BleGattsDeleteService() argument
228 BleGattsDisconnect(int32_t serverId, BdAddr bdAddr, int32_t connId) BleGattsDisconnect() argument
233 BleGattsSendResponse(int32_t serverId, GattsSendRspParam *param) BleGattsSendResponse() argument
238 BleGattsSendIndication(int32_t serverId, GattsSendIndParam *param) BleGattsSendIndication() argument
[all...]
H A Dbluetooth_mock.h67 virtual int BleGattsAddService(int serverId, BtUuid srvcUuid, bool isPrimary, int number) = 0;
68 virtual int BleGattsUnRegister(int serverId);
70 int serverId, int srvcHandle, BtUuid characUuid, int properties, int permissions) = 0;
71 virtual int BleGattsAddDescriptor(int serverId, int srvcHandle, BtUuid descUuid, int permissions) = 0;
72 virtual int BleGattsStartService(int serverId, int srvcHandle) = 0;
73 virtual int BleGattsStopService(int serverId, int srvcHandle) = 0;
74 virtual int BleGattsDeleteService(int serverId, int srvcHandle) = 0;
75 virtual int BleGattsDisconnect(int serverId, BdAddr bdAddr, int connId) = 0;
76 virtual int BleGattsSendResponse(int serverId, GattsSendRspParam *param) = 0;
77 virtual int BleGattsSendIndication(int serverId, GattsSendIndPara
[all...]
/foundation/communication/dsoftbus/tests/adapter/broadcast/
H A Dbluetooth_mock.cpp242 int32_t BleGattsAddService(int32_t serverId, BtUuid srvcUuid, bool isPrimary, int32_t number) in BleGattsAddService() argument
244 return MockBluetooth::GetMocker()->BleGattsAddService(serverId, srvcUuid, isPrimary, number); in BleGattsAddService()
247 int32_t BleGattsUnRegister(int32_t serverId) in BleGattsUnRegister() argument
249 return MockBluetooth::GetMocker()->BleGattsUnRegister(serverId); in BleGattsUnRegister()
252 int32_t BleGattsAddCharacteristic(int32_t serverId, int32_t srvcHandle, in BleGattsAddCharacteristic() argument
256 serverId, srvcHandle, characUuid, properties, permissions); in BleGattsAddCharacteristic()
259 int32_t BleGattsAddDescriptor(int32_t serverId, int32_t srvcHandle, BtUuid descUuid, int32_t permissions) in BleGattsAddDescriptor() argument
261 return MockBluetooth::GetMocker()->BleGattsAddDescriptor(serverId, srvcHandle, descUuid, permissions); in BleGattsAddDescriptor()
264 int32_t BleGattsStartService(int32_t serverId, int32_t srvcHandle) in BleGattsStartService() argument
266 return MockBluetooth::GetMocker()->BleGattsStartService(serverId, srvcHandl in BleGattsStartService()
269 BleGattsStopService(int32_t serverId, int32_t srvcHandle) BleGattsStopService() argument
274 BleGattsDeleteService(int32_t serverId, int32_t srvcHandle) BleGattsDeleteService() argument
279 BleGattsDisconnect(int32_t serverId, BdAddr bdAddr, int32_t connId) BleGattsDisconnect() argument
284 BleGattsSendResponse(int32_t serverId, GattsSendRspParam *param) BleGattsSendResponse() argument
289 BleGattsSendIndication(int32_t serverId, GattsSendIndParam *param) BleGattsSendIndication() argument
[all...]
H A Dbluetooth_mock.h75 virtual int32_t BleGattsAddService(int32_t serverId, BtUuid srvcUuid, bool isPrimary, int32_t number) = 0;
76 virtual int32_t BleGattsUnRegister(int32_t serverId);
78 int32_t serverId, int32_t srvcHandle, BtUuid characUuid, int32_t properties, int32_t permissions) = 0;
79 virtual int32_t BleGattsAddDescriptor(int32_t serverId,
81 virtual int32_t BleGattsStartService(int32_t serverId, int32_t srvcHandle) = 0;
82 virtual int32_t BleGattsStopService(int32_t serverId, int32_t srvcHandle) = 0;
83 virtual int32_t BleGattsDeleteService(int32_t serverId, int32_t srvcHandle) = 0;
84 virtual int32_t BleGattsDisconnect(int32_t serverId, BdAddr bdAddr, int32_t connId) = 0;
85 virtual int32_t BleGattsSendResponse(int32_t serverId, GattsSendRspParam *param) = 0;
86 virtual int32_t BleGattsSendIndication(int32_t serverId, GattsSendIndPara
[all...]
/foundation/communication/dsoftbus/adapter/common/net/bluetooth/ble/
H A Dsoftbus_adapter_ble_gatt_server.c47 static int32_t SetConnIdAndAddr(int connId, int serverId, const SoftBusBtAddr *btAddr);
303 static void BleRegisterServerCallback(int status, int serverId, BtUuid *appUuid) in BleRegisterServerCallback() argument
305 CONN_LOGI(CONN_BLE, "status=%{public}d, severId=%{public}d", status, serverId); in BleRegisterServerCallback()
321 g_halServerId = serverId; in BleRegisterServerCallback()
326 static void BleConnectServerCallback(int connId, int serverId, const BdAddr *bdAddr) in BleConnectServerCallback() argument
338 CONN_LOGI(CONN_BLE, "ConnectServerCallback is coming, connId=%{public}d, serverId=%{public}d", connId, serverId); in BleConnectServerCallback()
339 if (serverId != g_halServerId) { in BleConnectServerCallback()
340 CONN_LOGI(CONN_BLE, "invalid serverId, halserverId=%{public}d", g_halServerId); in BleConnectServerCallback()
343 (void)SetConnIdAndAddr(connId, serverId, (SoftBusBtAdd in BleConnectServerCallback()
362 BleDisconnectServerCallback(int connId, int serverId, const BdAddr *bdAddr) BleDisconnectServerCallback() argument
381 BleServiceAddCallback(int status, int serverId, BtUuid *uuid, int srvcHandle) BleServiceAddCallback() argument
402 BleIncludeServiceAddCallback(int status, int serverId, int srvcHandle, int includeSrvcHandle) BleIncludeServiceAddCallback() argument
409 BleCharacteristicAddCallback(int status, int serverId, BtUuid *uuid, int srvcHandle, int characteristicHandle) BleCharacteristicAddCallback() argument
427 BleDescriptorAddCallback(int status, int serverId, BtUuid *uuid, int srvcHandle, int descriptorHandle) BleDescriptorAddCallback() argument
445 BleServiceStartCallback(int status, int serverId, int srvcHandle) BleServiceStartCallback() argument
461 BleServiceStopCallback(int status, int serverId, int srvcHandle) BleServiceStopCallback() argument
476 BleServiceDeleteCallback(int status, int serverId, int srvcHandle) BleServiceDeleteCallback() argument
681 SetConnIdAndAddr(int connId, int serverId, const SoftBusBtAddr *btAddr) SetConnIdAndAddr() argument
[all...]
/foundation/communication/dsoftbus/core/connection/br/src/
H A Dsoftbus_conn_br_connection.c51 int32_t serverId; member
669 if (serverState->serverId != -1) { in CheckBrServerStateAndOpenSppServer()
670 g_sppDriver->CloseSppServer(serverState->serverId); in CheckBrServerStateAndOpenSppServer()
671 serverState->serverId = -1; in CheckBrServerStateAndOpenSppServer()
674 int32_t serverId = g_sppDriver->OpenSppServer(name, (int32_t)strlen(name), UUID, 0); in CheckBrServerStateAndOpenSppServer() local
675 if (serverId == -1) { in CheckBrServerStateAndOpenSppServer()
682 CONN_LOGI(CONN_BR, "open br server ok, traceId=%{public}u, serverId=%{public}d", serverState->traceId, in CheckBrServerStateAndOpenSppServer()
683 serverId); in CheckBrServerStateAndOpenSppServer()
688 g_sppDriver->CloseSppServer(serverId); in CheckBrServerStateAndOpenSppServer()
694 g_sppDriver->CloseSppServer(serverId); in CheckBrServerStateAndOpenSppServer()
720 int32_t serverId = serverState->serverId; ListenTask() local
[all...]
/foundation/communication/dhcp/services/dhcp_server/src/
H A Ddhcp_dhcpd.cpp86 config->gateway = config->serverId; in InitNetworkAbout()
87 DHCP_LOGW("InitNetworkAbout, set gateway to serverId as default."); in InitNetworkAbout()
133 config->pool.beginAddress = FirstIpAddress(config->serverId, config->netmask); in InitAddressRange()
134 config->pool.endAddress = LastIpAddress(config->serverId, config->netmask); in InitAddressRange()
163 DHCP_LOGW("%{public}s, set dns to serverId as default.", __func__); in InitDomainNameServer()
164 dnsAddress = config->serverId; in InitDomainNameServer()
184 config->serverId = argServerId; in InitServerId()
190 if (!config->serverId) { in InitServerId()
H A Ddhcp_s_server.cpp585 uint32_t serverNetwork = NetworkAddress(pool->serverId, pool->netmask); in CheckAddressRange()
733 reply->packet.siaddr = srvIns->addressPool.serverId; in FillReply()
863 int AddReplyServerIdOption(PDhcpOptionList options, uint32_t serverId) in AddReplyServerIdOption() argument
869 if (!serverId || serverId == INADDR_BROADCAST) { in AddReplyServerIdOption()
874 if (AppendAddressOption(&optSrvId, serverId) != RET_SUCCESS) { in AddReplyServerIdOption()
1174 if (reqSrvId != srvIns->addressPool.serverId) { in ValidateRequestMessage()
1205 if (!IpInNetwork(reqIp, srvIns->addressPool.serverId, srvIns->addressPool.netmask)) { in HasNobindgRequest()
1580 AddReplyServerIdOption(&reply->options, srvIns->addressPool.serverId) != RET_SUCCESS) { in SendDhcpOffer()
1637 if (AddReplyServerIdOption(&reply->options, srvIns->addressPool.serverId) ! in SendDhcpAck()
[all...]
H A Ddhcp_config.cpp90 if (((strcmp(pKey, "serverId") == 0) && common) || ((strcmp(pKey, "server") == 0) && !common)) { in SetNetConfigInfo()
91 dhcpConfig->serverId = uValue; in SetNetConfigInfo()
202 } else if ((((strcmp(pTok, "serverId") == 0) && common) || ((strcmp(pTok, "server") == 0) && !common)) || in SetDhcpConfig()
272 if ((strlen(config->ifname) > 0) && ((config->serverId == 0))) { in CheckDhcpConfig()
273 DHCP_LOGE("failed to config serverId or netmask"); in CheckDhcpConfig()
/foundation/communication/dsoftbus/tests/core/connection/ble/mock/
H A Dconnection_ble_mock.cpp89 int32_t BleGattsAddService(int32_t serverId, BtUuid srvcUuid, bool isPrimary, int32_t number) in BleGattsAddService() argument
91 return GetConnectionBleInterface()->BleGattsAddService(serverId, srvcUuid, isPrimary, number); in BleGattsAddService()
H A Dconnection_ble_mock.h50 virtual int BleGattsAddService(int serverId, BtUuid srvcUuid, bool isPrimary, int number) = 0;
/foundation/communication/dhcp/test/unittest/services/dhcp_server/unittest/
H A Ddhcp_s_server_test.cpp74 uint32_t serverId = ParseIpAddr("192.168.189.254"); in InitServerConfig() local
78 if (serverId == 0 || netmask == 0 || beginIp == 0 || endIp == 0) { in InitServerConfig()
91 config->serverId = serverId; in InitServerConfig()
H A Ddhcp_address_pool_test.cpp58 uint32_t serverId = ParseIpAddr("192.168.100.1"); in SamplePoolConfig() local
64 testPool.serverId = serverId; in SamplePoolConfig()
77 testPool.serverId = 0; in ResetPollConfig()
/foundation/communication/dhcp/services/dhcp_server/include/
H A Ddhcp_config.h31 uint32_t serverId; /* Server identifier. */ member
H A Ddhcp_address_pool.h42 uint32_t serverId; member
/foundation/communication/dsoftbus/core/adapter/br/mock/
H A Dwrapper_br_interface.c141 static int32_t GetSppServerPort(int serverId) in GetSppServerPort() argument
143 return SocketGetScn(serverId); in GetSppServerPort()
/foundation/communication/dsoftbus/core/adapter/br/include/
H A Dwrapper_br_interface.h48 int32_t (*GetSppServerPort)(int serverId);
/foundation/communication/dhcp/test/fuzztest/dhcpaddresspool_fuzzer/
H A Ddhcpaddresspool_fuzzer.cpp45 pool.serverId = static_cast<uint32_t>(data[0]); in DhcpAddressPoolFuzzTest()
/foundation/filemanagement/dfs_service/services/distributedfiledaemon/src/network/softbus/
H A Dsoftbus_agent.cpp141 int32_t serverId = serverIdMap_[sessionName_]; in QuitDomain() local
142 Shutdown(serverId); in QuitDomain()

Completed in 16 milliseconds

12