ソケットを使ってクライアントサーバプログラムを作成するための C# ライブラリ
Revisão | f26ae35044dbd48a4cc27ab61a60e70b1f09b71f (tree) |
---|---|
Hora | 2015-08-28 06:21:21 |
Autor | tsntsumi <tsntsumi@tsnt...> |
Commiter | tsntsumi |
UdpServerからの導出クラスの名前をUdpプリフィクスを持つように変更
@@ -41,11 +41,11 @@ | ||
41 | 41 | <Compile Include="UdpServer.cs" /> |
42 | 42 | <Compile Include="TransmissionType.cs" /> |
43 | 43 | <Compile Include="UdpDataReceivedEventArgs.cs" /> |
44 | - <Compile Include="UnicastUdpServer.cs" /> | |
45 | - <Compile Include="MulticastUdpServer.cs" /> | |
46 | - <Compile Include="BroadcastUdpServer.cs" /> | |
47 | - <Compile Include="LocalBroadcastUdpServer.cs" /> | |
48 | 44 | <Compile Include="PacketSpec.cs" /> |
45 | + <Compile Include="UdpBroadcastServer.cs" /> | |
46 | + <Compile Include="UdpLocalBroadcastServer.cs" /> | |
47 | + <Compile Include="UdpMulticastServer.cs" /> | |
48 | + <Compile Include="UdpUnicastServer.cs" /> | |
49 | 49 | </ItemGroup> |
50 | 50 | <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> |
51 | 51 | </Project> |
\ No newline at end of file |
@@ -31,15 +31,15 @@ using System.Net.Sockets; | ||
31 | 31 | namespace SocketNet |
32 | 32 | { |
33 | 33 | /// <summary> |
34 | - /// Broadcast UDP server. | |
34 | + /// UDP Broadcast server. | |
35 | 35 | /// </summary> |
36 | - public class BroadcastUdpServer: UdpServer | |
36 | + public class UdpBroadcastServer: UdpServer | |
37 | 37 | { |
38 | 38 | /// <summary> |
39 | 39 | /// コンストラクタ。 |
40 | 40 | /// </summary> |
41 | 41 | /// <param name="port">バインドするポート番号。</param> |
42 | - public BroadcastUdpServer(int port) | |
42 | + public UdpBroadcastServer(int port) | |
43 | 43 | : base(IPAddress.Any, port, TransmissionType.Broadcast) |
44 | 44 | { |
45 | 45 | } |
@@ -31,18 +31,17 @@ using System.Net.Sockets; | ||
31 | 31 | namespace SocketNet |
32 | 32 | { |
33 | 33 | /// <summary> |
34 | - /// Local broadcast UDP server. | |
34 | + /// UDP Local broadcast server. | |
35 | 35 | /// </summary> |
36 | - public class LocalBroadcastUdpServer: UdpServer | |
36 | + public class UdpLocalBroadcastServer: UdpServer | |
37 | 37 | { |
38 | 38 | /// <summary> |
39 | 39 | /// コンストラクタ。 |
40 | 40 | /// </summary> |
41 | 41 | /// <param name="port">バインドするポート番号。</param> |
42 | - public LocalBroadcastUdpServer (int port) | |
42 | + public UdpLocalBroadcastServer (int port) | |
43 | 43 | : base(IPAddress.Any, port, TransmissionType.LocalBroadcast) |
44 | 44 | { |
45 | 45 | } |
46 | 46 | } |
47 | 47 | } |
48 | - |
@@ -31,16 +31,16 @@ using System.Net.Sockets; | ||
31 | 31 | namespace SocketNet |
32 | 32 | { |
33 | 33 | /// <summary> |
34 | - /// Multicast UDP server. | |
34 | + /// UDP Multicast server. | |
35 | 35 | /// </summary> |
36 | - public class MulticastUdpServer: UdpServer | |
36 | + public class UdpMulticastServer: UdpServer | |
37 | 37 | { |
38 | 38 | /// <summary> |
39 | 39 | /// コンストラクタ。 |
40 | 40 | /// </summary> |
41 | 41 | /// <param name="multicastAddress">ジョインするマルチキャストIPアドレス。</param> |
42 | 42 | /// <param name="port">バインドするポート番号。</param> |
43 | - public MulticastUdpServer (IPAddress multicastAddress, int port) | |
43 | + public UdpMulticastServer (IPAddress multicastAddress, int port) | |
44 | 44 | : base(IPAddress.Any, port, TransmissionType.Multicast) |
45 | 45 | { |
46 | 46 | MulticastAddress = multicastAddress; |
@@ -89,9 +89,9 @@ namespace SocketNet | ||
89 | 89 | { |
90 | 90 | if (local) |
91 | 91 | { |
92 | - return new LocalBroadcastUdpServer(port); | |
92 | + return new UdpLocalBroadcastServer(port); | |
93 | 93 | } |
94 | - return new BroadcastUdpServer(port); | |
94 | + return new UdpBroadcastServer(port); | |
95 | 95 | } |
96 | 96 | |
97 | 97 | /// <summary> |
@@ -102,7 +102,7 @@ namespace SocketNet | ||
102 | 102 | /// <param name="port">ポート番号。</param> |
103 | 103 | public static UdpServer CreateServer(IPAddress unicastAddress, int port) |
104 | 104 | { |
105 | - return new UnicastUdpServer(unicastAddress, port); | |
105 | + return new UdpUnicastServer(unicastAddress, port); | |
106 | 106 | } |
107 | 107 | |
108 | 108 | /// <summary> |
@@ -113,7 +113,7 @@ namespace SocketNet | ||
113 | 113 | /// <param name="multicastAddress">マルチキャストアドレス。</param> |
114 | 114 | public static UdpServer CreateServer(int port, IPAddress multicastAddress) |
115 | 115 | { |
116 | - return new MulticastUdpServer(multicastAddress, port); | |
116 | + return new UdpMulticastServer(multicastAddress, port); | |
117 | 117 | } |
118 | 118 | |
119 | 119 | /// <summary> |
@@ -31,16 +31,16 @@ using System.Net.Sockets; | ||
31 | 31 | namespace SocketNet |
32 | 32 | { |
33 | 33 | /// <summary> |
34 | - /// Unicast UDP server. | |
34 | + /// UDP Unicast server. | |
35 | 35 | /// </summary> |
36 | - public class UnicastUdpServer: UdpServer | |
36 | + public class UdpUnicastServer: UdpServer | |
37 | 37 | { |
38 | 38 | /// <summary> |
39 | 39 | /// コンストラクタ。 |
40 | 40 | /// </summary> |
41 | 41 | /// <param name="ipAddress">バインドするIPアドレス。</param> |
42 | 42 | /// <param name="port">バインドするポート番号。</param> |
43 | - public UnicastUdpServer (IPAddress ipAddress, int port) | |
43 | + public UdpUnicastServer (IPAddress ipAddress, int port) | |
44 | 44 | : base(ipAddress, port, TransmissionType.Unicast) |
45 | 45 | { |
46 | 46 | } |