タグ

ブックマーク / linuxjm.osdn.jp (3)

  • Man page of ACCEPT

    Section: Linux Programmer's Manual (2) Updated: 2020-04-11 Index JM Home Page roff page 名前 accept, accept4 - ソケットへの接続を受ける 書式 #include <sys/types.h> /* 「注意」参照 */ #include <sys/socket.h> int accept(int sockfd, struct sockaddr *addr, socklen_t *addrlen); #define _GNU_SOURCE /* feature_test_macros(7) 参照 */ #include <sys/socket.h> int accept4(int sockfd, struct sockaddr *addr, socklen_t *addrlen, int f

    takuwz
    takuwz 2020/03/23
  • Man page of SOCKET

    Section: Linux Programmer's Manual (2) Updated: 2020-06-09 Index JM Home Page roff page 名前 socket - 通信のための端点 (endpoint) を作成する 書式 #include <sys/types.h> /* 「注意」参照 */ #include <sys/socket.h> int socket(int domain, int type, int protocol); 説明 socket() creates an endpoint for communication and returns a file descriptor that refers to that endpoint. The file descriptor returned by a successful call wil

    takuwz
    takuwz 2020/02/20
    SOCK_STREAM <- TCP, SOCK_DGRAM <- UDP, SOCK <- WTF???(What's the Fxxx???)
  • Man page of PTHREAD_CREATE

    Section: C Library Functions (3) Updated: LinuxThreads Index JM Home Page roff page 名前 pthread_create - 新しいスレッドを生成する 書式 #include <pthread.h> int pthread_create(pthread_t * thread, pthread_attr_t * attr, void * (*start_routine)(void *), void * arg); 説明 pthread_create は呼び出しスレッドと並行して実行する、新しい制御スレッドを生成する。 新しいスレッドは、 arg を第 1 引数とする start_routine という関数になる。 新しいスレッドは、 pthread_exit(3) を呼び出すことによって明示的に終了するか、 関

    takuwz
    takuwz 2019/11/29
  • 1