Multiple call to UaClient_Session_BeginWrite

Questions regarding the use of the ANSI C SDK for Server or Client development or integration into customer products ...

Moderator: uasdkc

Post Reply
AlainB
Jr. Member
Jr. Member
Posts: 2
Joined: 04 Jun 2024, 10:47

Multiple call to UaClient_Session_BeginWrite

Post by AlainB »

Hi,

Can we use UaClient_Session_BeginWrite (within the same session) to write multiple tag's blocks without waiting for the UaClient_Session_Write_CB call back between them ?

Do we need to wait for the call back to be called before starting to write others tags somewhere else ?

(using the client SDK uasdkcclient-src-linux-v1.10.0-493 on RedHat 8.9)

Thanks

User avatar
Support Team
Hero Member
Hero Member
Posts: 3137
Joined: 18 Mar 2011, 15:09

Re: Multiple call to UaClient_Session_BeginWrite

Post by Support Team »

Hi,

you can write multiple tags in ONE single write call and thereafter should wait for the callback (and check error code if the write was successful).

If you "burst-write" many single tags without waiting for the finishing callback, the server may block you (DoS attack protection), or the server may reject the request when exeeding the "max parallel outstanding requests". That said you client may not work if annoying the server.
Best regards
Unified Automation Support Team

AlainB
Jr. Member
Jr. Member
Posts: 2
Joined: 04 Jun 2024, 10:47

Re: Multiple call to UaClient_Session_BeginWrite

Post by AlainB »

Thanks for your inputs

Post Reply