Commit Graph

85 Commits (a2275712b53406e9950ae7ee2923d8cb5d8be71d)

Author SHA1 Message Date
MCARDLE Sean M a63cfa8421 Added option parser from Mono. 2016-11-30 12:31:56 -08:00
MCARDLE Sean M fa393971b0 Fixed bug in server not prepending client identity in first response message frame. 2016-11-30 00:40:24 -08:00
MCARDLE Sean M 307a31714a Successfully sending messages to server and responding via 0mq. TODO implement response handling on client. 2016-11-30 00:18:17 -08:00
Sean McArdle 174e0fae7f Added better responses and logging around pause function. 2016-11-21 16:15:35 -08:00
Sean McArdle 3caf35d905 Added nic whitelist to netstate. 2016-11-21 16:15:15 -08:00
Sean McArdle fb9d095e9c Added facility to indicate when it should actually check network state while paused. 2016-11-21 14:29:55 -08:00
MCARDLE Sean M d1e4a6bebe Moved to using Task.Delay() instead of a Timer for the "take_five" command. Seems to reduce memory usage slightly. Also updates interfaces if paused when giving network state. 2016-11-18 22:48:16 -08:00
MCARDLE Sean M f3374c44ee Formatting and tighter main loop. 2016-11-18 21:07:07 -08:00
MCARDLE Sean M 549aed1377 Removed some unneeded references and added some encapsulation. 2016-11-18 20:29:27 -08:00
MCARDLE Sean M a43ef8040f Merge branch 'dev' into systray 2016-11-18 19:54:14 -08:00
MCARDLE Sean M d6df318169 Ensuring the whitelist is observed in another instance. 2016-11-18 19:53:57 -08:00
MCARDLE Sean M 224b5700c7 Added logging to the reset nic state operation. 2016-11-18 19:53:32 -08:00
MCARDLE Sean M e4424fbea1 5 minute pausing works, need more console logging and service status check mechanism. 2016-11-17 22:23:45 -08:00
Sean McArdle 306b6112d4 Added fields and default constructor for serialization. 2016-11-17 10:05:47 -08:00
Sean McArdle 0b444d04c2 Now passing simplified network state to client. 2016-11-17 00:10:44 -08:00
Sean McArdle d9ceeedeff Successfully moved to XDMessaging.Lite but that required bumping the runtime version to 4.5.2. 2016-11-16 17:00:11 -08:00
Sean McArdle 48948c197f Added XDMessaging package. 2016-11-16 14:44:20 -08:00
Sean McArdle 4f946ba190 Working on IPC with XDMessaging.Lite. 2016-11-16 14:43:50 -08:00
Sean McArdle 292df9350b Preliminary IPC setup in place. May need to change IPC mechanism based on access limitations. 2016-11-16 10:10:30 -08:00
Sean McArdle f88c6ef6b0 Added SimpleIPC for communicating with Service/Client. 2016-11-15 19:00:58 -08:00
Sean McArde f445a74b4f Merge branch 'surfaceProFixes' into dev
# Conflicts:
#	WifiSitter/WifiSitter.cs
2016-11-06 21:56:37 -08:00
Sean McArde a5063a0485 Made service/console check more clear. Trying to create service without uninstaller. 2016-11-06 13:22:12 -08:00
Sean McArde e5cb44e349 Now logs start up failures to event viewer, debugging service start nearly impossible otherwise. Also checking array size before indexing into it. 2016-11-03 21:21:25 -07:00
Sean McArde 6514a78df6 Was not properly updating connection availability of ethernet connections that became disconnected, was previously treating only WiFi as potentially transient. Also now identify state change event console logging as coming from events, helps clarity. 2016-11-03 20:58:02 -07:00
Sean McArdle 549d7b51f0 Added timer to check network state so changes can be identified even if event's haven't been fired. Need to do this when waking from sleep. 2016-11-03 20:02:48 -07:00
Sean McArdle 6bf4cd4c56 Argument parsing options, fixed some bugs. 2016-11-03 20:01:07 -07:00
Sean McArde dc8550aa31 Merge branch 'master'
Conflicts:
	WifiSitter/WifiSitter.cs
2016-10-02 13:06:17 -07:00
Sean McArde f77c3ed207 merged from IPC branch. 2016-10-02 11:39:06 -07:00
Sean McArde 5dc3ce1897 Added async task behavior when enable/disable on processes stop. Should mitigate issues with enabling many NICs at a time still needs thorough testing. 2016-09-27 23:51:22 -07:00
Sean McArde 9385ff686b Moved some files into the Helpers folder and pulled in the NativeWifi libraries. 2016-09-25 14:04:17 -07:00
Sean McArde 152db18c47 Now tracking interface state on start and restoring this state when process exits. This may cause longer service shutdown times if there are lots of interfaces to modify. Need testing. 2016-09-21 14:49:47 -07:00
Sean McArdle 2b2b88381e More fussing with auto version increment. 2016-05-20 10:17:39 -07:00
Sean McArdle 80ed28d741 Ignoring WMWare adapters by default now. 2016-05-20 10:17:20 -07:00
Sean McArdle cfa1eaa905 Changed publisher, should be me for the open source version. 2016-05-09 18:38:44 -07:00
Sean McArdle 2da779e2be Fixed issue where thread interrupt would cause the service framework would throw an error because interrupting the waiting thread throws an exception. 2016-05-09 11:48:20 -07:00
Sean McArdle 0c860a543d Auto incrementing assembly and file version now. Also show version when running in console mode. 2016-05-09 11:47:15 -07:00
MCARDLE Sean M 236565d0fb Removed trailing whitespace and reformatted a really long line. 2016-05-05 13:40:17 -07:00
MCARDLE Sean M 17d708c814 Changed ordering for updating nic info so it updates all nics in place and does not attempt to monitor nics that we can't pull data for. 2016-05-05 13:39:47 -07:00
Sean McArdle e64f01d47e Bug introduced during refactoring, should sleep on each iteration not just when there's work to do. 2016-03-30 14:41:50 -07:00
Sean McArdle 58d1d43a3b Changed the way it identifies wifi and ethernet up, using netsh data rather than NetworkInformation data,
this appears to be more reliable right now. I probably have a code path where I'm not correctly updating
the NetworkInformation data even though at this point it's only used to identify WiFi vs Ethernet nic.
2016-03-30 13:28:18 -07:00
Sean McArdle 231f56b230 Should not need to re-enable all adapters, just ones we don't already know about. 2016-03-30 13:14:43 -07:00
Sean McArdle 259b05f871 Created basic icon. 2016-03-30 12:39:14 -07:00
Sean McArdle bcaca3f6b9 Filled in app specific registry values. 2016-03-30 12:08:17 -07:00
Sean McArdle 1f840a0f9c Updated the manifest. 2016-03-30 11:49:54 -07:00
Sean McArdle 0e7c0962e0 Cleanup usings. 2016-03-29 17:59:02 -07:00
Sean McArdle b4ee5ba74e Fixed copy/paste bug, did not want the filtered behavior. This was copied from elsewhere during refactoring. 2016-03-29 17:57:34 -07:00
Sean McArdle 5cf9b27f96 Fixed bug loading registry values for nic exclusion list. 2016-03-29 17:56:58 -07:00
Sean McArdle da556f71d8 Implementing NIC whitelist as registry configuration, currently fails reading configuration but creates keys/values on install. 2016-03-29 15:29:13 -07:00
Sean McArdle 36201c72cf Implementing abstract methods for reg key create/remove, and added service description. 2016-03-29 14:23:25 -07:00
Sean McArdle 151e022e3f Created abstract methods for creating and cleaning up registry keys related to service. 2016-03-29 14:22:50 -07:00