中継機能の実装 [詳細]
マクロ定義 | |
#define | RINGBUF_SIZE 1024*1024 |
#define | FRESH_QUEUE_SIZE 4096 |
#define | WAIT 100*1000 /* ブラウズ側のウエイト(us単位) */ |
#define | DEFAULT_DELAY 50 |
#define | RECVBUF_SIZE 1024 |
関数 | |
static void | disable_chuukei_server (void) |
static errr | init_buffer (void) |
static long | get_current_time (void) |
static errr | insert_ringbuf (char *buf) |
static bool | string_is_repeat (char *str, int len) |
static errr | send_text_to_chuukei_server (int x, int y, int len, byte col, cptr str) |
static errr | send_wipe_to_chuukei_server (int x, int y, int len) |
static errr | send_xtra_to_chuukei_server (int n, int v) |
static errr | send_curs_to_chuukei_server (int x, int y) |
static errr | send_bigcurs_to_chuukei_server (int x, int y) |
void | prepare_chuukei_hooks (void) |
void | prepare_movie_hooks (void) |
static int | handle_movie_timestamp_data (int timestamp) |
static int | read_movie_file (void) |
static void | win2unix (int col, char *buf) |
static bool | get_nextbuf (char *buf) |
static void | update_term_size (int x, int y, int len) |
static bool | flush_ringbuf_client (void) |
void | prepare_browse_movie_aux (cptr filename) |
void | prepare_browse_movie (cptr filename) |
void | browse_movie (void) |
変数 | |
static long | epoch_time |
static int | browse_delay |
static int | movie_fd |
static int | movie_mode |
struct { | |
int time [FRESH_QUEUE_SIZE] | |
int next | |
int tail | |
} | fresh_queue |
struct { | |
char * buf | |
int wptr | |
int rptr | |
int inlen | |
} | ring |
static errr(* | old_xtra_hook )(int n, int v) |
static errr(* | old_curs_hook )(int x, int y) |
static errr(* | old_bigcurs_hook )(int x, int y) |
static errr(* | old_wipe_hook )(int x, int y, int n) |
static errr(* | old_text_hook )(int x, int y, int n, byte a, cptr s) |
中継機能の実装
#define DEFAULT_DELAY 50 |
#define FRESH_QUEUE_SIZE 4096 |
#define RECVBUF_SIZE 1024 |
#define RINGBUF_SIZE 1024*1024 |
#define WAIT 100*1000 /* ブラウズ側のウエイト(us単位) */ |
void browse_movie | ( | void | ) |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
void prepare_browse_movie | ( | cptr | filename | ) |
void prepare_browse_movie_aux | ( | cptr | filename | ) |
void prepare_chuukei_hooks | ( | void | ) |
void prepare_movie_hooks | ( | void | ) |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
char* buf |
|
static |
struct { ... } fresh_queue |
int inlen |
|
static |
|
static |
int next |
|
static |
|
static |
|
static |
|
static |
struct { ... } ring |
int rptr |
int tail |
int time[FRESH_QUEUE_SIZE] |
int wptr |