Commit Graph

120 Commits

Author SHA1 Message Date
Andrew Welker
fa451e980b remove additional debug statement 2020-12-21 12:35:54 -07:00
Andrew Welker
9f84090f3d remove debug statement 2020-12-21 11:45:25 -07:00
Andrew Welker
5c603a636c stop AutoReconnect on initial connect
also corrected a debug call to add the key
2020-11-10 16:06:53 -07:00
Andrew Welker
895873c51e add StopDebugTimer method 2020-10-28 08:58:07 -06:00
Alex Johnson
c253007def Update CommunicationStreamDebugging.cs
Removed unneeded change to convert item to string.
2020-10-15 16:52:24 -04:00
Alex Johnson
3d7bc32b8a Fixes some exceptions when setting stream debugging mode. Changes stream debugging to clear both rx and tx flags before setting mode again. 2020-10-15 16:30:54 -04:00
Andrew Welker
82c23b84f1 Update eControlMethods.cs 2020-09-17 08:57:28 -06:00
Andrew Welker
6133df971d Initialize StreamDebugging from S+ constructors 2020-08-14 10:51:49 -06:00
Andrew Welker
a67baaa9c8 Change buffer size back to 65534 for GenericSshClient 2020-06-24 13:05:55 -06:00
Neil Dorin
be86d0e165 Merge pull request #29 from PepperDash/feature/TcpShutdownDisconnect
Fix GenericTcpIpClient reconnect when disconnect is requested
2020-06-10 09:23:53 -06:00
Jason Alborough
b136cc026c Merge branch 'development' into feature/TcpShutdownDisconnect 2020-06-10 09:08:09 -04:00
Jason Alborough
69587021cb Revere the uncommenting of debug statements 2020-06-10 09:07:37 -04:00
Jason Alborough
f89c75debc #28 Fixes issue where GenericTxpIpClient would attempt to reconnect when it was disconnected on a shutdown or program stop. 2020-06-09 20:44:52 -04:00
Andrew Welker
e3c5f101bc fixes conditional for turning debugging off 2020-06-09 15:57:32 -06:00
Andrew Welker
91abd2dd10 fixes issues with various methods 2020-06-09 15:53:43 -06:00
Andrew Welker
a7bacd26dd change private field to store ms instead of minutes 2020-06-09 15:16:08 -06:00
Neil Dorin
8f075fbed7 Adds IStreamDebugging and associated logic to implment on TCP, SSH and UDP methods 2020-06-09 14:05:27 -06:00
Neil Dorin
b13f425169 #11 adds semaphore to prevent Connect() from being called from S+ if a connection attempt is still in progress. 2020-02-25 15:19:49 -07:00
Jason T Alborough
c037d73e32 Adds logging of the SocketErrorCode when arming WaitForConnectionAsync.
#8
2020-02-22 07:22:10 -05:00
Jason T Alborough
c823760711 # GenericSecureTcpIpServer
- Restarts the server whenever a faulty client connection occurs. This appears the only way to get the listener back after a faulty attempt.
- Removes the condition on rearming the server.WaitForConnectionAsync callback.
2020-02-21 13:03:14 -05:00
Neil Dorin
814e0f247c closes PDC-43 and adds correct condition before printing statment in Debug class. 2020-02-11 14:52:34 -07:00
Neil Dorin
43c6083b03 Merge remote-tracking branch 'origin/bugfix/PDC-38_RestartListeningAfterMax' into bugfix/pdc-41 2020-01-24 15:30:28 -07:00
Neil Dorin
5576fa349d Cleans up the disconnect logic and adds KillClient() to better control process of disposing of resources before reconnect attempts. Adds XML help for propeties and methods 2020-01-24 15:29:54 -07:00
Alex Johnson
19263590a7 Changes Ssh client autoreconnect method to null client and start with new client on next attempt. Saw issues specifically with Polycom not reconnecting unless we spin up a new client. 2020-01-21 09:51:16 -05:00
Jason T Alborough
b5f611f3ba Changes the conditions under which the server would restart. 2020-01-17 20:02:41 -05:00
Jason T Alborough
dd3227d59e Restarts the listener if the server Clients is < MaxClients and not listening. 2020-01-03 14:58:24 -05:00
Neil Dorin
b96ac89195 adds a null check to Receive() 2019-12-12 15:32:58 -07:00
Neil Dorin
f3b70a8edb Adds better null check to WaitAndTryReconnect() 2019-12-12 15:14:55 -07:00
Neil Dorin
aebd577dd6 Adds null check in WaitAndTryReconnect() 2019-12-12 15:07:40 -07:00
Neil Dorin
f9ae8ca38f Adds XML summary comments 2019-12-12 14:14:56 -07:00
Jason T Alborough
fa2feb698c Really removes general status debug messages from level 1 to level 2 in Tcp Clients for Server 2019-11-12 17:26:15 -05:00
Jason T Alborough
6a81306166 Changes general status debug messages from level 1 to level 2 in Tcp Clients for Server 2019-11-08 11:20:40 -05:00
Neil Dorin
fcf59f7b4c Merge remote-tracking branch 'origin/development' into HEAD
# Conflicts:
#	Pepperdash Core/Pepperdash Core/JsonToSimpl/JsonToSimplFileMaster.cs
2019-10-15 12:37:15 -06:00
Jason T Alborough
139777b501 Adds conditions for when creating a new Ssh client. 2019-10-11 05:59:10 -04:00
Neil Dorin
765bc4392a Updates Assembly version to 1.0.0 to allow CI pipeline to set. Adds new constructor for GenericTcpIpClient that only takes a key. 2019-10-02 15:57:59 -06:00
Jason T Alborough
efe60b3ae0 Adds RecivedFromCLientIndexUshort to GenericTcpServerCommMethodRecieveTextArgs 2019-10-02 15:55:17 -04:00
Jason T Alborough
d8504fd70f PDC-18_AddS+ConstructorToEventArgs
Added
2019-08-30 13:50:42 -04:00
Heath Volmer
20f7265fdb ecs-1141: fixed null ref in TCP/Secure TCP server StopListening() 2019-08-16 09:30:36 -06:00
Neil Dorin
2a75ec5ec5 Merge remote-tracking branch 'origin/feature/UdpSimplModule' into maintenance/PR-3 2019-07-17 15:00:30 -06:00
Joshua Gutenplan
f0ad3b3706 Added event for connected to drive connected fb on module. Status change is there but it uses socket status which is not available in UDP. 2019-06-26 19:36:19 -07:00
Joshua Gutenplan
a9dbaf21c2 Added a few hooks for S+ in udp class no logic change just additions for s+ 2019-06-25 18:19:17 -07:00
Jason T Alborough
35af8d3172 # PDC-17 FixSettingHostname&Port
- I'm not sure this is the best way to fix this. I think the hostname and port variables need to be rethought in the TcpClient wrappers. This works for my needs for now but we still need to fix it globally.
2019-06-24 17:40:41 -04:00
Joshua Gutenplan
2c5c4e39a4 updated client to add an event for the auto reconnect. Using this event with empty args to catch the client before the next attempt and change the port for a multi server environment. Also updated the server to not kill on a listen so that if the server stops listening due to max clients (does this automatically) it will be able to start listening on when it drops below max clients without disconnecting all connected clients. On server Also udpated the onConnectionChange to fire in its own thread so that the server can update its state and the state will be accurate in the event callbacks. See description in code. 2019-06-18 16:54:29 -07:00
Joshua Gutenplan
7782f8747d Fix debug statement for secure client & server to remove the udp ref 2019-06-14 15:49:03 -07:00
Joshua Gutenplan
b1e3102455 Fix tcp client config object. 2019-06-14 14:00:29 -07:00
Joshua Gutenplan
45edcae034 fix namespace in client config object 2019-06-14 09:21:12 -07:00
Joshua Gutenplan
8dc3cb967b Added xml doc and some summaries to some of the warnings. There are still 321 warnings for xml doc, but I think its helpful to see what summaries are there in ref'd solutions. 2019-06-13 19:33:39 -07:00
Joshua Gutenplan
214e1d215c Added the client config object, and added the receive queue and thread with event to the Secure TCP server and client. Will need to duplicate to the unsecure at some point after testing. 2019-06-13 19:17:09 -07:00
Joshua Gutenplan
fcc1ef3d1d add same updates to secure tcp client for server. Moves on ready to fire on connect call back and makes sure that first message fires text received when shared key not enabled. 2019-06-10 02:23:34 -07:00
Joshua Gutenplan
229723b50f Moved on ready to call on connect callback if shared key not required and connected. Moved text received event to else to get called on first message if shared key is off 2019-06-10 02:07:00 -07:00