Added debug messages to GenericTcpIpClient constructor

This commit is contained in:
Heath Volmer
2016-10-18 12:37:46 -06:00
parent 7137563e96
commit 9553dac99c
8 changed files with 21 additions and 15 deletions

View File

@@ -86,6 +86,19 @@ namespace PepperDash.Core
public GenericTcpIpClient(string key, string address, int port, int bufferSize)
: 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.SocketStatusChange += Client_SocketStatusChange;
}

View File

@@ -78,18 +78,6 @@
<Import Project="$(MSBuildBinPath)\Microsoft.CompactFramework.CSharp.targets" />
<ProjectExtensions>
<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>
</ProjectExtensions>
<PropertyGroup>

View File

@@ -10,7 +10,11 @@
<ArchiveName />
</RequiredInfo>
<OptionalInfo>
<CompiledOn>9/27/2016 5:17:31 PM</CompiledOn>
<CompilerRev>1.0.0.29325</CompilerRev>
<CompiledOn>10/18/2016 12:34:49 PM</CompiledOn>
<CompilerRev>1.0.0.20775</CompilerRev>
</OptionalInfo>
<Plugin>
<Version>Crestron.SIMPLSharp, Version=2.0.48.0, Culture=neutral, PublicKeyToken=812d080f93e2de10</Version>
<Include4.dat />
</Plugin>
</ProgramInfo>

View File

@@ -1,5 +1,6 @@
MainAssembly=PepperDash_Core.dll:945e6c6366e369445585fb8cacdefe8e
MainAssembly=PepperDash_Core.dll:59ea04ece7016e5dd5cfbefdb88bb5ab
MainAssemblyMinFirmwareVersion=1.007.0017
MainAssemblyResource=SimplSharpData.dat:315526abf906cded47fb0c7510266a7e
ü
DependencySource=Newtonsoft.Json.Compact.dll:ea996aa2ec65aa1878e7c9d09e37a896
DependencyPath=PepperDash_Core.clz:Newtonsoft.Json.Compact.dll