🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: cn.bbs.comp.unix.development.network
Article #10

Re: ����һ����ֵ�����

#10
From: ŵȼ
Date: Fri, 07 Nov 2003 02:32
20 lines
1738 bytes
��̫���windows�µ�socket��̣���unix��Ӧ���Dz��������ģ�accetp�ᱻϵͳ����
����������

�� �� godkiller (һ�쵽����Ӿ����) �Ĵ������ᵽ: ��
: �Ҹտ�ʼѧwinsock��̣�������д�������TCP server,ִ�г������5150�˿ڼ��������client���Ӿ���ʾA new connection has been made Ȼ���˳�
: �����ҷ������ int Port=5150��һ������WSADATA wsaData֮ǰ������ִ�к�û��client���Ӿ���ʾA new connection has been made Ȼ���˳�
: why?
: �����ָ�㣡
: #include <winsock2.h>
: #include <iostream>
: using namespace std;
: int main()
: {
:    WSADATA              wsaData;
:    SOCKET               ListeningSocket;
: ...................

--

�� ��Դ:��BBS ˮľ�廪վ smth.org��[FROM: 218.12.180.123]
Technical Details
Message-ID: <000000$Ubf@smth.org>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newshosting.com!news-xfer1.atl.newshosting.com!feed2.newsreader.com!newsreader.com!maily.cic.tsinghua.edu.cn!SMTH

Show Full Headers
Complete Article Headers
X-Google-Language: Chinese,GB
X-Google-Thread: 109ae0,9533a1a0034c01c
X-Google-Attributes: gid109ae0,public
X-Google-ArrivalTime: 2003-11-06 18:35:02 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newshosting.com!news-xfer1.atl.newshosting.com!feed2.newsreader.com!newsreader.com!maily.cic.tsinghua.edu.cn!SMTH
From: nuoran@smth.org (ŵȼ)
Newsgroups: cn.bbs.comp.unix.development.network
Subject: Re: ����һ����ֵ�����
Date: 07 Nov 2003 02:32:49 GMT
Organization: BBS ˮľ�廪վ
Message-ID: <000000$Ubf@smth.org>
Mime-Version: 1.0
Content-Type: text/plain; charset="gb2312"
Content-Transfer-Encoding: 8bit
X-Filename: NetPRG/N/M.1068172289.I0