<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Ian Su</title><link>https://iebsite.pages.dev/</link><description>Recent content on Ian Su</description><generator>Hugo</generator><language>en-us</language><atom:link href="https://iebsite.pages.dev/index.xml" rel="self" type="application/rss+xml"/><item><title/><link>https://iebsite.pages.dev/notes/cs/network/network/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://iebsite.pages.dev/notes/cs/network/network/</guid><description>&lt;p>page 1-66&lt;/p>
&lt;h3 id="osi-model-open-systems-interconnection-model">OSI model (Open Systems Interconnection model)&lt;/h3>
&lt;h2 id="layers---------------indata">layers inData&lt;/h2>
&lt;ol>
&lt;li>Physical&lt;/li>
&lt;li>Data Link (frame)&lt;/li>
&lt;li>Network layer (packet)&lt;/li>
&lt;li>Transport layer (segment)&lt;/li>
&lt;li>Session layer&lt;/li>
&lt;li>Presentation layer&lt;/li>
&lt;li>Application layer&lt;/li>
&lt;/ol>
&lt;h1 id="概念解析">概念解析&lt;/h1>
&lt;p>frmae(MAC) 中繼站 區域跳轉 台南-&amp;gt;台中-&amp;gt;台北-&amp;gt;美國
packet (IP)精細地址 ex:台灣台南xx區xx街xx號 -&amp;gt; 美國加州xx鎮xx巷xx街xx號&lt;/p>
&lt;p>封裝過程 (Encapsulation)&lt;/p>
&lt;p>Data（你的訊息）&lt;/p>
&lt;p>加入 IP 標頭 → 變成 Packet&lt;/p>
&lt;p>加入 MAC 標頭與校驗碼 → 變成 Frame&lt;/p>
&lt;p>轉化為 0 與 1 的電訊號 → 變成 Bits（位元流）&lt;/p>
&lt;h1 id="硬體傳輸">硬體傳輸&lt;/h1>
&lt;ol>
&lt;li>網卡(NIC - network interface card)&lt;/li>
&lt;li>交換器(switch) (MAC地址)&lt;/li>
&lt;li>路由器(router) (IP地址)&lt;/li>
&lt;li>物理媒介 (cable)&lt;/li>
&lt;/ol>
&lt;h2 id="tcp-udp">TCP UDP&lt;/h2>
&lt;p>layer 4
Transmission Control Protocol
User Datagram Protocal
&lt;em>segment only be used in TCP&lt;/em>
&lt;em>dataGram only be used in UDP&lt;/em>&lt;/p></description></item><item><title>fgetc 使用說明</title><link>https://iebsite.pages.dev/notes/languages/c/stdio.h/fgetc/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://iebsite.pages.dev/notes/languages/c/stdio.h/fgetc/</guid><description>&lt;h3 id="description">Description&lt;/h3>
&lt;p>接收stdin 本身是函數 開銷較大&lt;/p>
&lt;h3 id="example">Example&lt;/h3>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-c" data-lang="c">&lt;span style="display:flex;">&lt;span>&lt;span style="color:#75715e">#include&lt;/span> &lt;span style="color:#75715e">&amp;lt;stdio.h&amp;gt;&lt;/span>&lt;span style="color:#75715e">
&lt;/span>&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#75715e">&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#66d9ef">int&lt;/span> &lt;span style="color:#a6e22e">main&lt;/span>() {
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#66d9ef">int&lt;/span> a &lt;span style="color:#f92672">=&lt;/span> &lt;span style="color:#a6e22e">fgetc&lt;/span>(stdin);
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#a6e22e">printf&lt;/span>(&lt;span style="color:#e6db74">&amp;#34;%c&amp;#34;&lt;/span>, a);
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>}
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div></description></item><item><title>getc 使用說明</title><link>https://iebsite.pages.dev/notes/languages/c/stdio.h/getc/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://iebsite.pages.dev/notes/languages/c/stdio.h/getc/</guid><description>&lt;h3 id="description">Description&lt;/h3>
&lt;p>接收stdin 本身是Marco 開銷較小&lt;/p>
&lt;h3 id="example">Example&lt;/h3>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-c" data-lang="c">&lt;span style="display:flex;">&lt;span>&lt;span style="color:#75715e">#include&lt;/span> &lt;span style="color:#75715e">&amp;lt;stdio.h&amp;gt;&lt;/span>&lt;span style="color:#75715e">
&lt;/span>&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#75715e">&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#66d9ef">int&lt;/span> &lt;span style="color:#a6e22e">main&lt;/span>() {
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#66d9ef">int&lt;/span> a &lt;span style="color:#f92672">=&lt;/span> &lt;span style="color:#a6e22e">getc&lt;/span>(stdin);
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#a6e22e">printf&lt;/span>(&lt;span style="color:#e6db74">&amp;#34;%c&amp;#34;&lt;/span>, a);
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>}
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div></description></item><item><title>Hugo</title><link>https://iebsite.pages.dev/notes/develop/hugo/hugo/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://iebsite.pages.dev/notes/develop/hugo/hugo/</guid><description>Hugo 介紹</description></item><item><title>Minesweeper</title><link>https://iebsite.pages.dev/projects/minisweeper/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://iebsite.pages.dev/projects/minisweeper/</guid><description/></item><item><title>Water Puzzle</title><link>https://iebsite.pages.dev/projects/waterpuzzle/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://iebsite.pages.dev/projects/waterpuzzle/</guid><description/></item></channel></rss>