Skip to content

Commit

Permalink
修改服务端bug
Browse files Browse the repository at this point in the history
  • Loading branch information
mf authored and mf committed Jan 15, 2018
1 parent ecd12c4 commit aa01c98
Show file tree
Hide file tree
Showing 12 changed files with 123 additions and 119 deletions.
30 changes: 15 additions & 15 deletions socket.core.sln
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.27130.2010
VisualStudioVersion = 15.0.27130.2020
MinimumVisualStudioVersion = 15.0.26124.0
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "socket.core", "socket.core\socket.core.csproj", "{10943273-9BD8-4EF7-A287-554555384EF5}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "test.window.client", "test.window.client\test.window.client.csproj", "{71178D39-6556-4E10-A4E3-79173F3E0D1B}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "test.window.server", "test.window.server\test.window.server.csproj", "{65436448-ECB4-45D9-9773-67FBA7324B5F}"
Expand All @@ -13,6 +11,8 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "test.linux.client", "test.l
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "test.linux.server", "test.linux.server\test.linux.server.csproj", "{6108D056-F7FD-45F3-8D69-D451AAA19D9C}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "socket.core", "socket.core\socket.core.csproj", "{366D4B2C-3FE5-4DDD-94A4-49913EA812CF}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand All @@ -23,18 +23,6 @@ Global
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{10943273-9BD8-4EF7-A287-554555384EF5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{10943273-9BD8-4EF7-A287-554555384EF5}.Debug|Any CPU.Build.0 = Debug|Any CPU
{10943273-9BD8-4EF7-A287-554555384EF5}.Debug|x64.ActiveCfg = Debug|Any CPU
{10943273-9BD8-4EF7-A287-554555384EF5}.Debug|x64.Build.0 = Debug|Any CPU
{10943273-9BD8-4EF7-A287-554555384EF5}.Debug|x86.ActiveCfg = Debug|Any CPU
{10943273-9BD8-4EF7-A287-554555384EF5}.Debug|x86.Build.0 = Debug|Any CPU
{10943273-9BD8-4EF7-A287-554555384EF5}.Release|Any CPU.ActiveCfg = Release|Any CPU
{10943273-9BD8-4EF7-A287-554555384EF5}.Release|Any CPU.Build.0 = Release|Any CPU
{10943273-9BD8-4EF7-A287-554555384EF5}.Release|x64.ActiveCfg = Release|Any CPU
{10943273-9BD8-4EF7-A287-554555384EF5}.Release|x64.Build.0 = Release|Any CPU
{10943273-9BD8-4EF7-A287-554555384EF5}.Release|x86.ActiveCfg = Release|Any CPU
{10943273-9BD8-4EF7-A287-554555384EF5}.Release|x86.Build.0 = Release|Any CPU
{71178D39-6556-4E10-A4E3-79173F3E0D1B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{71178D39-6556-4E10-A4E3-79173F3E0D1B}.Debug|Any CPU.Build.0 = Debug|Any CPU
{71178D39-6556-4E10-A4E3-79173F3E0D1B}.Debug|x64.ActiveCfg = Debug|Any CPU
Expand Down Expand Up @@ -83,6 +71,18 @@ Global
{6108D056-F7FD-45F3-8D69-D451AAA19D9C}.Release|x64.Build.0 = Release|Any CPU
{6108D056-F7FD-45F3-8D69-D451AAA19D9C}.Release|x86.ActiveCfg = Release|Any CPU
{6108D056-F7FD-45F3-8D69-D451AAA19D9C}.Release|x86.Build.0 = Release|Any CPU
{366D4B2C-3FE5-4DDD-94A4-49913EA812CF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{366D4B2C-3FE5-4DDD-94A4-49913EA812CF}.Debug|Any CPU.Build.0 = Debug|Any CPU
{366D4B2C-3FE5-4DDD-94A4-49913EA812CF}.Debug|x64.ActiveCfg = Debug|Any CPU
{366D4B2C-3FE5-4DDD-94A4-49913EA812CF}.Debug|x64.Build.0 = Debug|Any CPU
{366D4B2C-3FE5-4DDD-94A4-49913EA812CF}.Debug|x86.ActiveCfg = Debug|Any CPU
{366D4B2C-3FE5-4DDD-94A4-49913EA812CF}.Debug|x86.Build.0 = Debug|Any CPU
{366D4B2C-3FE5-4DDD-94A4-49913EA812CF}.Release|Any CPU.ActiveCfg = Release|Any CPU
{366D4B2C-3FE5-4DDD-94A4-49913EA812CF}.Release|Any CPU.Build.0 = Release|Any CPU
{366D4B2C-3FE5-4DDD-94A4-49913EA812CF}.Release|x64.ActiveCfg = Release|Any CPU
{366D4B2C-3FE5-4DDD-94A4-49913EA812CF}.Release|x64.Build.0 = Release|Any CPU
{366D4B2C-3FE5-4DDD-94A4-49913EA812CF}.Release|x86.ActiveCfg = Release|Any CPU
{366D4B2C-3FE5-4DDD-94A4-49913EA812CF}.Release|x86.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down
6 changes: 1 addition & 5 deletions socket.core/Common/ConnectClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,7 @@ namespace socket.core.Common
/// 已经连接的客户端
/// </summary>
public class ConnectClient
{
/// <summary>
/// 连接ID
/// </summary>
public Guid connectId { get; set; }
{
/// <summary>
/// 套接字
/// </summary>
Expand Down
22 changes: 11 additions & 11 deletions socket.core/Server/TcpPackServer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,17 +44,17 @@ public class TcpPackServer
/// <summary>
/// 连接状态下的客户端列表
/// </summary>
public ConcurrentBag<ConnectClient> ConnectClient
{
get
{
if (tcpServer == null)
{
return null;
}
return tcpServer.connectClient;
}
}
//public ConcurrentBag<ConnectClient> ConnectClient
//{
// get
// {
// if (tcpServer == null)
// {
// return null;
// }
// return tcpServer.connectClient;
// }
//}

/// <summary>
/// 设置基本配置
Expand Down
22 changes: 11 additions & 11 deletions socket.core/Server/TcpPullServer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,17 +42,17 @@ public class TcpPullServer
/// <summary>
/// 连接状态下的客户端列表
/// </summary>
public ConcurrentBag<ConnectClient> ConnectClient
{
get
{
if (tcpServer == null)
{
return null;
}
return tcpServer.connectClient;
}
}
//public ConcurrentBag<ConnectClient> ConnectClient
//{
// get
// {
// if (tcpServer == null)
// {
// return null;
// }
// return tcpServer.connectClient;
// }
//}

/// <summary>
/// 设置基本配置
Expand Down
22 changes: 11 additions & 11 deletions socket.core/Server/TcpPushServer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,17 +37,17 @@ public class TcpPushServer
/// <summary>
/// 连接状态下的客户端列表
/// </summary>
public ConcurrentBag<ConnectClient> ConnectClient
{
get
{
if(tcpServer==null)
{
return null;
}
return tcpServer.connectClient;
}
}
//public ConcurrentBag<ConnectClient> ConnectClient
//{
// get
// {
// if(tcpServer==null)
// {
// return null;
// }
// return tcpServer.connectClient;
// }
//}

/// <summary>
/// 设置基本配置
Expand Down
Loading

0 comments on commit aa01c98

Please sign in to comment.