Alban Deniz
02aafe6f93
In readFromChild() for Windows: Call PeekNamedPipe() to check for available data.
Reason: ReadFile() doesn't always return if there's no data and the child exits after ReadFile()
is called.
11 个月前
Alban Deniz
dfa5ec03cc
Return on error from tellg().
1年前
Alban Deniz
21917e05b5
XMLReaderData() now check for error.
1年前
Alban Deniz
c6381d51ae
Changed parameter for SocketAddress:setAddress(char const *).
4 年前
adeniz
fc29d1ce6a
Applied cosmetic changes suggested by Pete.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@116 d34b734f-a00e-4b39-a726-e4eeb87269ab
7 年前
adeniz
05f0fa5594
Ignore SIGPIPE in writer thread (*nix only). Reason:
Writing to a pipe with no reader raises a signal and returns
error. The Child class handles the error returned. Not ignoring
the signal would result in aborting the process.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@115 d34b734f-a00e-4b39-a726-e4eeb87269ab
8 年前
adeniz
6554f21d90
Ignore return value of ::write().
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@114 d34b734f-a00e-4b39-a726-e4eeb87269ab
8 年前
adeniz
4f5cbfdfd3
Output error message to stdout in case of execv failure.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@113 d34b734f-a00e-4b39-a726-e4eeb87269ab
8 年前
adeniz
118d3c41f8
Corrected formatting of error message.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@110 d34b734f-a00e-4b39-a726-e4eeb87269ab
8 年前
adeniz
fe52ca12c5
Formatting change; no functional change.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@109 d34b734f-a00e-4b39-a726-e4eeb87269ab
9 年前
adeniz
cf43979e2d
Replaced buffer allocated on the stack with buffer allocated
on the heap. Reason: Parsing an attribute with a large number
of bytes resulted in a stack overflow.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@108 d34b734f-a00e-4b39-a726-e4eeb87269ab
9 年前
adeniz
c4836264a8
Removed extraneous compiler warnings about unused return values.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@107 d34b734f-a00e-4b39-a726-e4eeb87269ab
9 年前
adeniz
3f093a6d7b
Add call to AttributeFunctor.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@106 d34b734f-a00e-4b39-a726-e4eeb87269ab
9 年前
adeniz
9f230f4e5d
Implemented XMLReaderElement::indicator() and
XMLReaderAttribute::indicator().
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@105 d34b734f-a00e-4b39-a726-e4eeb87269ab
9 年前
adeniz
0499c228cd
Add virtual destructor for MultiTask. Reason: To be able to
delete derived objects using MultiTask *.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@104 d34b734f-a00e-4b39-a726-e4eeb87269ab
9 年前
adeniz
9acdc5bd8b
Use enum class, and put classes in CodeDweller namespace.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@103 d34b734f-a00e-4b39-a726-e4eeb87269ab
9 年前
adeniz
2cc85b9b53
Initial revision of MultiTasker from Pete.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@102 d34b734f-a00e-4b39-a726-e4eeb87269ab
9 年前
adeniz
c112f9db62
Initialized OneTimePad as per instructions from Pete. Reason: Using an
uninitialized variable gave many valgrind errors.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@101 d34b734f-a00e-4b39-a726-e4eeb87269ab
9 年前
adeniz
58e3fb951d
Improved error message.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@100 d34b734f-a00e-4b39-a726-e4eeb87269ab
9 年前
adeniz
f49d917e99
Allow reading after child has exited.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@99 d34b734f-a00e-4b39-a726-e4eeb87269ab
9 年前
adeniz
4af1aca886
Correct Child so that stderr and stdout from the child are
sent to the same output.
Deprecate ChildStream instead of correcting ChildStream.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@98 d34b734f-a00e-4b39-a726-e4eeb87269ab
9 年前
adeniz
5e81074c11
Added Child::closeStdIn().
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@97 d34b734f-a00e-4b39-a726-e4eeb87269ab
9 年前
adeniz
65fe25929c
Corrected documentation.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@96 d34b734f-a00e-4b39-a726-e4eeb87269ab
9 年前
adeniz
3fb37aa4bf
Moved #include outside of namespace declaration.
Use unsigned int in for-loops.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@95 d34b734f-a00e-4b39-a726-e4eeb87269ab
9 年前
adeniz
fa3d055b9f
Add typedef.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@94 d34b734f-a00e-4b39-a726-e4eeb87269ab
9 年前
adeniz
9f0434b8c2
Copied from configuration, renaming Configuration -> XMLReader, and
Configurator -> XMLerator.
Included typedefs so that existing applications can simply include
XMLReader.hpp in place of configuration.hpp.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@93 d34b734f-a00e-4b39-a726-e4eeb87269ab
9 年前
adeniz
e76678a5e1
Added CodeDweller namespace, removed 'using namespace std'.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@92 d34b734f-a00e-4b39-a726-e4eeb87269ab
9 年前
adeniz
b68b4410d5
Tested on Windows 7.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@91 d34b734f-a00e-4b39-a726-e4eeb87269ab
9 年前
adeniz
97d91cbab4
Implemented FileOps::moveFile.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@90 d34b734f-a00e-4b39-a726-e4eeb87269ab
9 年前
adeniz
d1cf0ac19c
Tested FilePath::isAbsolute() under Windows.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@89 d34b734f-a00e-4b39-a726-e4eeb87269ab
9 年前
adeniz
d867e784c7
Implemented FilePath::isAbsolute().
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@88 d34b734f-a00e-4b39-a726-e4eeb87269ab
9 年前
adeniz
2992ac8557
Addressed compiler warning, removed unused variables.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@87 d34b734f-a00e-4b39-a726-e4eeb87269ab
9 年前
adeniz
fc9f4057e6
Implemented readDelimited.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@86 d34b734f-a00e-4b39-a726-e4eeb87269ab
9 年前
adeniz
d23e25b988
Implementing Child::readDelimited().
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@85 d34b734f-a00e-4b39-a726-e4eeb87269ab
9 年前
adeniz
c9f179a972
Implement I/O with vector<char>.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@84 d34b734f-a00e-4b39-a726-e4eeb87269ab
9 年前
adeniz
b00945c73e
Tested on Windows.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@83 d34b734f-a00e-4b39-a726-e4eeb87269ab
9 年前
adeniz
8fa4e41a55
Implemented Child read(), write(), and writeAndShrink() with strings.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@82 d34b734f-a00e-4b39-a726-e4eeb87269ab
9 年前
adeniz
96c9d39914
Implementing Child with I/O threads, and blocking I/O.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@81 d34b734f-a00e-4b39-a726-e4eeb87269ab
9 年前
adeniz
729b6fe305
Added CodeDweller namespace.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@80 d34b734f-a00e-4b39-a726-e4eeb87269ab
9 年前
adeniz
dc9620460c
Tested with one streambuf for input and output, and inheriting from
iostream.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@79 d34b734f-a00e-4b39-a726-e4eeb87269ab
9 年前
adeniz
20af91c0a2
Implemented new constructors and isRunning(). Renamed terminate() to close().
Call close() in ~ChildStream.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@78 d34b734f-a00e-4b39-a726-e4eeb87269ab
9 年前
adeniz
669f79a111
ChildStream inherits from std::iostream.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@77 d34b734f-a00e-4b39-a726-e4eeb87269ab
9 年前
adeniz
3d82bf14a7
Merged input and output streambuf.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@76 d34b734f-a00e-4b39-a726-e4eeb87269ab
9 年前
adeniz
9b4542bdad
Addressed issue: Incorrect value loaded when an attribute value is "".
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@74 d34b734f-a00e-4b39-a726-e4eeb87269ab
9 年前
adeniz
aae5c9ea10
When searching for an opening tag, verify that the character
after the tag is whitespace, '/' or '>'. This allows the
ConfigurationElement to differentiate between <elem> and <elem1>.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@73 d34b734f-a00e-4b39-a726-e4eeb87269ab
9 年前
adeniz
fa697c79c6
Tested on Windows 7 with drService.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@72 d34b734f-a00e-4b39-a726-e4eeb87269ab
9 年前
adeniz
2ef5fa98e1
Increased size of myDataBuffer by one in a different location.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@71 d34b734f-a00e-4b39-a726-e4eeb87269ab
9 年前
adeniz
2632f6dc4b
Increased size of myDataBuffer by one, and added null byte
at the end. Reason: To be able to pass myDataBuffer to the
constructor of std::string that expects a null-terminated
c-string.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@70 d34b734f-a00e-4b39-a726-e4eeb87269ab
9 年前
adeniz
13c40894aa
Do not throw exception on I/O error. Reason: Not throwing an exception is the expection of c++ streams.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@69 d34b734f-a00e-4b39-a726-e4eeb87269ab
10 年前
adeniz
5ea6e7ba26
Backed out test code, and implemented ConfigurationElement::RawData.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@68 d34b734f-a00e-4b39-a726-e4eeb87269ab
10 年前