Skip to content

Commit ca029c9

Browse files
authored
Merge pull request #2180 from joan-juyeon/tz10_ssdp_rollback
[ACR-1923] Rollback deprecated SSDP CAPI
2 parents a2c361c + 3f140b6 commit ca029c9

File tree

1 file changed

+8
-10
lines changed
  • docs/application/native/guides/connectivity

1 file changed

+8
-10
lines changed

docs/application/native/guides/connectivity/nsd.md

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
# Network Service Discovery
22

3-
> [!NOTE]
4-
> Since Tizen 10.0, all SSDP related APIs are deprecated and will be removed after two releases without any alternatives.
53

64
You can use 2 different protocols to perform network service discoveries to announce local services and search for remote services on a network, DNS-SD (DNS Service Discovery) and SSDP (Simple Service Discovery Protocol).
75

@@ -287,7 +285,7 @@ Another way to search for services is by first finding the service name and then
287285
288286
1. To start searching, use the `dnssd_browse_service()` function.
289287
The DNS-SD browser handle is stored in a `dnssd_browser_h` variable. For more information on the service types, see [http://www.dns-sd.org/ServiceTypes.html](http://www.dns-sd.org/ServiceTypes.html){:target="_blank"}:
290-
288+
291289
```
292290
dnssd_browser_h browser_handle;
293291
char *service_type = "_ftp._tcp";
@@ -297,10 +295,10 @@ Another way to search for services is by first finding the service name and then
297295
if (error_code == DNSSD_ERROR_NONE)
298296
dlog_print(DLOG_DEBUG, LOG_TAG, "Start browsing");
299297
```
300-
298+
301299
2. The callback defined in the `dnssd_browse_service()` function is called when the remote service becomes available or unavailable.
302300
But at this time, IP address of the found service is not known. To get the IP address, `dnssd_resolve_service()` function is used:
303-
301+
304302
```
305303
void
306304
__found_cb(dnssd_service_h dnssd_remote_service, dnssd_service_state_e state, void *user_data)
@@ -321,9 +319,9 @@ Another way to search for services is by first finding the service name and then
321319
}
322320
}
323321
```
324-
322+
325323
3. The callback defined in the `dnssd_resolve_service()` function is called when the IP address of the service is successfully resolved:
326-
324+
327325
```
328326
void
329327
__resolved_cb(dnssd_error_e result, dnssd_service_h dnssd_remote_service, void *user_data)
@@ -333,9 +331,9 @@ Another way to search for services is by first finding the service name and then
333331
}
334332
}
335333
```
336-
334+
337335
4. When the services no longer interest you, stop resolving and browsing using the browser handle:
338-
336+
339337
```
340338
dnssd_cancel_resolve_service(browser_handle);
341339
dnssd_cancel_browse_service(browser_handle);
@@ -456,4 +454,4 @@ To search for available services on a network, use a service type or target info
456454
- Tizen 3.0 and Higher for Wearable
457455
- API References
458456
- [DNSSD API](../../api/common/latest/group__CAPI__NETWORK__DNSSD__MODULE.html)
459-
- [SSDP API](../../api/common/latest/group__CAPI__NETWORK__SSDP__MODULE.html)
457+
- [SSDP API](../../api/common/latest/group__CAPI__NETWORK__SSDP__MODULE.html)

0 commit comments

Comments
 (0)