Accept method (ILEADDicomNet)

Visual Basic example

Visual C++ 6.0 example

VB.NET example

C# example

 

Syntax

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

Elements:

Connect method, Listen method, NetConnect event, NetAccept event, UseSSLOptions property, SSLCreateFlags property, SSLMethodType property, SSLVerifyMode property, SSLCAFile property, SSLVerifyDepth property, SSLSuccess property, SSLOptions property, SSLPrivateKeyPassword property, SSLPrivateKeyPasswordEvent event

Topics:

DICOM Network Connection: Creating a Network Connection