找回密码
 骑士注册

QQ登录

微博登录


tag 标签:

相关手册

  • socket - create a TCP or a UNIX domain socket and connect to stdin/out

    socket [ -bcfqrvw ] [ -p command ] [ -B local address ] host port
           socket [ -bcfqrvw ] [ -p command ] /path
           socket [ -bcfqrvw ] [ -p command ] [ -B local address ] -s [ -l ] port
           socket [ -bcfqrvw ] [ -p command ] -s [ -l ] /path
    Socket  creates  an  Internet domain TCP or a UNIX domain stream socket
           and connects it to stdin and stdout.   The  host  argument  can  be  an
           Internet  number  in  dot-notation (like ``130.149.28.10'') or a domain
           name. In this case it must be possible to resolve the name to  a  valid
           Internet  address  with  gethostbyname(3).   The port argument can be a
  • socket - create an endpoint for communication

    #include <sys/types.h>          /* See NOTES */
           #include <sys/socket.h>
    
           int socket(int domain, int type, int protocol);
    socket()   creates   an   endpoint  for  communication  and  returns  a
           descriptor.
    
           The domain argument specifies a communication domain; this selects  the
           protocol  family  which will be used for communication.  These families
  • socket - Linux socket interface

    #include <sys/socket.h>
    
           sockfd = socket(int socket_family, int socket_type, int protocol);
    This  manual  page  describes  the  Linux  networking socket layer user
           interface.  The  BSD  compatible  sockets  are  the  uniform  interface
           between the user process and the network protocol stacks in the kernel.
           The protocol modules are grouped into protocol families  like  AF_INET,
           AF_IPX, AF_PACKET and socket types like SOCK_STREAM or SOCK_DGRAM.  See
返回顶部

分享到微信

打开微信,点击顶部的“╋”,
使用“扫一扫”将网页分享至微信。