🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: cn.bbs.comp.program
Article #271

Re: ipx�������

#271
From: high
Date: Wed, 13 Oct 1999 00:00
32 lines
1436 bytes
> ==> Zhwj_Zhong(high)                         ˵��: 
> �����һ��IPX/SPX�ļ�ͨ�³��� 
> the source code as follows: 
> #include "winsock2.h" 
> #include "wsipx.h" 
> ............ 
> void Init() 
> { 
>  WORD wVersionRequested; 
>  WSADATA wsaData; 
>  wVersionRequested = MAKEWORD(2, 0); 
>  if(WSAStartup(wVersionRequested, &wsaData) == SOCKET_ERROR) 
>  { 
>     return ; 
>  } 
>  SOCKET SrvSock = socket(AF_IPX,     // IPX Family 
>                      SOCK_DGRAM,     // Gives message mode transfers 
>                      NSPROTO_IPX);   // SPX is connection oriented 
>                                           transport 
>  if(SrvSock==INVALID_SOCKET) { 
>                 AfxMessageBox("error"); 
>                 return; 
>         } 
> } 
> ....... 
> WSAStartup()�ɹ����� 
> ���ҵ���socket����(����),���Ƿ���INVALID_SOCKET,why? 
> ϣ���λָ��. 
 

--
�� ��Դ: �й�ƴ�BBSվ [bbs.ustc.edu.cn]
Technical Details
Message-ID: <991013.11bI0L$PBBS@bbs.ustc.edu.cn>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: fc86e,9183083d849d3212
X-Google-Attributes: gidfc86e,public
From: Zhwj_Zhong@bbs.ustc.edu.cn (high)
Subject: Re: ipx�������
Date: 1999/10/13
Message-ID: <991013.11bI0L$PBBS@bbs.ustc.edu.cn>
X-Deja-AN: 536367878
Distribution: ustc
Organization: �й�ƴ�BBSվ
Newsgroups: cn.bbs.comp.program