コード例 #1
0
ファイル: HttpLite.cs プロジェクト: joyhooei/GameDemos
    public void httpRequest(string url, HttpStateCB cb)
    {
        if (m_myHttpState != HttpState.E_HTTP_STATE_DOWNLOADING)
        {
            m_myUrl       = url;
            m_httpStateCB = cb;

            ThreadStart threadStart = new ThreadStart(httpDownloadProc);
            Thread      thread      = new Thread(threadStart);
            thread.Start();
        }
    }
コード例 #2
0
ファイル: HttpLite.cs プロジェクト: joyhooei/GameDemos
    public void httpPostRequest(string url, HttpStateCB cb, byte[] postData)
    {
        if (m_myHttpState != HttpState.E_HTTP_STATE_DOWNLOADING)
        {
            m_myUrl       = url;
            m_httpStateCB = cb;

            mPostData = postData;

            ThreadStart threadStart = new ThreadStart(httpPostProc);
            Thread      thread      = new Thread(threadStart);
            thread.Start();
        }
    }