C# Class Tornado.iostream.IOStream

Afficher le fichier Open project: swax/Tornado.Net Class Usage Examples

Méthodes publiques

Свойство Type Description
error object
io_loop Tornado.ioloop.IOLoop
max_buffer_size int
read_chunk_size int
socket System.Net.Sockets.Socket

Méthodes publiques

Méthode Description
IOStream ( Socket socket_, IOLoop io_loop_, int max_buffer_size_ = 104857600, int read_chunk_size_ = 4096 ) : System
_read_from_buffer ( ) : bool
_set_read_callback ( Action callback ) : void
_try_inline_read ( ) : void
close ( ) : void
closed ( ) : bool
read_bytes ( int num_bytes, Action callback, Action streaming_callback = null ) : void
read_until ( byte delimiter, Action callback ) : void
read_until_regex ( string regex, Action callback ) : void
reading ( ) : bool
set_close_callback ( System.Action callback ) : void
write ( byte data, System.Action callback = null ) : void
writing ( ) : bool

Private Methods

Méthode Description
_add_io_state ( int state ) : void
_check_closed ( ) : void
_consume ( int loc ) : byte[]
_double_prefix ( LinkedList deque ) : void
_handle_connect ( ) : void
_handle_events ( int fd, int events ) : void
_handle_read ( ) : void
_handle_write ( ) : void
_maybe_add_error_listener ( ) : void
_maybe_run_close_callback ( ) : void
_merge_prefix ( LinkedList deque, int size ) : void
_read_from_socket ( ) : byte[]
_read_to_buffer ( ) : int
_run_callback ( System.Action callback ) : void

Method Details

IOStream() public méthode

public IOStream ( Socket socket_, IOLoop io_loop_, int max_buffer_size_ = 104857600, int read_chunk_size_ = 4096 ) : System
socket_ System.Net.Sockets.Socket
io_loop_ Tornado.ioloop.IOLoop
max_buffer_size_ int
read_chunk_size_ int
Résultat System

_read_from_buffer() public méthode

public _read_from_buffer ( ) : bool
Résultat bool

_set_read_callback() public méthode

public _set_read_callback ( Action callback ) : void
callback Action
Résultat void

_try_inline_read() public méthode

public _try_inline_read ( ) : void
Résultat void

close() public méthode

public close ( ) : void
Résultat void

closed() public méthode

public closed ( ) : bool
Résultat bool

read_bytes() public méthode

public read_bytes ( int num_bytes, Action callback, Action streaming_callback = null ) : void
num_bytes int
callback Action
streaming_callback Action
Résultat void

read_until() public méthode

public read_until ( byte delimiter, Action callback ) : void
delimiter byte
callback Action
Résultat void

read_until_regex() public méthode

public read_until_regex ( string regex, Action callback ) : void
regex string
callback Action
Résultat void

reading() public méthode

public reading ( ) : bool
Résultat bool

set_close_callback() public méthode

public set_close_callback ( System.Action callback ) : void
callback System.Action
Résultat void

write() public méthode

public write ( byte data, System.Action callback = null ) : void
data byte
callback System.Action
Résultat void

writing() public méthode

public writing ( ) : bool
Résultat bool

Property Details

error public_oe property

public object error
Résultat object

io_loop public_oe property

public IOLoop,Tornado.ioloop io_loop
Résultat Tornado.ioloop.IOLoop

max_buffer_size public_oe property

public int max_buffer_size
Résultat int

read_chunk_size public_oe property

public int read_chunk_size
Résultat int

socket public_oe property

public Socket,System.Net.Sockets socket
Résultat System.Net.Sockets.Socket