Problem with getting network initialization status.

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
vasyl.horbatenko
Posts: 4
Joined: Mon, 2022-09-05, 09:33

Problem with getting network initialization status.

#1 Post by vasyl.horbatenko »

Hi OFFIS team,

I am implementing a class that inherits from DcmBaseSCPPool. DcmBaseSCPPool has function called "listen" that is doing network initialization and listening for incoming requests in the loop.
From the comment to this function:
* @return DUL_NOASSOCIATIONREQUEST if no connection is requested during
* timeout. Returns other error code if serious error occurs during
* listening. Will not return EC_Normal since listens forever if
* no timeout occurs.

With such implementation it is not possible to get a notification if it initialized network successfully or if it failed, e.g. the selected port is already taken and it is not possible to procced with listening part.

I created the PR that addresses this issue: https://github.com/DCMTK/dcmtk/pull/71
Please have a look, and let me know what do you think.

Michael Onken
DCMTK Developer
Posts: 2048
Joined: Fri, 2004-11-05, 13:47
Location: Oldenburg, Germany
Contact:

Re: Problem with getting network initialization status.

#2 Post by Michael Onken »

Hi,

it's already integrated and shows up soon on master (see comment on GitHub).

Thanks for the contribution :)

Best regards,
Michael

Post Reply

Who is online

Users browsing this forum: Google [Bot], Semrush [Bot] and 1 guest