亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? concli2.cpp

?? . Info directory .delphiinternet Delphi sample applications (all Delphi versions) .cppinternet C++
?? CPP
字號:
/*---------------------------------------------------------------------------

Author:       Fran鏾is PIETTE
Description:  ConCli2 shows how to use TWSocket in a console mode application.
              ConCli2 use a thread to make the socket run in the program
              background while the foreground is busy with the user interface
              (for simplicity here we just wait for the user to hit the
              enter key).
Creation:     Nov 22, 1997
Version:      1.02
EMail:        http://www.overbyte.be       francois.piette@overbyte.be
              http://www.rtfm.be/fpiette   francois.piette@rtfm.be
              francois.piette@pophost.eunet.be
Support:      Use the mailing list twsocket@elists.org
              Follow "support" link at http://www.overbyte.be for subscription.
Legal issues: Copyright (C) 1997-2002 by Fran鏾is PIETTE
              Rue de Grady 24, 4053 Embourg, Belgium. Fax: +32-4-365.74.56
              <francois.piette@overbyte.be> <francois.piette@pophost.eunet.be>

              This software is provided 'as-is', without any express or
              implied warranty.  In no event will the author be held liable
              for any  damages arising from the use of this software.

              Permission is granted to anyone to use this software for any
              purpose, including commercial applications, and to alter it
              and redistribute it freely, subject to the following
              restrictions:

              1. The origin of this software must not be misrepresented,
                 you must not claim that you wrote the original software.
                 If you use this software in a product, an acknowledgment
                 in the product documentation would be appreciated but is
                 not required.

              2. Altered source versions must be plainly marked as such, and
                 must not be misrepresented as being the original software.

              3. This notice may not be removed or altered from any source
                 distribution.

Updates:
Apr 12, 1998 V1.01 Adapted for BCB3
Dec 19, 1998 V1.02 Do not use TWait control anymore.

---------------------------------------------------------------------------*/
#if __BORLANDC__ == 0x520     // BCB1 is BC5.20   BCB3 is BC5.30
    #define _WINSOCKAPI_      // Prevent winsock.h from being included
#endif
#include <vcl\vcl.h>
#include <stdio.h>
#include <conio.h>
#include <condefs.h>
#pragma hdrstop
#include <wsocket.hpp>

#define ServerHostName "localhost"
#define ServerPort     "telnet"
//---------------------------------------------------------------------------
class TWSocketThread : public TThread
{
private:
protected:
    TWSocket *FWSocket;
    char     FRcvBuf[1024];
    void __fastcall Execute();
    void __fastcall FWSocketDataAvailable(TObject *Sender, WORD Error);
    void __fastcall FWSocketSessionConnected(TObject *Sender, WORD Error);
    void __fastcall FWSocketSessionClosed(TObject *Sender, WORD Error);
public:
    __fastcall TWSocketThread();
};
//---------------------------------------------------------------------------
__fastcall TWSocketThread::TWSocketThread()
    : TThread(TRUE)              // Create suspended
{
    FreeOnTerminate = TRUE;
}
//---------------------------------------------------------------------------
void __fastcall TWSocketThread::Execute()
{
    // Let's the user know what we are doing
    printf("Connecting to server '" ServerHostName
           "' on port '" ServerPort "'\n");

    // Create the TWSocket we will use to commicate with the server
    FWSocket                    = new TWSocket((void *)NULL);

    // Assign the event handler for the TWSocket events we care of
    FWSocket->OnDataAvailable    = FWSocketDataAvailable;
    FWSocket->OnSessionClosed    = FWSocketSessionClosed;
    FWSocket->OnSessionConnected = FWSocketSessionConnected;

    // Connect to the server
    FWSocket->Addr     = ServerHostName;
    FWSocket->Port     = ServerPort;
    FWSocket->Proto    = "tcp";
    FWSocket->Connect();

    // Let the TWSocket component makes his work
    FWSocket->MessageLoop();

    // We are done, destroy the objects we created
    delete FWSocket;
}
//---------------------------------------------------------------------------
// This event handler is called by the TWSocket when some data has been
// received by the lower level.
void __fastcall TWSocketThread::FWSocketDataAvailable(TObject *Sender, WORD Error)
{
    int Len;

    // Get the received data
    Len = FWSocket->Receive(FRcvBuf, sizeof(FRcvBuf) - 1);
    if (Len <= 0)
        return;

    // Add a terminating nul byte to allow display using standard I/O
    FRcvBuf[Len] = 0;
    printf("%s", FRcvBuf);
}
//---------------------------------------------------------------------------
// This event handler is called by TWSocket when the connection is
// established with the remote host
void __fastcall TWSocketThread::FWSocketSessionConnected(TObject *Sender, WORD Error)
{
    printf("Connected\n");
}
//---------------------------------------------------------------------------
// This event handler is called by TWSocket when the connection is broken
void __fastcall TWSocketThread::FWSocketSessionClosed(TObject *Sender, WORD Error)
{
    printf("Server has diconnected\n");
    FWSocket->Close();
}
//---------------------------------------------------------------------------
void main(void)
{
    TWSocketThread *WSocketThread;

    printf("Hit enter to stop the program\n");

    // Create the socket working thread (suspended)
    WSocketThread = new TWSocketThread;

    // Start the thread
    WSocketThread->Resume();

    // The main thread continue here. Process user request here.
    getch();

    // We are done, quit the program
    printf("Ok.\n");
}
//---------------------------------------------------------------------------

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产99久久久久久免费看农村| 欧美一区二区三区男人的天堂| 91久久精品国产91性色tv| 欧美一级高清片| 综合激情成人伊人| 国产精品一色哟哟哟| 欧美年轻男男videosbes| 中文字幕亚洲一区二区av在线| 加勒比av一区二区| 欧美日韩国产不卡| 亚洲男人天堂一区| 成人av电影免费观看| xf在线a精品一区二区视频网站| 一区二区三区在线免费播放| a在线播放不卡| 国产亚洲欧美激情| 麻豆91在线播放免费| 欧美另类z0zxhd电影| 亚洲午夜视频在线观看| 日本高清成人免费播放| 亚洲婷婷国产精品电影人久久| 国产激情视频一区二区在线观看| 日韩欧美在线观看一区二区三区| 丝袜脚交一区二区| 7799精品视频| 美女在线观看视频一区二区| 欧美一区二区免费视频| 美女高潮久久久| 精品日韩一区二区三区免费视频| 秋霞午夜鲁丝一区二区老狼| 日韩欧美国产午夜精品| 精品系列免费在线观看| 精品对白一区国产伦| 国产原创一区二区三区| 国产片一区二区| 成人午夜在线免费| 亚洲人成在线观看一区二区| 日本韩国欧美在线| 视频在线在亚洲| 日韩一卡二卡三卡国产欧美| 九九精品视频在线看| 国产日产欧美一区| 不卡在线观看av| 亚洲综合色区另类av| 欧美巨大另类极品videosbest | 樱花影视一区二区| 色悠悠亚洲一区二区| 五月婷婷另类国产| 日韩色在线观看| 国产99精品在线观看| 亚洲人亚洲人成电影网站色| 日本精品一区二区三区高清| 天天综合色天天综合色h| 欧美一区二区三区视频在线观看| 国产伦精品一区二区三区免费迷| 中文字幕在线观看不卡| 欧美色图免费看| 国产一区二区久久| 亚洲猫色日本管| 日韩一区二区免费电影| 成人午夜在线播放| 日日骚欧美日韩| 国产日韩精品一区二区三区 | 色综合天天综合在线视频| 亚洲午夜电影在线观看| 亚洲精品一区二区三区福利 | 久久九九久久九九| 91首页免费视频| 美女视频黄 久久| 亚洲三级免费观看| 欧美精品一区二区三区四区| 色吧成人激情小说| 国产乱子伦视频一区二区三区| 亚洲视频免费看| 久久免费电影网| 欧美精品乱码久久久久久| 成人avav在线| 国产自产视频一区二区三区| 午夜a成v人精品| 最好看的中文字幕久久| 2023国产精华国产精品| 欧美日韩久久不卡| 99久久婷婷国产| 国产盗摄精品一区二区三区在线| 午夜伦理一区二区| 亚洲免费资源在线播放| 欧美高清在线视频| 久久综合狠狠综合久久综合88| 欧美在线影院一区二区| 成人福利电影精品一区二区在线观看| 日韩电影在线一区二区三区| 亚洲精品乱码久久久久| 国产精品久久久久久久岛一牛影视| 91精品国产乱码| 欧美精品v国产精品v日韩精品| 97se亚洲国产综合自在线| 国产九色sp调教91| 久久99日本精品| 美女脱光内衣内裤视频久久网站 | 国产精品天美传媒| 精品国产亚洲一区二区三区在线观看| 欧美日韩国产免费| 欧美性淫爽ww久久久久无| 色综合一区二区| 一本色道久久综合精品竹菊| bt欧美亚洲午夜电影天堂| 成人精品国产一区二区4080| 国产精品77777竹菊影视小说| 卡一卡二国产精品| 精品亚洲国产成人av制服丝袜| 久久精品99国产精品日本| 欧美aa在线视频| 久久不见久久见免费视频1| 精品一区二区在线视频| 国产精品18久久久久久久网站| 粉嫩高潮美女一区二区三区| 91欧美激情一区二区三区成人| 国产精品久久综合| 亚洲人123区| 麻豆精品久久精品色综合| 99免费精品在线观看| 在线成人免费视频| 国产精品蜜臀在线观看| 欧美aa在线视频| 色综合天天综合| 精品国产乱码久久久久久老虎| 亚洲美女免费视频| 国产98色在线|日韩| 欧美一区二区三区小说| 亚洲欧美aⅴ...| 国产成人精品亚洲777人妖 | 99re这里只有精品6| 日韩免费视频一区| 一区二区三区视频在线看| 国产精品一区二区在线看| 91精品国产综合久久久久久漫画| 亚洲欧美一区二区久久| 国产成人精品免费视频网站| 日韩欧美一区二区免费| 亚洲国产欧美日韩另类综合| 99久久婷婷国产| 欧美国产欧美综合| 国产在线精品一区二区不卡了| 欧美美女直播网站| 亚洲欧洲日本在线| 国产成人在线影院| 日韩精品一区二区三区中文精品| 亚洲国产成人va在线观看天堂| www.欧美色图| 中文字幕不卡在线| 国产精品538一区二区在线| 欧美一区二区网站| 偷窥国产亚洲免费视频| 一本色道综合亚洲| 亚洲视频一二区| 色综合久久99| 亚洲免费观看高清完整版在线观看| 成人国产精品免费| 国产精品国产自产拍高清av王其| 国产成人精品一区二区三区四区 | 综合欧美亚洲日本| 不卡av在线免费观看| 国产精品视频观看| 97久久超碰国产精品| 亚洲欧美一区二区不卡| 成人18视频在线播放| 国产精品成人午夜| 91在线视频网址| 亚洲一区在线看| 欧美另类变人与禽xxxxx| 视频一区二区不卡| 日韩美女在线视频| 国产原创一区二区| 国产清纯在线一区二区www| 成人精品视频一区二区三区尤物| 国产精品成人一区二区艾草 | 专区另类欧美日韩| 色视频欧美一区二区三区| 亚洲二区在线视频| 日韩三级精品电影久久久 | 色综合久久99| 亚洲综合视频在线| 欧美一区二区三区免费观看视频| 捆绑调教美女网站视频一区| 久久精品无码一区二区三区| av成人动漫在线观看| 亚洲小说春色综合另类电影| 欧美一区三区二区| 高潮精品一区videoshd| 日韩毛片在线免费观看| 欧美二区三区91| 国产一区二区三区美女| 亚洲人亚洲人成电影网站色| 欧美美女一区二区在线观看| 国产一区二区在线看| 亚洲欧美色一区| 欧美电影免费提供在线观看| 成人app网站| 日韩中文字幕麻豆| 国产精品无圣光一区二区|