←Select platform

Accept Method (DicomNet)

Summary

Accepts a connection request from an SCU.

Syntax

C#
VB
WinRT C#
C++
public void Accept(  
   Leadtools.Dicom.Networking.DicomNet net, 
   object hHandle 
) 
Public Sub Accept( _ 
   ByVal net As Leadtools.Dicom.Networking.DicomNet, _ 
   ByVal hHandle As Object _ 
)  
public void Accept(  
   Leadtools.Dicom.Networking.DicomNet net, 
   object hHandle 
) 
 function Leadtools.Dicom.Networking.DicomNet.Accept(  
   net , 
   hHandle  
) 
public: 
void Accept(  
   Leadtools.Dicom.Networking.DicomNet^ net, 
   Object^ hHandle 
)  

Parameters

net
A DicomNet object that represents the client (the SCU).

hHandle
Internal value used by LEAD. Required when accepting a new connection.

Remarks

When an SCU requests a connection by calling Connect, a call to the OnAccept method is generated on the SCP. Within the OnAccept method, the SCP can decide whether to accept the connection or not. If the connection is accepted, Accept is called. This generates a call to the OnConnect method on the SCU, letting the SCU 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 Accept at this point will connect the first request, not the second, since the first request is still in the queue.

Requirements

Target Platforms

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Dicom Assembly