Hengband  2.1.4
 全て データ構造 ファイル 関数 変数 型定義 マクロ定義 ページ
マクロ定義 | 関数 | 変数
chuukei.c

中継機能の実装 [詳細]

#include "angband.h"
#include <stdio.h>
#include <stdarg.h>
#include <ctype.h>
chuukei.cのインクルード依存関係図

マクロ定義

#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)
 

説明

中継機能の実装

日付
2014/01/02
作者
2014 Deskull rearranged comment for Doxygen.

マクロ定義

#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 void disable_chuukei_server ( void  )
static

呼出しグラフ:

static bool flush_ringbuf_client ( void  )
static

関数の呼び出しグラフ:

呼出しグラフ:

static long get_current_time ( void  )
static

呼出しグラフ:

static bool get_nextbuf ( char *  buf)
static

呼出しグラフ:

static int handle_movie_timestamp_data ( int  timestamp)
static

関数の呼び出しグラフ:

呼出しグラフ:

static errr init_buffer ( void  )
static

呼出しグラフ:

static errr insert_ringbuf ( char *  buf)
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 int read_movie_file ( void  )
static

関数の呼び出しグラフ:

呼出しグラフ:

static errr send_bigcurs_to_chuukei_server ( int  x,
int  y 
)
static

関数の呼び出しグラフ:

呼出しグラフ:

static errr send_curs_to_chuukei_server ( int  x,
int  y 
)
static

関数の呼び出しグラフ:

呼出しグラフ:

static errr send_text_to_chuukei_server ( int  x,
int  y,
int  len,
byte  col,
cptr  str 
)
static

関数の呼び出しグラフ:

呼出しグラフ:

static errr send_wipe_to_chuukei_server ( int  x,
int  y,
int  len 
)
static

関数の呼び出しグラフ:

呼出しグラフ:

static errr send_xtra_to_chuukei_server ( int  n,
int  v 
)
static

関数の呼び出しグラフ:

呼出しグラフ:

static bool string_is_repeat ( char *  str,
int  len 
)
static

呼出しグラフ:

static void update_term_size ( int  x,
int  y,
int  len 
)
static

関数の呼び出しグラフ:

呼出しグラフ:

static void win2unix ( int  col,
char *  buf 
)
static

呼出しグラフ:

変数

int browse_delay
static
char* buf
long epoch_time
static
struct { ... } fresh_queue
int inlen
int movie_fd
static
int movie_mode
static
int next
errr(* old_bigcurs_hook)(int x, int y)
static
errr(* old_curs_hook)(int x, int y)
static
errr(* old_text_hook)(int x, int y, int n, byte a, cptr s)
static
errr(* old_wipe_hook)(int x, int y, int n)
static
errr(* old_xtra_hook)(int n, int v)
static
struct { ... } ring
int rptr
int tail
int time[FRESH_QUEUE_SIZE]
int wptr