%# -*- coding: utf-8-unix -*-

\documentclass[zihao=-4]{ctexbook}

\input{config/main}

\begin{document}

\pagestyle{empty}                % 前导页无页眉页脚
%============================================================
 % 封面
\input{data/cover}     
%============================================================
 % 版权页
\input{data/copyright}     

\frontmatter                     % 从前言开始用罗马数字作为页码
%============================================================
% 前言
\input{data/preface}
%============================================================
% 目录
\cleardoublepage
\tableofcontents

\mainmatter	                     % 从正文开始用阿拉伯数字作为页码
\pagestyle{fancy}                % 正文有页眉页脚
\setcounter{page}{1}             % 正文页码从1开始
%============================================================
% 正文内容

% “网络抓包与协议分析”
\graphicspath{{figure/chapters/wireshark/}}
\input{data/ch_wireshark/preface}
\input{data/ch_wireshark/sec_arp}
\input{data/ch_wireshark/sec_ip}
\input{data/ch_wireshark/sec_tcp}

% “基于套接字的网络程序设计”
\graphicspath{{figure/chapters/socket/}}
\input{data/ch_socket/preface}
\input{data/ch_socket/sec_udp}
\input{data/ch_socket/sec_web}
\input{data/ch_socket/sec_smtp}

% “组网基础”
\graphicspath{{figure/chapters/ensp/}}
\input{data/ch_ensp/preface}
\input{data/ch_ensp/sec_static}
\input{data/ch_ensp/sec_rip}
\input{data/ch_ensp/sec_ospf}

% “路由器实现”
\graphicspath{{figure/chapters/router-openbox/}}
\input{data/ch_router-openbox/preface}
\input{data/ch_router-openbox/sec_switch}
\input{data/ch_router-openbox/sec_router}
\input{data/ch_router-openbox/sec_networking}

% “软件定义网络与网络测量”
\graphicspath{{figure/chapters/sdn-openbox/}}
\input{data/ch_sdn-openbox/preface}
\input{data/ch_sdn-openbox/sec_sdn}
\input{data/ch_sdn-openbox/sec_topo}
\input{data/ch_sdn-openbox/sec_ns}

%============================================================
% 附录
\appendix

% 速查手册
\graphicspath{{figure/appendixes/cheat_sheet/}}
\input{data/appendix/cheat_sheet}

% 华为网络仿真平台eNSP简介
\graphicspath{{figure/appendixes/ensp/}}
\input{data/appendix/ensp}

% FAST平台介绍与操作说明手册
\graphicspath{{figure/appendixes/fast/}}
\input{data/appendix/fast}

\end{document}