본문 바로가기

컴퓨터158

[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.
[C#][Network] RUDP (Reliable UDP) C# RUDP(Reliable UDP)http://rudp.codeplex.com/ 2013. 1. 2.