Hengband  2.2.1
マクロ定義 | 関数 | 変数
chuukei.c ファイル

中継機能の実装 [詳解]

#include "angband.h"
#include "files.h"
#include "util.h"
#include "term.h"
#include "cmd-dump.h"
#include "inet.h"
#include "japanese.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 (TERM_LEN x, TERM_LEN y, int len, TERM_COLOR col, concptr 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 (concptr filename)
 
void prepare_browse_movie (concptr 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, TERM_COLOR a, concptr s)
 

詳解

中継機能の実装

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

マクロ定義詳解

◆ DEFAULT_DELAY

#define DEFAULT_DELAY   50

◆ FRESH_QUEUE_SIZE

#define FRESH_QUEUE_SIZE   4096

◆ RECVBUF_SIZE

#define RECVBUF_SIZE   1024

◆ RINGBUF_SIZE

#define RINGBUF_SIZE   1024*1024

◆ WAIT

#define WAIT   100*1000 /* ブラウズ側のウエイト(us単位) */

関数詳解

◆ browse_movie()

void browse_movie ( void  )
呼び出し関係図:

◆ disable_chuukei_server()

static void disable_chuukei_server ( void  )
static
被呼び出し関係図:

◆ flush_ringbuf_client()

static bool flush_ringbuf_client ( void  )
static
呼び出し関係図:
被呼び出し関係図:

◆ get_current_time()

static long get_current_time ( void  )
static
被呼び出し関係図:

◆ get_nextbuf()

static bool get_nextbuf ( char *  buf)
static
被呼び出し関係図:

◆ handle_movie_timestamp_data()

static int handle_movie_timestamp_data ( int  timestamp)
static
呼び出し関係図:
被呼び出し関係図:

◆ init_buffer()

static errr init_buffer ( void  )
static
被呼び出し関係図:

◆ insert_ringbuf()

static errr insert_ringbuf ( char *  buf)
static
呼び出し関係図:
被呼び出し関係図:

◆ prepare_browse_movie()

void prepare_browse_movie ( concptr  filename)
呼び出し関係図:

◆ prepare_browse_movie_aux()

void prepare_browse_movie_aux ( concptr  filename)
呼び出し関係図:

◆ prepare_chuukei_hooks()

void prepare_chuukei_hooks ( void  )
呼び出し関係図:
被呼び出し関係図:

◆ prepare_movie_hooks()

void prepare_movie_hooks ( void  )
呼び出し関係図:

◆ read_movie_file()

static int read_movie_file ( void  )
static
呼び出し関係図:
被呼び出し関係図:

◆ send_bigcurs_to_chuukei_server()

static errr send_bigcurs_to_chuukei_server ( int  x,
int  y 
)
static
呼び出し関係図:
被呼び出し関係図:

◆ send_curs_to_chuukei_server()

static errr send_curs_to_chuukei_server ( int  x,
int  y 
)
static
呼び出し関係図:
被呼び出し関係図:

◆ send_text_to_chuukei_server()

static errr send_text_to_chuukei_server ( TERM_LEN  x,
TERM_LEN  y,
int  len,
TERM_COLOR  col,
concptr  str 
)
static
呼び出し関係図:
被呼び出し関係図:

◆ send_wipe_to_chuukei_server()

static errr send_wipe_to_chuukei_server ( int  x,
int  y,
int  len 
)
static
呼び出し関係図:
被呼び出し関係図:

◆ send_xtra_to_chuukei_server()

static errr send_xtra_to_chuukei_server ( int  n,
int  v 
)
static
呼び出し関係図:
被呼び出し関係図:

◆ string_is_repeat()

static bool string_is_repeat ( char *  str,
int  len 
)
static
被呼び出し関係図:

◆ update_term_size()

static void update_term_size ( int  x,
int  y,
int  len 
)
static
呼び出し関係図:
被呼び出し関係図:

◆ win2unix()

static void win2unix ( int  col,
char *  buf 
)
static
被呼び出し関係図:

変数詳解

◆ browse_delay

int browse_delay
static

◆ buf

char* buf

◆ epoch_time

long epoch_time
static

◆ fresh_queue

struct { ... } fresh_queue

◆ inlen

int inlen

◆ movie_fd

int movie_fd
static

◆ movie_mode

int movie_mode
static

◆ next

int next

◆ old_bigcurs_hook

errr(* old_bigcurs_hook) (int x, int y)
static

◆ old_curs_hook

errr(* old_curs_hook) (int x, int y)
static

◆ old_text_hook

errr(* old_text_hook) (int x, int y, int n, TERM_COLOR a, concptr s)
static

◆ old_wipe_hook

errr(* old_wipe_hook) (int x, int y, int n)
static

◆ old_xtra_hook

errr(* old_xtra_hook) (int n, int v)
static

◆ ring

struct { ... } ring

◆ rptr

int rptr

◆ tail

int tail

◆ time

int time[FRESH_QUEUE_SIZE]

◆ wptr

int wptr