JM プロジェクトは、主に Linux 関連のマニュアルページの日本語ページを翻訳・公開しています。
... に依存します。 このオプションは POP3, ETRN, ODMR では使えません。 --tracepolls (キーワード: tracepolls) fetchmail が生成する Received 行に、 `polling %s account %s' という形式でトレース情報を入れるようにさせます。 %s の部分はユーザのリモート名とポーリングレ ... ベルに置き換えられます (通常、Received ヘッダにはサーバの本当の名前も含まれます)。 これは、受信したアカウントに基づいたメールフィルタリングを 容易にするために使う ... 別のものになることがあります。 後述のマルチドロップアドレス処理に関する議論を参照してください。 特殊な場合として、`envelope "Received"' を設定すると sendmail 形式の Received 行を処理することが可能になります。 このオプションはデフォルトですが、 .fetchmailrc ... ... に依存します。 このオプションは POP3, ETRN, ODMR では使えません。 --tracepolls (キーワード: tracepolls) fetchmail が生成する Received 行に、 `polling %s account %s' という形式でトレース情報を入れるようにさせます。 %s の部分はユーザのリモート名とポーリングレ ... ベルに置き換えられます (通常、Received ヘッダにはサーバの本当の名前も含まれます)。 これは、受信したアカウントに基づいたメールフィルタリングを 容易にするために使う ... 別のものになることがあります。 後述のマルチドロップアドレス処理に関する議論を参照してください。 特殊な場合として、`envelope "Received"' を設定すると sendmail 形式の Received 行を処理することが可能になります。 このオプションはデフォルトですが、 .fetchmailrc ... ... ータグラムを受信しなかった場合、 呼び出しはずっと停止し続けてしまう。 If an error occurs after at least one message has been received, the call succeeds, and returns the number of messages received. The error code is expected to be returned on a subsequent ... p 0.25; done 生成されたデータグラムをサンプルアプリケーションが読み出し、以下のような出力が得られる。 $ ./a.out 5 messages received 1 11782 2 11345 3 304 4 13514 5 28421 プログラムのソース #define _GNU_SOURCE #include < netinet/ip.h > #include < stdio.h ... mmsg(sockfd, msgs, VLEN, 0, &timeout); if (retval == -1) { perror("recvmmsg()"); exit(EXIT_FAILURE); } printf("%d messages received\n", retval); for (int i = 0; i < retval; i++) { bufs[i][msgs[i].msg_len] = 0; printf("%d %s", i+1, bufs[i]); } exit(EXIT_S ... ... -level unique ID called NAPI ID that is associated with a RX queue on which the last packet associated with that socket is received. This can be used by an application to split the incoming flows among worker threads based on the RX queue on which the pa ... ckets associated with the flows are received. It allows each worker thread to be associated with a NIC HW receive queue and service all the connection requests receive ... agrams to multiple processes (or threads) as compared to the traditional technique of having multiple processes compete to receive datagrams on the same socket. SO_RXQ_OVFL (Linux 2.6.33 以降) Indicates that an unsigned 32-bit value ancillary message (cm ... ... tion causes receipt of the credentials of the sending process in an SCM_CREDENTIALS ancillary message in each subsequently received message. The returned credentials are those specified by the sender using SCM_CREDENTIALS , or a default that includes the ... rded) and the excess file descriptors are automatically closed in the receiving process. If the number of file descriptors received in the ancillary data would cause the process to exceed its RLIMIT_NOFILE resource limit (see getrlimit (2)), the excess f ... t be enabled on the socket. SCM_SECURITY Receive the SELinux security context (the security label) of the peer socket. The received ancillary data is a null-terminated string containing the security context. The receiver should allocate at least NAME_MAX ... ... aio_error(): for request 0 (descriptor 3): In progress for request 1 (descriptor 4): In progress abc I/O completion signal received aio_error(): for request 0 (descriptor 3): I/O succeeded for request 1 (descriptor 4): In progress aio_error(): for reques ... t 1 (descriptor 4): In progress x I/O completion signal received aio_error(): for request 1 (descriptor 4): I/O succeeded All I/O requests completed aio_return(): for request 0 (descripto ... ler(int sig, siginfo_t *si, void *ucontext) { if (si->si_code == SI_ASYNCIO) { write(STDOUT_FILENO, "I/O completion signal received\n", 31); /* The corresponding ioRequest structure would be available as struct ioRequest *ioReq = si->si_value.sival_ptr; ... ... 次のコードは、受け取った補助バッファーから IP_TTL オプションを探すものである。 struct msghdr msgh; struct cmsghdr *cmsg; int received_ttl; /* Receive auxiliary data in msgh */ for (cmsg = CMSG_FIRSTHDR(&msgh); cmsg != NULL; cmsg = CMSG_NXTHDR(&msgh, cmsg)) ... { if (cmsg->cmsg_level == IPPROTO_IP && cmsg->cmsg_type == IP_TTL) { memcpy(&receive_ttl, CMSG_DATA(cmsg), sizeof(received_ttl)); break; } } if (cmsg == NULL) { /* Error: IP_TTL not enabled or small buffer or I/O error */ } 以下のコードは、 SCM_ ... ... 次のコードは、受け取った補助バッファーから IP_TTL オプションを探すものである。 struct msghdr msgh; struct cmsghdr *cmsg; int received_ttl; /* Receive auxiliary data in msgh */ for (cmsg = CMSG_FIRSTHDR(&msgh); cmsg != NULL; cmsg = CMSG_NXTHDR(&msgh, cmsg)) ... { if (cmsg->cmsg_level == IPPROTO_IP && cmsg->cmsg_type == IP_TTL) { memcpy(&receive_ttl, CMSG_DATA(cmsg), sizeof(received_ttl)); break; } } if (cmsg == NULL) { /* Error: IP_TTL not enabled or small buffer or I/O error */ } 以下のコードは、 SCM_ ... ... 次のコードは、受け取った補助バッファーから IP_TTL オプションを探すものである。 struct msghdr msgh; struct cmsghdr *cmsg; int received_ttl; /* Receive auxiliary data in msgh */ for (cmsg = CMSG_FIRSTHDR(&msgh); cmsg != NULL; cmsg = CMSG_NXTHDR(&msgh, cmsg)) ... { if (cmsg->cmsg_level == IPPROTO_IP && cmsg->cmsg_type == IP_TTL) { memcpy(&receive_ttl, CMSG_DATA(cmsg), sizeof(received_ttl)); break; } } if (cmsg == NULL) { /* Error: IP_TTL not enabled or small buffer or I/O error */ } 以下のコードは、 SCM_ ... ... 次のコードは、受け取った補助バッファーから IP_TTL オプションを探すものである。 struct msghdr msgh; struct cmsghdr *cmsg; int received_ttl; /* Receive auxiliary data in msgh */ for (cmsg = CMSG_FIRSTHDR(&msgh); cmsg != NULL; cmsg = CMSG_NXTHDR(&msgh, cmsg)) ... { if (cmsg->cmsg_level == IPPROTO_IP && cmsg->cmsg_type == IP_TTL) { memcpy(&receive_ttl, CMSG_DATA(cmsg), sizeof(received_ttl)); break; } } if (cmsg == NULL) { /* Error: IP_TTL not enabled or small buffer or I/O error */ } 以下のコードは、 SCM_ ... 日本語の文書やマニュアルを配布している個人/プロジェクトへのリンクです。