今日得一堂11:30…12:30訓到兩點半,食個飯到4pm…就寫tcp寫到12am…
終於寫到個3-way handshake…
又係一個唔小心…咁就嘥左成個鐘黎debug…
char *buf
struct tcp_header tcp_h;
…
memcpy(&tcp_h, &buf, sizeof(struct tcp_header));
仲有個死人tcp checksum,d byte ordering又費時…唉…
好彩12am果時已經可以send/receive到一個simple file…
Leave a Reply