Example #1
0
 public Association(DICOMServiceClass serviceClass, TcpClient client)
 {
     ServiceClass         = serviceClass;
     Stream               = new BufferedStream(client.GetStream());
     Reader               = new NetworkBinaryReader(Stream);
     PresentationContexts = new List <PresentationContext>();
     IpAddress            = ((IPEndPoint)client.Client.RemoteEndPoint).Address.ToString();
     Port             = ((IPEndPoint)client.Client.RemoteEndPoint).Port;
     PDUProcessor     = new PDUProcessor();
     PDataProcessor   = new PDataProcessor();
     State            = NetworkState.IDLE;
     OutboundMessages = new ConcurrentQueue <AbstractDIMSEBase>();
 }
Example #2
0
 public Association(DICOMServiceClass serviceClass, TcpClient client)
 {
     ServiceClass = serviceClass;
     Stream = new BufferedStream(client.GetStream());
     Reader = new NetworkBinaryReader(Stream);
     PresentationContexts = new List<PresentationContext>();
     IpAddress = ((IPEndPoint)client.Client.RemoteEndPoint).Address.ToString();
     Port = ((IPEndPoint)client.Client.RemoteEndPoint).Port;
     PDUProcessor = new PDUProcessor();
     PDataProcessor = new PDataProcessor();
     State = NetworkState.IDLE;
     OutboundMessages = new ConcurrentQueue<AbstractDIMSEBase>();
 }