server

client

자료
http://www.csc.villanova.edu/~mdamian/Sockets/TcpSockets.htm

'c or linux' 카테고리의 다른 글

SIGSEGV  (0) 2010.10.25
RTP 이용한 솔루션  (0) 2010.10.22
__LINE__, __FILE__, __func__  (0) 2010.10.21
priority inversion & inheritance  (0) 2010.10.21
pthread 정보  (0) 2010.10.21
Posted by '김용환'
,



printf("FILE : %s,  FUNCTION : %s, LINE : %d\n", __FILE__, __func__ , __LINE__);
__FUNCTION__ 에서 에러가 발생할 수 있음.

그 이유는
__FILE__, __LINE__ 은 전처리기가 처리하고, __func__ 는 컴파일러가 처리해 준다. (C99 표준 정의, predefined macro, #line으로 정의)
__FUNCTION__ 은 컴파일러마다 다르다.


아주 좋은 자료
http://yesarang.tistory.com/74

'c or linux' 카테고리의 다른 글

RTP 이용한 솔루션  (0) 2010.10.22
간단 socket 연결 예제  (0) 2010.10.21
priority inversion & inheritance  (0) 2010.10.21
pthread 정보  (0) 2010.10.21
Semaphore  (0) 2010.10.21
Posted by '김용환'
,

'c or linux' 카테고리의 다른 글

간단 socket 연결 예제  (0) 2010.10.21
__LINE__, __FILE__, __func__  (0) 2010.10.21
pthread 정보  (0) 2010.10.21
Semaphore  (0) 2010.10.21
IPC 고급 구현 D-bus  (0) 2010.10.20
Posted by '김용환'
,

pthread 정보

c or linux 2010. 10. 21. 13:40

POSIX THREAD lib 사용할 때는 -lpthread를 사용해서 컴파일해야 한다.
gcc -o xxx xxx.c -lpthread







좋은 자료
http://www.ibm.com/developerworks/kr/library/l-posix1.html
http://wiki.kldp.org/KoreanDoc/Thread_Programming-KLDP


pthread_create 개수
http://kldp.org/node/106266

POSIX Threads Tutorial
http://math.arizona.edu/~swig/documentation/pthreads/

linux thread FAQ
http://www.ibiblio.org/pub/Linux/docs/faqs/Threads-FAQ/html/


Reentrant와 thread-safe 차이
http://yesarang.tistory.com/214

Pthread API Set
http://www.joinc.co.kr/modules/moniwiki/wiki.php/Site/Thread/Beginning/PthreadApiReference

PPT 자료
http://www.google.co.kr/url?sa=t&source=web&cd=10&sqi=2&ved=0CGIQFjAJ&url=http%3A%2F%2Fcglab.ssu.ac.kr%2Fhome%2Fcourses%2Fdata%2F54%2FTCP-IP-SOCKET-PROGRAMMING0610.ppt&ei=F8C_TInqCYPEvQOZhrnoCA&usg=AFQjCNF_9LPWMrpMdrKr0SST4RR9wdfyCQ

http://www.google.co.kr/url?sa=t&source=web&cd=39&ved=0CEAQFjAIOB4&url=http%3A%2F%2Fcosmos.ssu.ac.kr%2Fcourse%2Fpara%2F2004-2%2Fpre%2Fpthread.ppt&ei=gcO_TN2pPIiKvgP1_JS2CA&usg=AFQjCNGkLxRHdxKakIK0xZyQSJdH1-GMPQ


리눅스와 윈도우 Mutex 비교
http://deguls.tistory.com/category/Programming%20%EA%B6%81%EA%B8%88%ED%95%98%EB%8B%88%3F?page=5

Synchronization관점
kestern.textcube.com/48/attach/04_Synchronization.pdf

'c or linux' 카테고리의 다른 글

__LINE__, __FILE__, __func__  (0) 2010.10.21
priority inversion & inheritance  (0) 2010.10.21
Semaphore  (0) 2010.10.21
IPC 고급 구현 D-bus  (0) 2010.10.20
env/set 명령어  (0) 2010.10.20
Posted by '김용환'
,

Semaphore

c or linux 2010. 10. 21. 11:13

'c or linux' 카테고리의 다른 글

priority inversion & inheritance  (0) 2010.10.21
pthread 정보  (0) 2010.10.21
IPC 고급 구현 D-bus  (0) 2010.10.20
env/set 명령어  (0) 2010.10.20
pid 0인 프로세스 swapper/pid 1인 프로세스 init 설명  (0) 2010.10.20
Posted by '김용환'
,

IPC 고급 구현 D-bus

c or linux 2010. 10. 20. 17:38

'c or linux' 카테고리의 다른 글

pthread 정보  (0) 2010.10.21
Semaphore  (0) 2010.10.21
env/set 명령어  (0) 2010.10.20
pid 0인 프로세스 swapper/pid 1인 프로세스 init 설명  (0) 2010.10.20
fork/waitpid/system 예제  (0) 2010.10.20
Posted by '김용환'
,

env/set 명령어

c or linux 2010. 10. 20. 17:02

env는 환경변수를 보여주는 유틸리티..
결과를 오름차순으로 보여주면 set 이용하면 됨

_ 라는 속성 값이 있는데. 이는 바로 전에 사용했던 명령어를 출력한다.

'c or linux' 카테고리의 다른 글

Semaphore  (0) 2010.10.21
IPC 고급 구현 D-bus  (0) 2010.10.20
pid 0인 프로세스 swapper/pid 1인 프로세스 init 설명  (0) 2010.10.20
fork/waitpid/system 예제  (0) 2010.10.20
errno  (0) 2010.10.20
Posted by '김용환'
,

pid 0 : SWAPPER 설명
http://wiki.kldp.org/KoreanDoc/html/Boot_Process-KLDP/swapper.html

pid 1 : init 설명
http://weezzle.net/1818

리눅스 부팅과정 -swaper 역할
http://blog.blueweb.co.kr/196

데몬과 백그라운드 프로그램의 차이
http://joahani.egloos.com/1652251

'c or linux' 카테고리의 다른 글

IPC 고급 구현 D-bus  (0) 2010.10.20
env/set 명령어  (0) 2010.10.20
fork/waitpid/system 예제  (0) 2010.10.20
errno  (0) 2010.10.20
signal 세트 함수 예제  (0) 2010.10.20
Posted by '김용환'
,

'c or linux' 카테고리의 다른 글

env/set 명령어  (0) 2010.10.20
pid 0인 프로세스 swapper/pid 1인 프로세스 init 설명  (0) 2010.10.20
errno  (0) 2010.10.20
signal 세트 함수 예제  (0) 2010.10.20
alarm/pause 이슈로 인해서 setjmp/longjmp 로 변경  (0) 2010.10.20
Posted by '김용환'
,

errno

c or linux 2010. 10. 20. 14:28
Posted by '김용환'
,