C# Class Dicom.Network.NetworkErrorStream

Inheritance: HookStream
显示文件 Open project: fo-dicom/mdcm

Private Properties

Property Type Description
FlipCoin bool

Public Methods

Method Description
NetworkErrorStream ( DcmSocket socket ) : System
Read ( byte buffer, int offset, int count ) : int
SetErrorClose ( int secondsTillError, bool readOnly ) : void
SetErrorGarbage ( int secondsTillError, bool readOnly ) : void
SetErrorTimeout ( int secondsTillError, bool readOnly ) : void
Write ( byte buffer, int offset, int count ) : void

Private Methods

Method Description
FlipCoin ( ) : bool

Method Details

NetworkErrorStream() public method

public NetworkErrorStream ( DcmSocket socket ) : System
socket DcmSocket
return System

Read() public method

public Read ( byte buffer, int offset, int count ) : int
buffer byte
offset int
count int
return int

SetErrorClose() public method

public SetErrorClose ( int secondsTillError, bool readOnly ) : void
secondsTillError int
readOnly bool
return void

SetErrorGarbage() public method

public SetErrorGarbage ( int secondsTillError, bool readOnly ) : void
secondsTillError int
readOnly bool
return void

SetErrorTimeout() public method

public SetErrorTimeout ( int secondsTillError, bool readOnly ) : void
secondsTillError int
readOnly bool
return void

Write() public method

public Write ( byte buffer, int offset, int count ) : void
buffer byte
offset int
count int
return void