Commit Graph

227 Commits

Author SHA1 Message Date
MaxXor 6c6bc07b6e Added enum for UserStatus 2015-07-14 23:18:48 +02:00
MaxXor 45dccb69e0 Added consistent packet names 2015-07-14 19:00:31 +02:00
MaxXor bc3c6caac4 Changed property 2015-07-12 23:47:54 +02:00
MaxXor 887f3ab34a Added ConnectionHandler to Server 2015-07-12 19:30:34 +02:00
MaxXor de08893260 Set Proxy to null when sending the No-Ip DNS Update request 2015-07-11 09:35:52 +02:00
MaxXor 3e72590d23 Fixed small grammar mistake 2015-07-10 20:12:00 +02:00
MaxXor 03a19ce8aa Improved No-Ip.com Updater
- Removed getting own WANIP before sending the No-Ip update request, it
will either way take the connecting WANIP according to
https://www.noip.com/integrate/response
2015-07-10 19:50:41 +02:00
MaxXor 9092cc513a Corrected documentation 2015-07-10 16:49:11 +02:00
MaxXor ad75e9a760 Moved ConnectedTime to Client
- Added more documentation
2015-07-10 16:45:41 +02:00
MaxXor 9993ff0f89 Added ConnectedTime property to Client's UserState
- Fixed cross threading bug on form closing
2015-07-10 16:36:34 +02:00
MaxXor deaca4af40 Fixed not counting sent bytes 2015-07-10 15:58:26 +02:00
MaxXor bca273dc5e Fixed networking code
ref #275
2015-07-10 12:45:24 +02:00
MaxXor 44d81ed35e Reduced block size of file transfers 2015-07-10 12:41:48 +02:00
MaxXor 9a145b602b Better handling of packets with invalid header 2015-07-09 22:39:33 +02:00
MaxXor 9722744a75 Renamed MAX_PACKET_SIZE to BUFFER_SIZE 2015-07-09 22:28:07 +02:00
DragonHunter 00d9061d03 Merge remote-tracking branch 'upstream/master' 2015-07-09 22:04:23 +02:00
DragonHunter 0e6cafdc75 Reduced header to 3 bytes & Max Payload is 16MB
Reduced the Header from 4 bytes to 3
The server or client should not be able to allocate 2GB memory from the
header, max is now 16MB
2015-07-09 22:01:39 +02:00
MaxXor 82abd35282 Added more documentation to main form.
not complete yet
2015-07-09 21:16:21 +02:00
MaxXor d785fc32a8 Fixed networking code
fixes #272
fixes #273
2015-07-08 11:13:43 +02:00
MaxXor a6ecbf55c1 Improved setting of window titles of new forms 2015-06-25 22:22:45 +02:00
yankejustin 615c9dbcc3 Clone Bitmap on FrmRemoteDesktop
Clone the Bitmap on the "UpdateImage" method. It should be the
responsibility of "UpdateImage" anyways because it is the method
responsible for specifying how to manage the Bitmap provided. This also
serves an issue where the call to clone the Bitmap and cast it to a
Bitmap object was no longer in a try-catch block as it used to be (and
should be once more).
2015-06-19 21:20:38 -04:00
MaxXor cf0de1597f Removed redundant setting of NoDelay option 2015-06-18 16:11:33 +02:00
MaxXor f4835ee68b Removed whitespace 2015-06-14 14:20:50 +02:00
MaxXor b9d11c3b24 Fixed async receive in client & server using a queue 2015-06-11 10:20:11 +02:00
MaxXor ce22e66703 Only get SystemInfo when ShowToolTip option is enabled 2015-06-11 10:19:42 +02:00
MaxXor dde4336e1c Don't handle ObjectDisposedEx. as normal Exceptions 2015-06-10 19:53:03 +02:00
MaxXor 3fc03a7788 More send & receive fixes for client & server 2015-06-10 19:33:02 +02:00
MaxXor ca2f4c550b Added lock object for free buffer stack in PooledBufferManager.cs 2015-06-10 16:31:14 +02:00
MaxXor 8df408cf4b Fixed disconnection 2015-06-10 15:31:51 +02:00
MaxXor 6d75eac831 Fixed situations which could break the server 2015-06-10 15:24:18 +02:00
MaxXor 5fb9905d05 Renamer fixes (#266) 2015-06-09 20:06:04 +02:00
MaxXor 1e0a1d8b2c Fixed #266
#209
2015-06-09 08:35:49 +02:00
MaxXor 8284da5830 Small fix 2015-06-07 16:50:37 +02:00
MaxXor 83ec8c2a87 Added improvements to client 2015-06-07 16:35:30 +02:00
MaxXor 70618e91cb Improved memory management in server
- Fixed handling packets wih payload bigger than the buffersize of the
receiving socket
- Added locks to FileSplit class
2015-06-07 16:28:33 +02:00
MaxXor c5353d2d81 Added missing return 2015-06-06 09:30:18 +02:00
MaxXor 3abc4c5f82 Improved Buffer Manager 2015-06-06 09:28:43 +02:00
MaxXor b0d68c851d Improved handling of invalid clients 2015-06-06 09:28:31 +02:00
MaxXor 3e457d8a06 Improved reusing of buffers after restarting listen 2015-06-05 23:27:59 +02:00
MaxXor 9aef2df7f7 Small fix 2015-06-05 23:12:10 +02:00
MaxXor 3bdd5aa294 Implemented pooled buffer manager to socket 2015-06-05 23:07:37 +02:00
MaxXor fcf25b76a0 Fixed #265 2015-06-05 18:40:15 +02:00
MaxXor 242ff96e7f Removed redundant variable 2015-06-04 20:09:19 +02:00
MaxXor 9085cd6cb6 Merge pull request #259 from yankejustin/ClientInputSafety
Better server validation
2015-06-03 20:05:48 +02:00
MaxXor 58b2c2d2d4 Fixed getting startup items with same name 2015-06-03 15:18:37 +02:00
yankejustin 2d083782fc Moved validation a bit higher
If the packet's "Filename" property is null or empty, we can avoid
making an unnecessary string for the downloadPath by placing the
validation above it.
2015-06-02 18:30:44 -04:00
yankejustin 81c9b238c8 MiscHandler validation
Added more restrictive validation for the "Misc" Handlers.
2015-06-02 18:21:15 -04:00
yankejustin bf5b517eca SurveillanceHandler validation
Added more restrictive validation for the "Surveillance" handlers.
2015-06-02 18:14:45 -04:00
yankejustin a4defce568 SystemHandler validation
Added more restrictive validation for the "System" handlers.
2015-06-02 18:06:16 -04:00
yankejustin 51464e6d28 Fixed possible server crash
If the client cannot give us anything, don't crash over it. :)
We can't use these entries so just leave.
2015-06-02 13:19:35 -04:00