adeniz
2b2910bf38
Implemented and tested non-blocking read on Windows.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@56 d34b734f-a00e-4b39-a726-e4eeb87269ab
10 роки тому
adeniz
8892101288
Tested non-blocking read on Linux.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@55 d34b734f-a00e-4b39-a726-e4eeb87269ab
10 роки тому
adeniz
93ae8221dc
Testing non-blocking read.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@54 d34b734f-a00e-4b39-a726-e4eeb87269ab
10 роки тому
adeniz
f1001bc789
Implementing non-blocking read.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@53 d34b734f-a00e-4b39-a726-e4eeb87269ab
10 роки тому
adeniz
bf633446e3
Placed objects in CodeDweller namespace.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@52 d34b734f-a00e-4b39-a726-e4eeb87269ab
10 роки тому
adeniz
c31de176c5
Use _WIN32 instead of WIN32. Reason: MinGW-W64 defines _WIN32 but not WIN32.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@51 d34b734f-a00e-4b39-a726-e4eeb87269ab
10 роки тому
adeniz
8fcee57460
Cosmetic change to error message.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@50 d34b734f-a00e-4b39-a726-e4eeb87269ab
10 роки тому
adeniz
806a2b8278
Make MyName() const.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@49 d34b734f-a00e-4b39-a726-e4eeb87269ab
10 роки тому
adeniz
1b283f9772
Correct return type for read() and write().
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@48 d34b734f-a00e-4b39-a726-e4eeb87269ab
10 роки тому
adeniz
fbde34d541
Add CodeDweller namespace, and ran dos2unix on threading.hpp.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@47 d34b734f-a00e-4b39-a726-e4eeb87269ab
10 роки тому
adeniz
4a4cd675d6
Tested Stop callback on Windows.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@46 d34b734f-a00e-4b39-a726-e4eeb87269ab
10 роки тому
adeniz
f9629ec3bc
Implement watchdog for only Stop on both Windows and Linux.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@45 d34b734f-a00e-4b39-a726-e4eeb87269ab
10 роки тому
adeniz
b5b6605547
Removed blocking of HUP; CodeDweller::Service doesn't use that signal.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@44 d34b734f-a00e-4b39-a726-e4eeb87269ab
10 роки тому
adeniz
0609dcbc33
Removed initialization of callbacksActive, which isn't present in Windows version.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@43 d34b734f-a00e-4b39-a726-e4eeb87269ab
10 роки тому
adeniz
1da69779a0
Implemented callback timeout for Windows and Linux, tested under Linux.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@42 d34b734f-a00e-4b39-a726-e4eeb87269ab
10 роки тому
adeniz
4cd5ce48db
Change _tmain to main.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@41 d34b734f-a00e-4b39-a726-e4eeb87269ab
10 роки тому
adeniz
5cb7f3b39a
Made set/clear methods static, made entry point methods private.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@40 d34b734f-a00e-4b39-a726-e4eeb87269ab
10 роки тому
adeniz
6549201405
Implemented and tested on Windows (built with Visual Studio 2013 Express).
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@39 d34b734f-a00e-4b39-a726-e4eeb87269ab
10 роки тому
adeniz
6d97722193
Removed unneeded Message enumeration.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@38 d34b734f-a00e-4b39-a726-e4eeb87269ab
10 роки тому
adeniz
97756452ea
Made service thread-safe by serializing access.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@37 d34b734f-a00e-4b39-a726-e4eeb87269ab
10 роки тому
adeniz
655afd029e
Completed preliminary unit test for Linux.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@36 d34b734f-a00e-4b39-a726-e4eeb87269ab
10 роки тому
adeniz
587f0e1df9
Implementing and testing CodeDweller::Service for *nix.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@35 d34b734f-a00e-4b39-a726-e4eeb87269ab
10 роки тому
adeniz
dfa9e76316
Cosmetic changes to comments.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@34 d34b734f-a00e-4b39-a726-e4eeb87269ab
10 роки тому
adeniz
ade5789945
Completed unit tests under Ubuntu for CodeDweller::Child.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@33 d34b734f-a00e-4b39-a726-e4eeb87269ab
10 роки тому
adeniz
6fc2c7c921
Completed unit tests on Windows.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@32 d34b734f-a00e-4b39-a726-e4eeb87269ab
10 роки тому
adeniz
f5c9822cd4
Implemented streams for Windows. Tested isDone() and terminate(). Started testing streams.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@31 d34b734f-a00e-4b39-a726-e4eeb87269ab
10 роки тому
adeniz
ce9852081a
Implemented CodeDweller::Child for Windows except for streams.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@30 d34b734f-a00e-4b39-a726-e4eeb87269ab
10 роки тому
adeniz
1fac3ab4bc
Implemented child.hpp.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@29 d34b734f-a00e-4b39-a726-e4eeb87269ab
10 роки тому
adeniz
570f2501c6
Branched CodeDweller for Mail's Best Friend.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@28 d34b734f-a00e-4b39-a726-e4eeb87269ab
10 роки тому
adeniz
bc1247ab13
Remove non-source files from source directories.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/trunk@26 d34b734f-a00e-4b39-a726-e4eeb87269ab
11 роки тому
madscientist
73efe78c94
Modified windows detection flags to include _WIN32 and _WIN64
git-svn-id: https://svn.microneil.com/svn/CodeDweller/trunk@25 d34b734f-a00e-4b39-a726-e4eeb87269ab
11 роки тому
adeniz
6402f0a4f7
Moved from SNSyncd.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/trunk@24 d34b734f-a00e-4b39-a726-e4eeb87269ab
11 роки тому
madscientist
27a67ba88f
Added destructor code to avoid throwing exceptions while cleaning up any sockets. Destructors should not throw exceptions and socket handles should always be closed even if no connections were made.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/trunk@23 d34b734f-a00e-4b39-a726-e4eeb87269ab
12 роки тому
adeniz
e14d377f92
File is generated by the build process.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/trunk@22 d34b734f-a00e-4b39-a726-e4eeb87269ab
13 роки тому
adeniz
cc85867976
Added so that software from the repository can be built without
running autoreconf.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/trunk@21 d34b734f-a00e-4b39-a726-e4eeb87269ab
13 роки тому
madscientist
ecede0dcf9
Updated TCPClient.transmit() to improve error handling and detection. This should prevent cases where an exception was thrown for a non-error (Success) condition. The bug was found in a log on an SNFMilter system where we were researching incomplete SYNC sessions. It is hoped this condition explains those incomplete SYNC sessions and that this new code will fix it.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/trunk@20 d34b734f-a00e-4b39-a726-e4eeb87269ab
14 роки тому
madscientist
0d4e43d778
Fixed deprecated conversion warning and added some comments.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/trunk@19 d34b734f-a00e-4b39-a726-e4eeb87269ab
15 роки тому
adeniz
424734b5f8
Modified to build with 64-bit minGW.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/trunk@18 d34b734f-a00e-4b39-a726-e4eeb87269ab
15 роки тому
madscientist
dc9be6db84
Added code to implement SO_NOSIGPIPE socket option when MSG_NOSIGLAL is not available.
Updated some exception descriptions networking.* to improve clarity and fix some copy-typos.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/trunk@17 d34b734f-a00e-4b39-a726-e4eeb87269ab
15 роки тому
madscientist
a19714cb18
Fixed NO_SIGNALS should have been MSG_NOSIGNAL
git-svn-id: https://svn.microneil.com/svn/CodeDweller/trunk@16 d34b734f-a00e-4b39-a726-e4eeb87269ab
15 роки тому
madscientist
052a10b812
Fixed SIGPIPE bug - transmit and receive functions in networking were using NOFLAGS instead of NO_SIGNALS. As a result broken pipes would raise SIGPIPE on *nix systems -- the coded did not expect that. NO_SIGNALS is not defined for win* systems so an ifdef was added to create NO_SIGNALS like NOFLAGS where it is not defined on win* systems. Win* has no concept of signals so this is a non-event for win* systems.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/trunk@15 d34b734f-a00e-4b39-a726-e4eeb87269ab
15 роки тому
madscientist
f36bff0262
Improved MANGLER::MANGLER so that Position is set in the initialization list.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/trunk@14 d34b734f-a00e-4b39-a726-e4eeb87269ab
15 роки тому
madscientist
dad799f603
Fixed initialization of NominalPollTime and MaximumPollTime so that they are both valid by the time the c'tor calls set...() on them.
Fixed comment in setNominalPollTime so it shows the correct intent (that MaximumPollTime >= NominalPollTime).
git-svn-id: https://svn.microneil.com/svn/CodeDweller/trunk@13 d34b734f-a00e-4b39-a726-e4eeb87269ab
15 роки тому
madscientist
b58fa06a49
Fixed: base64encode should be const static
git-svn-id: https://svn.microneil.com/svn/CodeDweller/trunk@12 d34b734f-a00e-4b39-a726-e4eeb87269ab
15 роки тому
adeniz
1b8e43a071
Include Makefile.am and ChangeLog in the user tarball.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/trunk@11 d34b734f-a00e-4b39-a726-e4eeb87269ab
15 роки тому
madscientist
a9b1bc7083
Corrected ProductionQueue.size() - Now unsigned int, not int.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/trunk@10 d34b734f-a00e-4b39-a726-e4eeb87269ab
15 роки тому
adeniz
6987ce0dd0
Updated Makefile.am: Added mangler.cpp and mangler.hpp, removed
tcp_watchdog.cpp and tcp_watchdog.hpp, added faults.hpp. Added
ChangeLog for logging changes.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/trunk@9 d34b734f-a00e-4b39-a726-e4eeb87269ab
15 роки тому
madscientist
8085743567
Minor tweaks to remove warnings
git-svn-id: https://svn.microneil.com/svn/CodeDweller/trunk@8 d34b734f-a00e-4b39-a726-e4eeb87269ab
15 роки тому
madscientist
ce0ca5ea86
Created faults.hpp for program fault handling (replace assert())
Replaced all assert() in threading.* with appropriate checks.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/trunk@7 d34b734f-a00e-4b39-a726-e4eeb87269ab
15 роки тому
madscientist
12f830b8a7
Minor tweaks to eliminate compiler warnings.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/trunk@6 d34b734f-a00e-4b39-a726-e4eeb87269ab
15 роки тому