• 沒有找到結果。

• System & Program Design • User & Operator Guide • Protocol Specification Report

N/A
N/A
Protected

Academic year: 2022

Share "• System & Program Design • User & Operator Guide • Protocol Specification Report"

Copied!
30
0
0

加載中.... (立即查看全文)

全文

(1)

Report

• Protocol Specification

• User & Operator Guide

• System & Program Design

• Problem and Solution

(2)

Protocol Specification

• Protocol Specification

• User & Operator Guide

• System & Program Design

• Problem & Solution

(3)

Protocol Specification

(1) (2) (3) (4) (5) (6)

(7)

(8)

(9)

(4)

Protocol Specification

1. Type 2. Error

3. Self Index

4. Sender Index 5. Receiver Index 6. Data Length 7. ID

8. Password

9. Data

(5)

User & Operator Guide

• Protocol Specification

• User & Operator Guide

• System & Program Design

• Problem & Solution

(6)

Press Left or Right

(7)

Registration

Press Left to choose new

(8)

Registration

Enter ID and Password, if will auto login if succes

(9)

Login

&

(10)

Messaging

After Login, There will appear a user list and you can choose a user to send message Choose a user and press Enter.

(11)

Messaging

Press Enter to send Message.

If you want to Send multiply lines message you can Press F2 to change into Long Text Mode

(12)

Messaging

Press F1 to change back to Text Mode and press Enter to send message

(13)

Messaging(Online)

The User you sent message to will receive the message if he or she is online.

(14)

Messaging(Offline)

If the user is currently offline, he or she will receive the message when he/she login.

(15)

Messaging(Historical)

The server side will keep a log on sent and received messages for users to query.

Messages will persist after server restarts, they are stored in a file

(16)

File Transfer

Type in File name and press Enter to transfer

(17)

File Transfer

Receiver side will show these messages

(18)

File Transfer(Multiply Files)

You can keep type in the file names and they will all transfer at the same time

(19)

File Transfer(Multiply Files)

Receiver side will show these messages

(20)

Bonus : Auto Reconnect

If Sever is close, client will ask reconnecting or not

(21)

Bonus : Encryption

Using AES-128 Encryption

When sending or receiving pack, encryption or decryption it

(22)

System & Program Design

• Protocol Specification

• User & Operator Guide

• System & Program Design

• Problem & Solution

(23)

FSM Client

• while (1) {

State Decision;

Receive Requests;

User Control;

File Transfer;

• }

(24)

FSM Client (signal handler)

• void sigint_shut_down

• void sigpipe_shut_down

(25)

FSM Server

• Receive a packet

• According to packet type do different things

(26)

AES Encryption

(27)

Problem & Solution

• Protocol Specification

• User & Operator Guide

• System & Program Design

• Problem & Solution

(28)

Problem and Solution

• Problem: 用Command Line做檔案傳輸需要輸入許 多複雜指令,不夠人性化。

• Solution: 自行設計simple interface,使用直覺化,

除了測試時比較方便,新使用者也容易上手。

(29)

Problem and Solution

• Problem: 封包傳送過程會遺失或不齊全, 傳送出去 跟接收端收到的大小不同,因為我們封包大小太 大(2048 Byte),每次傳出去後半段的封包都會遺 失。

• Solution: 將封包大小壓到1488Byte以下,封包傳

送就不會遺失了。

(30)

Problem and Solution

• Problem:封包中的data陣列如果被資料全填滿,將 會因為沒有終止字元使得讀取發生錯誤。

• Solution: 在char陣列最後面留幾個byte來存放終止

字元,問題即解決。

參考文獻

相關文件

多組樣本重複測量分析方法 多組樣本重複測量分析方法 Repeated measures ANOVA Repeated measures ANOVA..

If you see difficult sentences/ a difficult sentence or have (any) questions / a question, going over/through (=browsing) the article(s) again.. can/may help you

• To the right of the Draw mode buttons you find push buttons through which you can access all the functions that you need to define and solve the PDE problem: define

 If I buy a call option from you, I am paying you a certain amount of money in return for the right to force you to sell me a share of the stock, if I want it, at the strike price,

To encourage Sharon, her mom told her “if you can get good grades, I will give you a surprise.” So, Sharon had studied math all night and she also hadn’t slept well last week..

Without such insight into the real nature, no matter how long you cul- tivate serenity (another way of saying samatha -- my note) you can only suppress manifest afflictions; you

可以設定遊戲音 效以及是否離開

•  Please select Multiline Text and insert it into the survey. •  Optional item: you can set the minimum and maximum characters count in the edit panel on the right.. Save