반응형 TechSkill/C/C++2 zlog 라이브러리 설치 on linux 아래의 사이트에서 다운로드 받도록 하자.Download : https://github.com/HardySimpson/zlog/releases 압축을 받은 최신 파일을 설치할 디렉토리로 옮긴 뒤 압축을 해제하고 make 명령어를 실행하여 설치해 주도록 한다. $ tar -zxvf zlog-latest-stable.tar.gz $ cd zlog-latest-stable/ $ make $ sudo make install or $ sudo make PREFIX=/usr/local/ install 설치 후에, zlog library를 찾을 수 있는지 확인해야 한다.vi로 /etc/ld.so.conf 파일을 열어 /usr/local/lib 경로를 추가해 준 뒤 ldconfig 명령어를 실행 시켜 동적 라이브러리를 .. 2016. 3. 14. [C함수]Select() #include#include#include int select (int n, fd_set * readfds, fd_set * writefds, fd_set * exceptfds, const struct timeval * timeout); typedef struct fd_set{u_int fd_countSOCKET fd_array[FD_SETSIZE];} fd_set; void FD_ZERO (fd_set * fdset);void FD_CLR (int fd, fd_set * fdset);void FD_SET (int fd, fd_set * fdset);void FD_ISSET (int fd, fd_set * fdset); 2015. 11. 12. 이전 1 다음 반응형