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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? concli2.cpp

?? 包含常用Internet協議TCP,UDP、HTTP、FTP、Telnet等
?? 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).
EMail:        francois.piette@pophost.eunet.be  http://www.rtfm.be/fpiette
              francois.piette@rtfm.be
Creation:     Nov 22, 1997
Version:      1.02
WebSite:      http://www.rtfm.be/fpiette/indexuk.htm
Support:      Use the mailing list twsocket@rtfm.be See website for details.
Legal issues: Copyright (C) 1997, 1998 by Fran鏾is PIETTE 
              <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.

---------------------------------------------------------------------------*/
#include <condefs.h>
#include <vcl\vcl.h>
#include <stdio.h>
#include <conio.h>
#pragma hdrstop
USEUNIT("wsocket.pas");
USEUNIT("Wait.pas");
//---------------------------------------------------------------------------
#include <wsocket.hpp>
#include <wait.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");
}
//---------------------------------------------------------------------------

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91在线一区二区| 国产原创一区二区三区| 国产午夜亚洲精品理论片色戒| 欧美日韩一区在线观看| 91国产免费看| 精品视频在线免费看| 97se亚洲国产综合自在线不卡| 99综合电影在线视频| youjizz久久| 在线视频一区二区三| 91丨国产丨九色丨pron| 日本道免费精品一区二区三区| 在线观看一区日韩| 欧美丰满美乳xxx高潮www| 日韩一区二区电影在线| 精品99999| 国产精品毛片无遮挡高清| 中文在线一区二区| 一区二区三区视频在线看| 亚洲午夜电影在线| 麻豆精品精品国产自在97香蕉| 狠狠色综合播放一区二区| 国产999精品久久| 色一情一乱一乱一91av| 欧美日韩一级二级| 精品国产一二三| 亚洲欧美综合在线精品| 轻轻草成人在线| 99热这里都是精品| 制服视频三区第一页精品| 久久精品一区二区| 一区二区激情小说| 狠狠狠色丁香婷婷综合久久五月| 国产成人鲁色资源国产91色综 | 中文字幕免费观看一区| **性色生活片久久毛片| 肉丝袜脚交视频一区二区| 成人性生交大片| 69堂亚洲精品首页| 中文字幕中文字幕一区| 麻豆精品视频在线观看免费| 99在线精品视频| 亚洲精品一区二区三区香蕉| 夜夜精品浪潮av一区二区三区| 久久99久久99| 欧美日韩性生活| 综合久久国产九一剧情麻豆| 黄页网站大全一区二区| 欧美三级日韩三级国产三级| 中文字幕日韩一区| 国产一区二区三区av电影| 欧美日韩国产乱码电影| 亚洲欧洲国产日韩| 成人性生交大片免费看中文网站| 91精品国产品国语在线不卡| 一区二区三区视频在线看| 黄网站免费久久| 欧美一区二区三级| 曰韩精品一区二区| 99精品欧美一区| 亚洲国产成人一区二区三区| 美女在线视频一区| 在线观看日韩电影| 亚洲女女做受ⅹxx高潮| 成人激情综合网站| 精品少妇一区二区三区在线播放| 肉丝袜脚交视频一区二区| 欧美亚洲禁片免费| 亚洲午夜激情av| 色老汉av一区二区三区| 亚洲欧美另类久久久精品| 成人一道本在线| 国产亚洲欧美中文| 国产电影精品久久禁18| 久久亚洲精品国产精品紫薇| 久国产精品韩国三级视频| 制服丝袜中文字幕一区| 丝袜美腿成人在线| 欧美一区二区高清| 久久国产剧场电影| 国产亚洲精品精华液| 国产精品一区二区三区99| 国产日韩欧美精品综合| 成人精品在线视频观看| 日本一区二区高清| 91热门视频在线观看| 亚洲精品国产一区二区三区四区在线 | 亚洲女爱视频在线| 91黄色在线观看| 午夜精品久久久久久久| 欧美一级高清片| 国产a精品视频| 亚洲视频免费看| 欧美日韩国产欧美日美国产精品| 青青草原综合久久大伊人精品优势 | 91精品国产一区二区三区| 蜜桃免费网站一区二区三区| 国产女主播视频一区二区| 99久久免费精品| 天天色综合天天| 久久综合狠狠综合久久激情 | 91精品国产欧美日韩| 精品亚洲成av人在线观看| 国产网站一区二区| 色成人在线视频| 国产一区二区视频在线| 国产精品久久久久影院老司| 精品视频全国免费看| 国产在线精品国自产拍免费| **性色生活片久久毛片| 日韩三级视频在线看| 99精品视频在线免费观看| 美女性感视频久久| 亚洲欧美另类久久久精品| 精品成人佐山爱一区二区| 色狠狠av一区二区三区| 国产精品一区2区| 亚洲国产精品久久不卡毛片 | 欧美精品一区二区在线观看| 99在线热播精品免费| 久久99久国产精品黄毛片色诱| 一区二区三区四区在线免费观看| 精品国产a毛片| 欧美日韩亚洲综合在线| aa级大片欧美| 粉嫩av一区二区三区在线播放| 午夜精品影院在线观看| 国产精品国产三级国产aⅴ中文| 欧美成人一级视频| 欧美日韩国产免费一区二区 | 久久99精品国产麻豆婷婷| 一区二区三区四区蜜桃| 欧美激情在线看| www国产亚洲精品久久麻豆| 欧美日韩精品欧美日韩精品一| 99久久精品国产一区| 国产精品一二三四区| 日韩电影在线看| 婷婷久久综合九色国产成人| 亚洲精品自拍动漫在线| 中文字幕日韩欧美一区二区三区| 国产丝袜欧美中文另类| 久久综合久久综合久久| 日韩三级免费观看| 日韩三级伦理片妻子的秘密按摩| 欧美日韩国产欧美日美国产精品| 色婷婷久久久久swag精品| av在线不卡免费看| 不卡av在线网| 97国产一区二区| 色国产综合视频| 在线中文字幕一区| 精品视频1区2区| 欧美一区二区精品在线| 日韩午夜精品视频| 精品久久一区二区三区| 精品国产一区二区精华| wwww国产精品欧美| 欧美一区二区三区系列电影| 日韩欧美高清一区| 欧美性大战久久久| 日本精品一区二区三区高清| 97se亚洲国产综合自在线| 成人国产精品免费观看| 99久久综合99久久综合网站| 99精品欧美一区| 欧美色综合影院| 欧美剧在线免费观看网站| 7799精品视频| 久久久不卡网国产精品二区| 久久久国产精华| 亚洲精品视频在线观看免费| 午夜精品福利视频网站| 国产麻豆一精品一av一免费 | 亚洲成人在线免费| 日韩中文字幕区一区有砖一区| 麻豆freexxxx性91精品| 国产一区二区久久| 成人午夜免费视频| caoporn国产一区二区| 在线日韩av片| 日韩欧美在线123| 国产精品久久久久7777按摩| 亚洲电影在线免费观看| 九一九一国产精品| 91福利视频在线| 欧美变态凌虐bdsm| 亚洲欧洲美洲综合色网| 免费在线一区观看| 91色porny| 国产无人区一区二区三区| 一区二区三区精品在线观看| 蓝色福利精品导航| 91免费在线播放| 精品乱人伦小说| 亚洲精品视频在线看| 国产精品夜夜嗨| 777午夜精品视频在线播放| 国产欧美一区二区精品性色| 日韩av高清在线观看|