JM Project

JM プロジェクトは、主に Linux 関連のマニュアルページの日本語ページを翻訳・公開しています。

Linux マニュアル 一覧

全文・高度検索

per page, with , order by , clip by
Results of 1 - 10 of about 21 for peer (0.004 sec.)
Man page of BIND 11670
BIND Section: Linux Programmer's Manual (2) Updated: 2020-11-01 Index JM Home Page 名前 bind - ソケットに名前をつける 書式 #include < sys/types.h > /* 「注意」参照 */ #include < sys/socket.h > int bind(int sockfd , const struct sockaddr * a ... perror(msg); exit(EXIT_FAILURE); } while (0) int main(int argc, char *argv[]) { int sfd, cfd; struct sockaddr_un my_addr, peer_addr; socklen_t peer_addr_size; sfd = socket(AF_UNIX, SOCK_STREAM, 0); if (sfd == -1) handle_error("socket"); memset(&my_a ... LISTEN_BACKLOG) == -1) handle_error("listen"); /* Now we can accept incoming connections one at a time using accept (2) */ peer_addr_size = sizeof(peer_addr); cfd = accept(sfd, (struct sockaddr *) &peer_addr, &peer_addr_size); if (cfd == -1) handle_e ...
https://man.mtool.work/man/20260915/man2/bind.2.html
Man page of GETADDRINFO 11348
GETADDRINFO Section: Linux Programmer's Manual (3) Updated: 2020-11-01 Index JM Home Page 名前 getaddrinfo, freeaddrinfo, gai_strerror - ネットワークのアドレスとサービスを変換する 書式 #include < sys/types.h > #include < sys/socket.h > #inc ... nt main(int argc, char *argv[]) { struct addrinfo hints; struct addrinfo *result, *rp; int sfd, s; struct sockaddr_storage peer_addr; socklen_t peer_addr_len; ssize_t nread; char buf[BUF_SIZE]; if (argc != 2) { fprintf(stderr, "Usage: %s port\n", arg ... */ fprintf(stderr, "Could not bind\n"); exit(EXIT_FAILURE); } /* Read datagrams and echo them back to sender */ for (;;) { peer_addr_len = sizeof(peer_addr); nread = recvfrom(sfd, buf, BUF_SIZE, 0, (struct sockaddr *) &peer_addr, &peer_addr_len); if ... -1) continue; /* Ignore failed request */ char host[NI_MAXHOST], service[NI_MAXSERV]; s = getnameinfo((struct sockaddr *) &peer_addr, peer_addr_len, host, NI_MAXHOST, service, NI_MAXSERV, NI_NUMERICSERV); if (s == 0) printf("Received %zd bytes from % ...
https://man.mtool.work/man/20260915/man3/freeaddrinfo.3.html
Man page of GETADDRINFO 11348
GETADDRINFO Section: Linux Programmer's Manual (3) Updated: 2020-11-01 Index JM Home Page 名前 getaddrinfo, freeaddrinfo, gai_strerror - ネットワークのアドレスとサービスを変換する 書式 #include < sys/types.h > #include < sys/socket.h > #inc ... nt main(int argc, char *argv[]) { struct addrinfo hints; struct addrinfo *result, *rp; int sfd, s; struct sockaddr_storage peer_addr; socklen_t peer_addr_len; ssize_t nread; char buf[BUF_SIZE]; if (argc != 2) { fprintf(stderr, "Usage: %s port\n", arg ... */ fprintf(stderr, "Could not bind\n"); exit(EXIT_FAILURE); } /* Read datagrams and echo them back to sender */ for (;;) { peer_addr_len = sizeof(peer_addr); nread = recvfrom(sfd, buf, BUF_SIZE, 0, (struct sockaddr *) &peer_addr, &peer_addr_len); if ... -1) continue; /* Ignore failed request */ char host[NI_MAXHOST], service[NI_MAXSERV]; s = getnameinfo((struct sockaddr *) &peer_addr, peer_addr_len, host, NI_MAXHOST, service, NI_MAXSERV, NI_NUMERICSERV); if (s == 0) printf("Received %zd bytes from % ...
https://man.mtool.work/man/20260915/man3/gai_strerror.3.html
Man page of GETADDRINFO 11348
GETADDRINFO Section: Linux Programmer's Manual (3) Updated: 2020-11-01 Index JM Home Page 名前 getaddrinfo, freeaddrinfo, gai_strerror - ネットワークのアドレスとサービスを変換する 書式 #include < sys/types.h > #include < sys/socket.h > #inc ... nt main(int argc, char *argv[]) { struct addrinfo hints; struct addrinfo *result, *rp; int sfd, s; struct sockaddr_storage peer_addr; socklen_t peer_addr_len; ssize_t nread; char buf[BUF_SIZE]; if (argc != 2) { fprintf(stderr, "Usage: %s port\n", arg ... */ fprintf(stderr, "Could not bind\n"); exit(EXIT_FAILURE); } /* Read datagrams and echo them back to sender */ for (;;) { peer_addr_len = sizeof(peer_addr); nread = recvfrom(sfd, buf, BUF_SIZE, 0, (struct sockaddr *) &peer_addr, &peer_addr_len); if ... -1) continue; /* Ignore failed request */ char host[NI_MAXHOST], service[NI_MAXSERV]; s = getnameinfo((struct sockaddr *) &peer_addr, peer_addr_len, host, NI_MAXHOST, service, NI_MAXSERV, NI_NUMERICSERV); if (s == 0) printf("Received %zd bytes from % ...
https://man.mtool.work/man/20260915/man3/getaddrinfo.3.html
Man page of SHM_OPEN 9488
SHM_OPEN Section: Linux Programmer's Manual (3) Updated: 2020-11-01 Index JM Home Page 名前 shm_open, shm_unlink - POSIX 共有メモリーオブジェクトの作成/オープン/削除を行う 書式 #include < sys/mman.h > #include < sys/stat.h > /* mode 定数用 ... Exit("sem_init-sem1"); if (sem_init(&shmp->sem2, 1, 0) == -1) errExit("sem_init-sem2"); /* Wait for 'sem1' to be posted by peer before touching shared memory */ if (sem_wait(&shmp->sem1) == -1) errExit("sem_wait"); /* Convert data in shared memory in ... r (int j = 0; j < shmp->cnt; j++) shmp->buf[j] = toupper((unsigned char) shmp->buf[j]); /* Post 'sem2' to tell the to tell peer that it can now access the modified data in shared memory */ if (sem_post(&shmp->sem2) == -1) errExit("sem_post"); /* Unli ... nk the shared memory object. Even if the peer process is still using the object, this is okay. The object will be removed only after all open references are closed. */ ...
https://man.mtool.work/man/20260915/man3/shm_open.3.html
Man page of SHM_OPEN 9488
SHM_OPEN Section: Linux Programmer's Manual (3) Updated: 2020-11-01 Index JM Home Page 名前 shm_open, shm_unlink - POSIX 共有メモリーオブジェクトの作成/オープン/削除を行う 書式 #include < sys/mman.h > #include < sys/stat.h > /* mode 定数用 ... Exit("sem_init-sem1"); if (sem_init(&shmp->sem2, 1, 0) == -1) errExit("sem_init-sem2"); /* Wait for 'sem1' to be posted by peer before touching shared memory */ if (sem_wait(&shmp->sem1) == -1) errExit("sem_wait"); /* Convert data in shared memory in ... r (int j = 0; j < shmp->cnt; j++) shmp->buf[j] = toupper((unsigned char) shmp->buf[j]); /* Post 'sem2' to tell the to tell peer that it can now access the modified data in shared memory */ if (sem_post(&shmp->sem2) == -1) errExit("sem_post"); /* Unli ... nk the shared memory object. Even if the peer process is still using the object, this is okay. The object will be removed only after all open references are closed. */ ...
https://man.mtool.work/man/20260915/man3/shm_unlink.3.html
Man page of UMOUNT 9184
UMOUNT Section: Linux Programmer's Manual (2) Updated: 2020-06-09 Index JM Home Page 名前 umount, umount2 - ファイルシステムをアンマウントする 書式 #include < sys/mount.h > int umount(const char * target ); int umount2(const char * target , ... se any mount activity on a mount point, including umount () operations, to be forwarded to every shared mount point in the peer group and every slave mount of that peer group. This means that umount () of any peer in a set of shared mounts will cause ... all of its peers to be unmounted and all of their slaves to be unmounted as well. This propagation of unmount activity can be particularly ...
https://man.mtool.work/man/20260915/man2/umount.2.html
Man page of UMOUNT 9184
UMOUNT Section: Linux Programmer's Manual (2) Updated: 2020-06-09 Index JM Home Page 名前 umount, umount2 - ファイルシステムをアンマウントする 書式 #include < sys/mount.h > int umount(const char * target ); int umount2(const char * target , ... se any mount activity on a mount point, including umount () operations, to be forwarded to every shared mount point in the peer group and every slave mount of that peer group. This means that umount () of any peer in a set of shared mounts will cause ... all of its peers to be unmounted and all of their slaves to be unmounted as well. This propagation of unmount activity can be particularly ...
https://man.mtool.work/man/20260915/man2/umount2.2.html
Man page of UNIX 8558
UNIX Section: Linux Programmer's Manual (7) Updated: 2020-11-01 Index JM Home Page 名前 unix - ローカルな プロセス間通信用のソケット 書式 #include < sys/socket.h > #include < sys/un.h > unix_socket = socket(AF_UNIX, type, 0); error = socket ... ), connect (2), sendto (2)) は入力として sockaddr_un 引数を取る。 他のいくつかのシステムコール (例えば getsockname (2), getpeername (2), recvfrom (2), accept (2)) はこの型の引数を返す。 sockaddr_un 構造体では 3 種類のアドレスが区別される。 * pathname ... は 92 バイトしかないという点にも留意しておくとよい。 様々なシステムコール ( accept (2), recvfrom (2), getsockname (2), getpeername (2)) がソケットアドレス構造体を返す。 これらのシステムコールが UNIX ドメインソケットに対して呼ばれた際には、 これらの呼 ... the result of getsockopt (2) is an integer boolean flag. SO_PASSSEC Enables receiving of the SELinux security label of the peer socket in an ancillary message of type SCM_SECURITY (see below). The value given as an argument to setsockopt (2) and retu ...
https://man.mtool.work/man/20260915/man7/unix.7.html
Man page of IP 7797
IP Section: Linux Programmer's Manual (7) Updated: 2020-11-01 Index JM Home Page 名前 ip - Linux IPv4 プロトコルの実装 書式 #include < sys/socket.h > #include < netinet/in.h > #include < netinet/ip.h > /* 上記のスーパーセット */ tcp_socket ... or NetLabel is configured on the sending and receiving hosts, this option enables receiving of the security context of the peer socket in an ancillary message of type SCM_SECURITY retrieved using recvmsg (2). This option is supported only for UDP soc ... kets; for TCP or SCTP sockets, see the description of the SO_PEERSEC option below. The value given as an argument to setsockopt (2) and returned as the result of getsockopt (2) is an integ ... he security context returned in the SCM_SECURITY ancillary message is of the same format as the one described under the SO_PEERSEC option below. Note: the reuse of the SCM_SECURITY message type for the IP_PASSSEC socket option was likely a mistake, s ...
https://man.mtool.work/man/20260915/man7/ip.7.html
PREV 1 2 3 NEXT

リンク

日本語の文書やマニュアルを配布している個人/プロジェクトへのリンクです。