본문 바로가기

분류 전체보기269

[Network] Parity Bit, Checksum, CRC 오늘은 Parity Bit, Check-Sum, CRC에 대해서 Survey한 것을 정리해보고자 합니다. 다음 순서로 내용을 정리하고자 합니다. *Parity bit *Check-sum *CRC (Cyclic Redundancy Check) *Glossary & Reference 이미 많은 사람들이 책의 내용 혹은 강의 혹은 자신의 이해 정도를 작성해서 internet에 잘 정리해 놓은 것을 저 역시 참조한 것이며, 개인적 이해를 위해서 적어 놓은 겁니다. 이들 survey로 찾은 주제 용어들 parity bit, check-sum, CRC는 데이터는 전송 중에 변경될 수 있으며, 신뢰성 있는 통신을 위해 오류들은 검출 및 정정되어야 한다라는 목적으로부터 사람들이 생각하게 된 방법들 입니다. 이러한 오류.. 2013. 1. 9.
[C#] TCP, UDP MultiThread Client Source Code [C#] TCP, UDP MultiThread Client Source Code /* Project: Simple TCP/UDP Client v2 * Author : Patrick Lam * Date : 09/19/2001 * Brief : The simple TCP/UDP Client v2 does exactly the same thing as v1. What itintends * to demonstrate is the amount of code you can save by using TcpClient and UdpClient * instead of the traditional raw socket implementation. When you * compare the following code with .. 2013. 1. 7.
[C#] TCP, UDP MultiThread Server Source Code [C#] TCP, UDP MultiThread Server Source Code using System;using System.Net; using System.Net.Sockets; using System.Threading; /* Project : Simple Multi-threaded TCP/UDP Server v2 * Author : Patrick Lam * Date : 09/19/2001 * Brief : The simple multi-threaded TCP/UDP Server v2 does the same thing as v1. What * it intends to demonstrate is the amount of code you can save by using TcpListener * inst.. 2013. 1. 7.
[C++][자료구조] Template 를 이용한 Stack Source Code 열혈강의 C++ P.464 class, Template를 이용한 Stack#include using std::cout; using std::endl; template class Stack{ private: int topIdx; // 마지막 입력된 위치의 인덱스 T * stackPtr; // 스택 포인터 public : Stack(int s=10); ~Stack(); void Push(const T& pushValue); T Pop(); }; template Stack::Stack(int len){ topIdx=-1 //스택 인덱스 초기화 stackPtr=new T[len];//데이터 저장 위한 배열 선언 } template Stack::~Stack() { delete[] stackPtr; } templa.. 2013. 1. 4.