0
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

C#でTCP

Last updated at Posted at 2018-02-20

#概要

クラス 説明
Socket Win APIのマーシャリング, 同期、非同期、サーバー、クライント
TCPClient System.Net.Socket
TCPLisener System.Net.Socket
UDPClinet System.Net.Socket
WebClient System.Net アップロードとダウンロード

WebRequestグループ(System.Net)

クラス 説明
WebRequest WebResponce
PackWebRequest PackWebRespoce
FileWebRequest FileWebRespoce
FtpWebRequest FtpWebRespoce
HttpWebRequest HttpWebRespoce

TCPListener (同期) AcceptTcpClientを使用

スレッドはリクエストに対する処理が 終わるまで次の処理を行えません。

foo.cs 使う
class ()
{
}

TCPListener (非同期1) BeginAcceptTcpClientを使用

スレットはリクエストを受付、その処理は別のスレッドが行います。直ちに次のリクエスト受付を開始しします。

TCPListener (非同期2)

#Task async await

0
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?