HackMD
  • New!
    New!  “Bookmark” and save your note
    Find a note that's worth keeping or want reading it later? “Bookmark” it to your personal reading list.
    Got it
    • New!  “Bookmark” and save your note
      New!  “Bookmark” and save your note
      Find a note that's worth keeping or want reading it later? “Bookmark” it to your personal reading list.
      Got it
      • Options
      • Versions and GitHub Sync
      • Transfer ownership
      • Delete this note
      • Template
      • Insert from template
      • Export
      • Dropbox
      • Google Drive
      • Gist
      • Import
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
      • Download
      • Markdown
      • HTML
      • Raw HTML
      • ODF (Beta)
      • Sharing Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Note Permission
      • Read
        • Owners
        • Signed-in users
        • Everyone
        Owners Signed-in users Everyone
      • Write
        • Owners
        • Signed-in users
        • Everyone
        Owners Signed-in users Everyone
      • More (Comment, Invitee)
      • Publishing
        Everyone on the web can find and read all notes of this public team.
        After the note is published, everyone on the web can find and read this note.
        See all published notes on profile page.
      • Commenting Enable
        Disabled Forbidden Owners Signed-in users Everyone
      • Permission
        • Forbidden
        • Owners
        • Signed-in users
        • Everyone
      • Invitee
      • No invitee
    Menu Sharing Help
    Menu
    Options
    Versions and GitHub Sync Transfer ownership Delete this note
    Export
    Dropbox Google Drive Gist
    Import
    Dropbox Google Drive Gist Clipboard
    Download
    Markdown HTML Raw HTML ODF (Beta)
    Back
    Sharing
    Sharing Link copied
    /edit
    View mode
    • Edit mode
    • View mode
    • Book mode
    • Slide mode
    Edit mode View mode Book mode Slide mode
    Note Permission
    Read
    Owners
    • Owners
    • Signed-in users
    • Everyone
    Owners Signed-in users Everyone
    Write
    Owners
    • Owners
    • Signed-in users
    • Everyone
    Owners Signed-in users Everyone
    More (Comment, Invitee)
    Publishing
    Everyone on the web can find and read all notes of this public team.
    After the note is published, everyone on the web can find and read this note.
    See all published notes on profile page.
    More (Comment, Invitee)
    Commenting Enable
    Disabled Forbidden Owners Signed-in users Everyone
    Permission
    Owners
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Invitee
    No invitee
       owned this note    owned this note      
    Published Linked with
    Like BookmarkBookmarked
    Subscribed
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    Subscribe
    --- title: Lab Meeting Minutes 2020/08/11 tags: lab_meeting --- > - [Meeting Regulation](http://ms11.voip.edu.tw/~manager/HOWTO/SOP/SOP-0014.php) >--- >Outline >[TOC] --- # PERAL Lab Meeting - 時間:109年8月11日 19:00 - 地點:暨南大學科三館321教室 - 主講人:黃晨瑋 - 主記錄:謝萬霖 - 出席者:吳坤熹老師、謝萬霖、黃晨瑋、劉又聖、陳嘉瑋、劉怡君(遠距)、田蕙瑜(遠距)、周以恆(遠距) - 會議主題: [How to use Wireshark to customize the communication protocol](https://l.facebook.com/l.php?u=https%3A%2F%2Flookaside.fbsbx.com%2Ffile%2F202008111453V2new_wiresharkpto.pptx%3Ftoken%3DAWy-pNaHwM5BnlZYDLOAF56qmkOxBBhCO74mAKm08u8hthXK92qpqBQvzo02dq4HboW59DsBlGrkxCyddHcm6j06jDriHpjFhYuykIrQ6DmogxDU67T9u4siP-snvHM86acCjQ1V_5kdqpeVTnUN4DLK4ZKMp4ot8jkHRZrczzQPafq0QDZqYhu4kKLQcOV_JKWpvviUbtyjWu_Nqw1igMI95yCGcCNyKYOBv2EI1ywOG2x5TEJYmV4-f0qzvFvhtP6dObMLTt_z2eQRSvmOOR2mhZpGC90SAAJmG9RVCyi-Uw&h=AT3MXAurGRss-DR79bqtmDkwvVS4L4VgsdiGCg6LjkLpJtz6G5VZj4SvIFscxUNl3gMQ1EgWRz4CIGat9yuRO1vGFZFe5IpyiYpBMzjr8BfVxcADiHk_z1_Le-MskyHKiuDeV61yjvWMADDYerlxWlzPmQ7fcms1&__tn__=H-R&c[0]=AT0KN3MmSc6yx-tLxtM4Yf--nVEIVkOk0qWYrqAbuNqGeKzZfTiYp7lPDxiR5c3XH-FQdfONuzwLN_xEDC0JN2FRRCsyt_D_S3SoLGVUXoz1rNatIT_BmzsIJOtuE37sTTiumDWuUpdQ6HKGVC449jYv5wNDFRpMP_uHPCnRFcaTAHk3Mp7QaKlch-lgK5_g7jt5APWVdzRFmQ0RqyZB7Ea1Hj41) ## 會議內容 - Lua Language 1. 適用情境 - Game - Network - Image 2. 基本語法 - 不用結尾符號 - 沒有 continue 語法 - 只有 nil = false ,其餘為 true (包含 0) 3. 物件導向 - Dissector 1. 使用 Wireshark 的全域物件 Proto 建立自己的協定物件 2. 使用 Wireshark 的全域物件 ProtoField 定義欄位型態 ## 問題討論 ### 1. 主題一 #### 建議 1. 舉例: 舉聽眾熟悉的例子。[name= Prof Solomon] --- #### 問題 1. ipairs 的功能是? [name= Angela] - Ans: ipairs 會回傳陣列裡面 index 為整數的元素 [name= Henry] 2. 物件能在說明一次嗎? [name= Henry] ```= lua > a = { value = 10 } > print(a.value) 10 > function a.square() >> return a.value * a.value >> end > print(a.square()) 100 ``` 3. print 建議使用語法和不建議使用語法的差別? [name= Phoebe] - Ans: 看起來像是陣列,未造成誤解,所以不建議用 "[[]]" 的語法 [name= Abner] 4. myproto 在程式裡扮演的是甚麼角色? [name= Jeffrey] - 解析封包的東西 [name= Abner] 5. embeddable scripting language 是什麼意思? [name= Johnson] - 嵌入式語言,可以用來控制底層的語言 [name= Abner] 6. 映射表是代表甚麼? [name= Johnson] - 一種樹表結合的數據結構. 分配了一個固定空間的內存保存一些樹的節點. 用於映射表的插入操作. [name= Abner] 7. function 的 end 寫成 End 也是可以的嗎? [name= Johnson] - 這應該是自動拼字的問題,最好還是用小寫 [name= Abner] 8. Reference 裡面有一行程式 `side = side or 0` 是什麼意思? [name= Johnson] - 只要不是 nil 就會成功,side 就是 side (short-cut);當 side 為 nil 的時候就是失敗,和 0 (成功) or 就會讓 side 變成 0 [name= Solomon] 9. 同 Reference,傳參數 o 是什麼東西? [name= Johnson] - o 是 object 的縮寫,只是一個變數名稱 [name= Solomon] 10. p.10 if的condition為false時,會執行then後面的block,這樣的說法是否需要修正? [name= Edger] - 執行else後的block[name= Abner] 11. 講者說明物件時,表示冒號是定義,但dissector的code(p.25),用了冒號未加定義? [name= Edger] - 冒號的作用就是:定義函數時,給函數的添加隱藏的第一個參數XX;調用函數時,默認把當前調用者作為第一個參數傳遞進去。 12. 承接問題11,簡言之,加冒號vs加點的差異?[name= Prof Solomon] - 待補充 --- 散會: 結束時間:21:20

    Import from clipboard

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lost their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template is not available.
    All
    • All
    • Team
    No template found.

    Create a template

    Delete template

    Do you really want to delete this template?

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in via Google

    New to HackMD? Sign up

    Help

    Documents

    Tutorials
    YAML Metadata
    Slide Example
    Book Example

    Contacts

    Talk to us
    Report an issue
    Send us email

    Cheatsheet

    Example Syntax
    Header # Header
    • Unordered List
    - Unordered List
    1. Ordered List
    1. Ordered List
    • Todo List
    - [ ] Todo List
    Blockquote
    > Blockquote
    Bold font **Bold font**
    Italics font *Italics font*
    Strikethrough ~~Strikethrough~~
    19th 19^th^
    H2O H~2~O
    Inserted text ++Inserted text++
    Marked text ==Marked text==
    Link [link text](https:// "title")
    Image ![image alt](https:// "title")
    Code `Code`
    var i = 0;
    ```javascript
    var i = 0;
    ```
    :smile: :smile:
    Externals {%youtube youtube_id %}
    LaTeX $L^aT_eX$

    This is a alert area.

    :::info
    This is a alert area.
    :::

    Versions

    Versions and GitHub Sync

    Sign in to link this note to GitHub Learn more
    This note is not linked with GitHub Learn more
     
    Add badge Pull Push GitHub Link Settings

    Version named by    

    More Less
    • Edit
    • Delete

    Note content is identical to the latest version.
    Compare with
      Choose a version
      No search result
      Version not found

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub

        Please sign in to GitHub and install the HackMD app on your GitHub repo. Learn more

         Sign in to GitHub

        HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully