Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- Compiler
- packet filter
- ncurses
- cbpf
- 풀이
- edge trigger
- BOF
- mvwin
- 어셈블리어
- DOCKER-USER
- REDIS
- vtable
- iptables
- epoll
- packet flow
- .nret core 배포
- epoll_wait
- 취약점
- ioctl
- level trigger
- Docker
- NAPT
- architecture
- wnourefresh
- .net core 7
- rfc5508
- C언어
- LOB
- wrefresh
- doupdate
Archives
- Today
- Total
목록streambuf (1)
Tuuna Computer Science
비동기 IO를 만들어보자 with streambuf + logging
C++ Async Logging Logging을 해보자! 일반적인 소프트웨어 경우 Logging은 필수다. 그렇기 어떻게 Logging을 할 수 있고 어떤식으로 Logging을 구현하는 것이 효율적인것인가에 대해 알아볼것이다. Logging의 중요성 : 인터넷에 검색해보면 자세히 나온다. 일반적인 IO의 문제점 Logging을 하기위해 가장 많이 쓰이면서 간단한 방법은 Synchronous하게 IO를 작동시키는것이다. 즉, 코드실행중간에 Logging 코드를 실행하여 File에 Write또는 Read하는 것이다. 아래 코드를 살펴보자 #include #include class Logging{ private: std::ofstream file; void writeFile(std::string msg){ f..
C++
2022. 1. 23. 18:37