mirror of
https://github.com/PepperDash/PepperDashCore.git
synced 2026-02-16 13:14:49 +00:00
Added debug messages to GenericTcpIpClient constructor
This commit is contained in:
@@ -86,6 +86,19 @@ namespace PepperDash.Core
|
|||||||
public GenericTcpIpClient(string key, string address, int port, int bufferSize)
|
public GenericTcpIpClient(string key, string address, int port, int bufferSize)
|
||||||
: base(key)
|
: base(key)
|
||||||
{
|
{
|
||||||
|
if (string.IsNullOrEmpty(address))
|
||||||
|
{
|
||||||
|
Debug.Console(1, Debug.ErrorLogLevel.Warning, "GenericTcpIpClient '{0}': No address set", key);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (port < 1 || port > 65535)
|
||||||
|
{
|
||||||
|
{
|
||||||
|
Debug.Console(1, Debug.ErrorLogLevel.Warning, "GenericTcpIpClient '{0}': Invalid port", key);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Client = new TCPClient(address, port, bufferSize);
|
Client = new TCPClient(address, port, bufferSize);
|
||||||
Client.SocketStatusChange += Client_SocketStatusChange;
|
Client.SocketStatusChange += Client_SocketStatusChange;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -78,18 +78,6 @@
|
|||||||
<Import Project="$(MSBuildBinPath)\Microsoft.CompactFramework.CSharp.targets" />
|
<Import Project="$(MSBuildBinPath)\Microsoft.CompactFramework.CSharp.targets" />
|
||||||
<ProjectExtensions>
|
<ProjectExtensions>
|
||||||
<VisualStudio>
|
<VisualStudio>
|
||||||
<FlavorProperties GUID="{0B4745B0-194B-4BB6-8E21-E9057CA92500}">
|
|
||||||
<ProgramIdTag>PepperDash_Core</ProgramIdTag>
|
|
||||||
<SystemName>PepperDash_Core</SystemName>
|
|
||||||
<Programmer />
|
|
||||||
<ArchiveFilename>C:\Users\hvolm\Desktop\working\pepperdash-simplsharp-core\Pepperdash Core\Pepperdash Core\bin\PepperDash_Core.clz</ArchiveFilename>
|
|
||||||
<MinFirmwareVersion>1.007.0017</MinFirmwareVersion>
|
|
||||||
<CompiledOn>9/27/2016 5:17:31 PM</CompiledOn>
|
|
||||||
<AdditionalInfo />
|
|
||||||
<EmbedSourceArchive>False</EmbedSourceArchive>
|
|
||||||
<CopyTo />
|
|
||||||
<OriginalReferenceSources />
|
|
||||||
</FlavorProperties>
|
|
||||||
</VisualStudio>
|
</VisualStudio>
|
||||||
</ProjectExtensions>
|
</ProjectExtensions>
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
|
|||||||
BIN
Pepperdash Core/Pepperdash Core/PepperDash_Core.projectinfo
Normal file
BIN
Pepperdash Core/Pepperdash Core/PepperDash_Core.projectinfo
Normal file
Binary file not shown.
Binary file not shown.
@@ -10,7 +10,11 @@
|
|||||||
<ArchiveName />
|
<ArchiveName />
|
||||||
</RequiredInfo>
|
</RequiredInfo>
|
||||||
<OptionalInfo>
|
<OptionalInfo>
|
||||||
<CompiledOn>9/27/2016 5:17:31 PM</CompiledOn>
|
<CompiledOn>10/18/2016 12:34:49 PM</CompiledOn>
|
||||||
<CompilerRev>1.0.0.29325</CompilerRev>
|
<CompilerRev>1.0.0.20775</CompilerRev>
|
||||||
</OptionalInfo>
|
</OptionalInfo>
|
||||||
|
<Plugin>
|
||||||
|
<Version>Crestron.SIMPLSharp, Version=2.0.48.0, Culture=neutral, PublicKeyToken=812d080f93e2de10</Version>
|
||||||
|
<Include4.dat />
|
||||||
|
</Plugin>
|
||||||
</ProgramInfo>
|
</ProgramInfo>
|
||||||
Binary file not shown.
@@ -1,5 +1,6 @@
|
|||||||
MainAssembly=PepperDash_Core.dll:945e6c6366e369445585fb8cacdefe8e
|
MainAssembly=PepperDash_Core.dll:59ea04ece7016e5dd5cfbefdb88bb5ab
|
||||||
MainAssemblyMinFirmwareVersion=1.007.0017
|
MainAssemblyMinFirmwareVersion=1.007.0017
|
||||||
|
MainAssemblyResource=SimplSharpData.dat:315526abf906cded47fb0c7510266a7e
|
||||||
ü
|
ü
|
||||||
DependencySource=Newtonsoft.Json.Compact.dll:ea996aa2ec65aa1878e7c9d09e37a896
|
DependencySource=Newtonsoft.Json.Compact.dll:ea996aa2ec65aa1878e7c9d09e37a896
|
||||||
DependencyPath=PepperDash_Core.clz:Newtonsoft.Json.Compact.dll
|
DependencyPath=PepperDash_Core.clz:Newtonsoft.Json.Compact.dll
|
||||||
|
|||||||
Binary file not shown.
Reference in New Issue
Block a user