'DeclarationPublic Overloads Sub Listen( _ ByVal Port As System.Integer _ )
public void Listen( System.int Port )
Parameters
- Port
The TCP port on which to receive connections
The TCP port on which to receive connections
'DeclarationPublic Overloads Sub Listen( _ ByVal Port As System.Integer _ )
public void Listen( System.int Port )
The TCP port on which to receive connections
More than one port may be active simultaneously. The listening sockets are all closed when the control is de-activated.
DicomServer server = new DicomServer(); // Handle incoming DICOM association requests server.AssociationRequest += (sender, e) => { Console.WriteLine($"Incoming DICOM association request from {e.Association.CallingAET}"); }; int port = 104; server.Listen(port);