Mercurial > hg > Database > Christie-sharp
changeset 53:bdc364119f30
This version is stable
author | riono <e165729@ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 14 Jan 2022 15:46:07 +0900 |
parents | ef3fd58af531 |
children | e75e143b92e7 |
files | Christie_net.csproj daemon/IncomingTcpConnection.cs datagear/RemoteDataGearManager.cs |
diffstat | 3 files changed, 6 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/Christie_net.csproj Fri Jan 14 15:26:17 2022 +0900 +++ b/Christie_net.csproj Fri Jan 14 15:46:07 2022 +0900 @@ -3,7 +3,7 @@ <PropertyGroup> <OutputType>Exe</OutputType> <TargetFramework>netcoreapp6.0</TargetFramework> - <StartupObject>Christie_net.Test.Example.FizzBuzz.StartFizzBuzz</StartupObject> + <StartupObject>Christie_net.Test.Example.OddEven.StartOddEven</StartupObject> </PropertyGroup> <ItemGroup>
--- a/daemon/IncomingTcpConnection.cs Fri Jan 14 15:26:17 2022 +0900 +++ b/daemon/IncomingTcpConnection.cs Fri Jan 14 15:46:07 2022 +0900 @@ -31,7 +31,7 @@ int length = 0; try { - length = connection.stream.Read(streamData,0, 100); + length = connection.stream.Read(streamData); //Console.WriteLine("call:" + connection.stream.Position); } catch (Exception e) {
--- a/datagear/RemoteDataGearManager.cs Fri Jan 14 15:26:17 2022 +0900 +++ b/datagear/RemoteDataGearManager.cs Fri Jan 14 15:46:07 2022 +0900 @@ -20,7 +20,8 @@ public RemoteDataGearManager(string dgmname, string address, int port, CodeGearManager cgm) { this.cgm = cgm; RemoteDataGearManager manager = this; - Task.Factory.StartNew(() => { + //Task.Factory.StartNew(() => { + Thread thread = new Thread( () => { do { try { IPHostEntry host = Dns.GetHostEntry(address); @@ -57,8 +58,8 @@ outboundThread.Start(); }); - // thread.Name = "Connect-" + dgmname; - // thread.Start(); + thread.Name = "Connect-" + dgmname; + thread.Start(); } public override void Put(string key, object data) {