C# Class Granados.X11.AbstractX11Socket

Abstract implementation of the IX11Socket.
Inheritance: IX11Socket
Mostra file Open project: poderosaproject/poderosa

Public Methods

Method Description
Close ( ) : void
Connect ( int display ) : void
Dispose ( ) : void
ReceiveBytes ( byte buffer, int offset, int length, int timeoutMillisec ) : bool
Send ( Granados.IO.DataFragment data, int timeoutMillisec ) : bool
StartReceivingThread ( Action onDataCallback, System.Action onClosedCallback ) : void

Protected Methods

Method Description
AbstractX11Socket ( ) : System
DoConnect ( int display ) : Socket
ReceiveBytes ( Socket sock, byte buffer, int offset, int length, int timeoutMillisec ) : bool
SendBytes ( Socket sock, byte buffer, int offset, int length, int timeoutMillisec ) : bool

Method Details

AbstractX11Socket() protected method

protected AbstractX11Socket ( ) : System
return System

Close() public method

public Close ( ) : void
return void

Connect() public method

public Connect ( int display ) : void
display int
return void

Dispose() public method

public Dispose ( ) : void
return void

DoConnect() protected abstract method

protected abstract DoConnect ( int display ) : Socket
display int
return Socket

ReceiveBytes() protected method

protected ReceiveBytes ( Socket sock, byte buffer, int offset, int length, int timeoutMillisec ) : bool
sock Socket
buffer byte
offset int
length int
timeoutMillisec int
return bool

ReceiveBytes() public method

public ReceiveBytes ( byte buffer, int offset, int length, int timeoutMillisec ) : bool
buffer byte
offset int
length int
timeoutMillisec int
return bool

Send() public method

public Send ( Granados.IO.DataFragment data, int timeoutMillisec ) : bool
data Granados.IO.DataFragment
timeoutMillisec int
return bool

SendBytes() protected method

protected SendBytes ( Socket sock, byte buffer, int offset, int length, int timeoutMillisec ) : bool
sock Socket
buffer byte
offset int
length int
timeoutMillisec int
return bool

StartReceivingThread() public method

public StartReceivingThread ( Action onDataCallback, System.Action onClosedCallback ) : void
onDataCallback Action
onClosedCallback System.Action
return void