同题,我一直没有找到。

解决方案 »

  1.   

    在Winsock2.h.中定义的
    如下:typedef struct sockaddr_storage 
    {  short ss_family;  char __ss_pad1[_SS_PAD1SIZE];  __int64 __ss_align;  char __ss_pad2[_SS_PAD2SIZE];
    } SOCKADDR_STORAGE, *PSOCKADDR_STORAGE;
    ss_family 
    Address family of the socket, such as AF_INET. 
    __ss_pad1 
    Reserved. Defined as a 48-bit pad that ensures SOCKADDR_STORAGE achieves 64-bit alignment. 
    __ss_align 
    Reserved. Used by the compiler to align the structure. 
    __ss_pad2 
    Reserved. Used by the compiler to align the structure.
      

  2.   

    楼上的能不能打开你的winsock2.h看看
    搜索一下看看是不是真的有这个sockaddr_storage
    我怎么找都不到