-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy path01.tcp.file.transfer.tex
36 lines (34 loc) · 1 KB
/
01.tcp.file.transfer.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
\documentclass{article}
\title{TCP file transfer}
\begin{document}
\maketitle
\section{Protocol}
\subsection{Description}
The application help you upload or download file from your server through terminal
\subsection{Commend}
The syntax will be:
chat_client {Server IP} [Option] {client path to file} {server path to file}
Option:
\begin{itemize}
\item \textbf{-u}: upload file to server
\item \textbf{-d}: download file from server
\end{itemize}
\subsection{Transfer string pattern}
\textbf{Notes:} this pattern applying for both client and server\newline
-------------------------------------------------
Type:[Client/Server]
\n
Client-path:{path to file}
\n
Server-path:{path to file}
\n
Request-type:[U/D]
\n
Content-length:{size of file}
\n\n
{Content data}
-------------------------------------------------
\section{Implementation}
We create a struct called "parameter" to keep header attribute of message the using
this parameter to decide the job on each size. The detail can be readed in lab1/FTP.h
\end{document}