• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

ソケットを使ってクライアントサーバプログラムを作成するための C# ライブラリ


Commit MetaInfo

Revisãof26ae35044dbd48a4cc27ab61a60e70b1f09b71f (tree)
Hora2015-08-28 06:21:21
Autortsntsumi <tsntsumi@tsnt...>
Commitertsntsumi

Mensagem de Log

UdpServerからの導出クラスの名前をUdpプリフィクスを持つように変更

Mudança Sumário

  • modified: src/SocketNet/SocketNet/SocketNet.csproj (diff)
  • modified: src/SocketNet/SocketNet/UdpServer.cs (diff)
  • delete: src/SocketNet/SocketNet/{BroadcastUdpServer.cs => UdpBroadcastServer.cs}
  • delete: src/SocketNet/SocketNet/{LocalBroadcastUdpServer.cs => UdpLocalBroadcastServer.cs}
  • delete: src/SocketNet/SocketNet/{MulticastUdpServer.cs => UdpMulticastServer.cs}
  • delete: src/SocketNet/SocketNet/{UnicastUdpServer.cs => UdpUnicastServer.cs}

Diff

--- a/src/SocketNet/SocketNet/SocketNet.csproj
+++ b/src/SocketNet/SocketNet/SocketNet.csproj
@@ -41,11 +41,11 @@
4141 <Compile Include="UdpServer.cs" />
4242 <Compile Include="TransmissionType.cs" />
4343 <Compile Include="UdpDataReceivedEventArgs.cs" />
44- <Compile Include="UnicastUdpServer.cs" />
45- <Compile Include="MulticastUdpServer.cs" />
46- <Compile Include="BroadcastUdpServer.cs" />
47- <Compile Include="LocalBroadcastUdpServer.cs" />
4844 <Compile Include="PacketSpec.cs" />
45+ <Compile Include="UdpBroadcastServer.cs" />
46+ <Compile Include="UdpLocalBroadcastServer.cs" />
47+ <Compile Include="UdpMulticastServer.cs" />
48+ <Compile Include="UdpUnicastServer.cs" />
4949 </ItemGroup>
5050 <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
5151 </Project>
\ No newline at end of file
--- a/src/SocketNet/SocketNet/BroadcastUdpServer.cs
+++ b/src/SocketNet/SocketNet/UdpBroadcastServer.cs
@@ -31,15 +31,15 @@ using System.Net.Sockets;
3131 namespace SocketNet
3232 {
3333 /// <summary>
34- /// Broadcast UDP server.
34+ /// UDP Broadcast server.
3535 /// </summary>
36- public class BroadcastUdpServer: UdpServer
36+ public class UdpBroadcastServer: UdpServer
3737 {
3838 /// <summary>
3939 /// コンストラクタ。
4040 /// </summary>
4141 /// <param name="port">バインドするポート番号。</param>
42- public BroadcastUdpServer(int port)
42+ public UdpBroadcastServer(int port)
4343 : base(IPAddress.Any, port, TransmissionType.Broadcast)
4444 {
4545 }
--- a/src/SocketNet/SocketNet/LocalBroadcastUdpServer.cs
+++ b/src/SocketNet/SocketNet/UdpLocalBroadcastServer.cs
@@ -31,18 +31,17 @@ using System.Net.Sockets;
3131 namespace SocketNet
3232 {
3333 /// <summary>
34- /// Local broadcast UDP server.
34+ /// UDP Local broadcast server.
3535 /// </summary>
36- public class LocalBroadcastUdpServer: UdpServer
36+ public class UdpLocalBroadcastServer: UdpServer
3737 {
3838 /// <summary>
3939 /// コンストラクタ。
4040 /// </summary>
4141 /// <param name="port">バインドするポート番号。</param>
42- public LocalBroadcastUdpServer (int port)
42+ public UdpLocalBroadcastServer (int port)
4343 : base(IPAddress.Any, port, TransmissionType.LocalBroadcast)
4444 {
4545 }
4646 }
4747 }
48-
--- a/src/SocketNet/SocketNet/MulticastUdpServer.cs
+++ b/src/SocketNet/SocketNet/UdpMulticastServer.cs
@@ -31,16 +31,16 @@ using System.Net.Sockets;
3131 namespace SocketNet
3232 {
3333 /// <summary>
34- /// Multicast UDP server.
34+ /// UDP Multicast server.
3535 /// </summary>
36- public class MulticastUdpServer: UdpServer
36+ public class UdpMulticastServer: UdpServer
3737 {
3838 /// <summary>
3939 /// コンストラクタ。
4040 /// </summary>
4141 /// <param name="multicastAddress">ジョインするマルチキャストIPアドレス。</param>
4242 /// <param name="port">バインドするポート番号。</param>
43- public MulticastUdpServer (IPAddress multicastAddress, int port)
43+ public UdpMulticastServer (IPAddress multicastAddress, int port)
4444 : base(IPAddress.Any, port, TransmissionType.Multicast)
4545 {
4646 MulticastAddress = multicastAddress;
--- a/src/SocketNet/SocketNet/UdpServer.cs
+++ b/src/SocketNet/SocketNet/UdpServer.cs
@@ -89,9 +89,9 @@ namespace SocketNet
8989 {
9090 if (local)
9191 {
92- return new LocalBroadcastUdpServer(port);
92+ return new UdpLocalBroadcastServer(port);
9393 }
94- return new BroadcastUdpServer(port);
94+ return new UdpBroadcastServer(port);
9595 }
9696
9797 /// <summary>
@@ -102,7 +102,7 @@ namespace SocketNet
102102 /// <param name="port">ポート番号。</param>
103103 public static UdpServer CreateServer(IPAddress unicastAddress, int port)
104104 {
105- return new UnicastUdpServer(unicastAddress, port);
105+ return new UdpUnicastServer(unicastAddress, port);
106106 }
107107
108108 /// <summary>
@@ -113,7 +113,7 @@ namespace SocketNet
113113 /// <param name="multicastAddress">マルチキャストアドレス。</param>
114114 public static UdpServer CreateServer(int port, IPAddress multicastAddress)
115115 {
116- return new MulticastUdpServer(multicastAddress, port);
116+ return new UdpMulticastServer(multicastAddress, port);
117117 }
118118
119119 /// <summary>
--- a/src/SocketNet/SocketNet/UnicastUdpServer.cs
+++ b/src/SocketNet/SocketNet/UdpUnicastServer.cs
@@ -31,16 +31,16 @@ using System.Net.Sockets;
3131 namespace SocketNet
3232 {
3333 /// <summary>
34- /// Unicast UDP server.
34+ /// UDP Unicast server.
3535 /// </summary>
36- public class UnicastUdpServer: UdpServer
36+ public class UdpUnicastServer: UdpServer
3737 {
3838 /// <summary>
3939 /// コンストラクタ。
4040 /// </summary>
4141 /// <param name="ipAddress">バインドするIPアドレス。</param>
4242 /// <param name="port">バインドするポート番号。</param>
43- public UnicastUdpServer (IPAddress ipAddress, int port)
43+ public UdpUnicastServer (IPAddress ipAddress, int port)
4444 : base(ipAddress, port, TransmissionType.Unicast)
4545 {
4646 }