Eric Frias
751777e754
Fix more locations where we were making boost::asio calls with buffers declared on the stack which could cause problems when the calling tasks were canceled.
2014-09-11 16:30:03 -04:00
Eric Frias
aa6882b3b7
Allow us to safely cancel tasks that are executing asynchronous network reads
...
and writes. This was previously unsafe because we almost always passed read/write
buffers to boost that were on the stack. Canceling the task deleted the stack and
therefore the buffer, but couldn't reliably prevent boost from writing to the buffer
if data came in after the cancel. This commit adds variants of the read and write
functions that take a shared_ptr<char> instead of a raw char* as the buffer, and
these variants will ensure the shared_ptr will outlive the boost::asio read/write.
2014-09-09 11:10:37 -04:00
Eric Frias
c925ceb232
Add a comparison operators for signed_int, correct the ones for unsigned_int
2014-06-26 15:51:35 -04:00
Eric Frias
accb6fddcb
Add raw serialization for microseconds
2014-06-19 15:51:41 -04:00
Daniel Larimer
4385bbe49a
serialization and copy support for exceptions
2014-06-12 02:23:52 -04:00
Eric Frias
d2e2311d72
Removed old versions of base-16/58/64 conversion headers from fc/io, they have moved to fc/crypto
2014-05-20 17:07:34 -04:00
Daniel Larimer
6b9abdf272
adding raw::pack_size() helper
2014-05-20 13:42:21 -04:00
Daniel Larimer
17aefe29de
using explicit bool operator for optional
2014-05-20 11:25:31 -04:00
Daniel Larimer
87c314facb
raw serialization of std::map
2014-05-19 15:22:19 -04:00
Daniel Larimer
06bc873da0
improving error reporting in deserialization
2014-05-17 19:35:44 +00:00
Eric Frias
b3e30e893b
32/64 bit int stuff
2014-05-15 14:14:58 -04:00
Daniel Larimer
9378f6c7aa
Merge branch 'phoenix' of https://github.com/InvictusInnovations/fc into phoenix
2014-05-07 21:27:48 -04:00
Daniel Larimer
3a34299199
update json validation and varint hashing
2014-05-07 21:27:37 -04:00
Eric Frias
b8a7531eab
Fix error message printed when unable to deserialize a json object, improve
...
logging of return values and add logging of exceptional returns from
json function calls. Continue my endless quest to break the mac build.
2014-05-06 17:20:04 -04:00
Daniel Larimer
e36ccb3cfd
adding NotAuthorized HTTP response code
2014-04-22 10:22:17 -04:00
Eric Frias
cd34f696ce
- Add four-argument version of json-rpc call function
...
- fix bug in json parser that prevented correct parsing of
a true/false/null at the end of input
- prevent infinite recursion in a json helper function
2014-04-21 14:34:46 -04:00
Eric Frias
1b16e15585
Quiet compiler warning signed vs unsigned
2014-04-14 17:10:29 -04:00
Eric Frias
d27be6851b
Fix serializing enums
2014-04-02 08:54:12 -04:00
Daniel Larimer
d3c2f60fe0
adding extra operators
2014-03-13 20:04:47 -04:00
Daniel Larimer
0843aa6652
adding raw serialization for unordered_map
2014-02-16 01:17:31 -05:00
Daniel Larimer
2743b56b56
added utility to hide console echo for entering passwords
2014-02-15 14:06:35 -05:00
vogel76
21558dbd70
[BW]: [Ign] Fixed compile errors on MSVC.
2014-01-31 14:07:14 +01:00
Daniel Larimer
fa85f98844
Merge branch 'phoenix' of github.com:InvictusInnovations/fc into phoenix
2014-01-29 17:07:31 -05:00
Daniel Larimer
36b29d74c2
adding comparison operators
2014-01-29 17:07:25 -05:00
vogel76
10a6e76375
[BW]: [Ign] Fixed compile errors (missing < operator on fc::enum_type
...
[BW]: [Ign] Eliminated some annoying compiler warnings.
2014-01-29 12:52:13 +01:00
Daniel Larimer
f618f3a10f
updated ip serialization forwards
2014-01-04 01:21:11 +00:00
Daniel Larimer
81c0290568
raw pack of fc::path
2013-09-21 22:48:50 -04:00
Daniel Larimer
8fc6f79dc9
adding operators to enum_type
2013-08-27 20:21:20 -04:00
Daniel Larimer
61f84777c4
fc::enum_type -> string
2013-07-30 15:04:17 -04:00
Daniel Larimer
e2e1d43dd4
fix enum_type to variant
2013-07-29 00:25:16 -04:00
Daniel Larimer
382f741c73
added enhanced serialization of enums
2013-07-25 10:49:13 -04:00
Daniel Larimer
2b8b606d08
fix bugs with time_point_sec
2013-07-23 13:00:40 -04:00
Daniel Larimer
1201d1c1f6
adding time_point_sec
2013-07-22 14:03:34 -04:00
Daniel Larimer
a792cfaca7
update save to file to take fc::path
2013-07-18 19:09:18 -04:00
Daniel Larimer
a0f41aa397
various updates and enhancements to crypto and network code
2013-07-17 02:01:35 -04:00
Daniel Larimer
57e5796839
clean up exception handling on asio / sockets
2013-07-14 17:58:27 -04:00
Daniel Larimer
b8e08c97b2
adding support for std::set to variant/raw io
2013-07-05 20:29:36 -04:00
Daniel Larimer
0fd0574c05
various updates to support bitshares
2013-06-06 19:20:51 -04:00
Daniel Larimer
639a0c795a
Updates to crypto/fc
2013-06-06 14:45:55 -04:00
Daniel Larimer
59a121d64b
Updating FC with changes from phoenix-int
2013-06-05 15:19:00 -04:00