Accept method (ILEADDicomNet)
short Accept (); | |
Overview |
Refer to Working with DICOM Network Connections. |
Remarks
(Medical Imaging Suite only) Accepts the latest connection request on a control that is setup as a server.
When a client requests a connection by calling the Connect method, the NetAccept event is generated on the server. Within the NetAccept event the server can decide whether to accept the connection or not. If the connection is accepted, the Accept method is called. This generates the NetConnect event on the client, letting the client know the connection has been made.
You should always accept a connection request. Once the connection is made you can check the SCU and close the connection if you do not wish to maintain it. Since the connection requests are queued, if you do not accept a connection, it remains in the queue. When the next request is received, it is placed in the queue behind the first request. Calling the Accept method at this point will connect the first request, not the second, since the first request is still in the queue.
See Also