The only difference between recv() and read(2) is the presence of flags. With a zero flags argument, recv() is generally equivalent to read(2) (but see NOTES). Also, the following call
recv(sockfd, buf, len, flags);
is equivalent to
recvfrom(sockfd, buf, len, flags, NULL, NULL);
NOTES If a zero-length datagram is pending, read(2) and recv() with a flags argument of zero provide different behavior. In this circumstance, read(2) has no effect (the datagram remains pending), while recv() con‐ sumes the pending datagram.
The socklen_t type was invented by POSIX. See also accept(2).
According to POSIX.1, the msg_controllen field of the msghdr structure should be typed as socklen_t, and the msg_iovlen field should be typed as int, but glibc currently types both as size_t.
See recvmmsg(2) for information about a Linux-specific system call that can be used to receive multiple datagrams in a single call.
2nd order low pass filter 이런 용어가 나오길래 도대체 저 2nd order가 먼지 찾아봄.
필터가 얼마나 샤프하게 자를수 있냐 인데
2. 필터의 차수 (Order)
ㅇ `가파른 정도(첨예함,steepness)`을 보여줌 ☞ 롤오프율(Roll-off Factor) 참조
- 필터 응답의 천이대역 영역에서의 가파른 정도(첨예함,steepness)를 나타냄
. 차수가 높을수록 이상필터 처럼 더 나은 성능을 보이지만, 구현비용이 더 많이 듬
2차 필터는 L-C 가 2개 있는 필터 라고 보면 되는데
3. 필터의 차수 및 함수의 例
ㅇ 차수별 특징
- 1차 필터 : L 또는 C가 1개 만 있는 수동 필터, 롤오프율 ±20 dB/decade, 위상천이 ±90˚
- 2차 필터 : L 또는 C가 2개 만 있는 수동 필터, 롤오프율 ±40 dB/decade, 위상천이 ±180˚
- 3차 필터 : L 또는 C가 3개 만 있는 수동 필터, 롤오프율 ±60 dB/decade, 위상천이 ±270˚
- n차 필터 : L 또는 C가 n개 만 있는 수동 필터, 롤오프율 ±n20 dB/decade, 위상천이 ±n90˚
수식으로는 1차는 말그대로 a1*s+a0 라면
ㅇ 1차 필터 함수
2차는 a2*s^2 + a1 * s + a0 으로 2차 (n차 다항식 중 2차) 함수로 표현된다.
Order(or number of poles) sizes its buffer (i.e. energy storing devices contributing to the process delay, like capacitors for analog filters, or memory vectors for digital filters), and it will account for the roll-off and help to minimize the transition band (Figure 6).