[freenet-dev] Coding standards

2012-04-02 Thread Matthew Toseland
gnature.asc Type: application/pgp-signature Size: 198 bytes Desc: This is a digitally signed message part. URL: <https://emu.freenetproject.org/pipermail/devl/attachments/20120402/41c00a3e/attachment.pgp>

[freenet-dev] Logging subsystem rewrite

2012-04-02 Thread Matthew Toseland
case is a system call. So AFAICS we need to keep most of the current FileLoggerHook. :| > > > > Haven't reviewed the code yet. -- next part -- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: This is a digitally signed message part. URL: <https://emu.freenetproject.org/pipermail/devl/attachments/20120402/78e0f6ed/attachment.pgp>

[freenet-dev] Logging subsystem rewrite

2012-04-02 Thread Matthew Toseland
g on the thread creating the log line. -- next part -- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: This is a digitally signed message part. URL: <https://emu.freenetproject.org/pipermail/devl/attachments/20120402/3f4d972a/attachment.pgp>

[freenet-dev] Logging in Fred

2012-04-02 Thread Matthew Toseland
ives. The burden then falls > on the programmer to find the appropriate function at each call site. -- next part -- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: This is a digitally signed message part. URL: <https://emu.freenetproject.org/pipermail/devl/attachments/20120402/cb0aaa06/attachment.pgp>

[freenet-dev] GSOC 2012 Transport Plugin (Task on JCA)

2012-04-02 Thread Matthew Toseland
ast one node via the new protocol, and to others via the old protocol? > > Thank you, > Chetan -- next part -- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: This is a digitally signed m

[freenet-dev] Logging in Fred

2012-04-02 Thread Zlatin Balevsky
On Mon, Apr 2, 2012 at 6:04 PM, Matthew Toseland wrote: > On Saturday 31 Mar 2012 04:03:10 Zlatin Balevsky wrote: >> >> >> >> In 'log.info("Random message: %s", obj.toString())' evaluating >> >> 'obj.toString()' was what caused issues, not recycling it, or so I >> >> believe to remember. >> > >>

Re: [freenet-dev] GSOC 2012 Transport Plugin (Task on JCA)

2012-04-02 Thread Chetan Hosmani
Okay I ll read about what JCA uses. JCA actually supports several variations and algorithms. Yes I have a node running that connects to similar new nodes using negtype = 8 (which is JCA) and it also connects to old nodes using the previous negotiation types. On the surface it runs exactly the way

[freenet-dev] Coding standards

2012-04-02 Thread Evan Daniel
PM, "Matthew Toseland" https://emu.freenetproject.org/cgi-bin/mailman/listinfo/devl -- next part -- An HTML attachment was scrubbed... URL: <https://emu.freenetproject.org/pipermail/devl/attachments/20120402/25ff02a6/attachment.html>

Re: [freenet-dev] Logging in Fred

2012-04-02 Thread Zlatin Balevsky
On Mon, Apr 2, 2012 at 6:04 PM, Matthew Toseland wrote: > On Saturday 31 Mar 2012 04:03:10 Zlatin Balevsky wrote: >> >> >> >> In 'log.info("Random message: %s", obj.toString())' evaluating >> >> 'obj.toString()' was what caused issues, not recycling it, or so I >> >> believe to remember. >> > >>

Re: [freenet-dev] Coding standards

2012-04-02 Thread Evan Daniel
I'm in favor, and I suspect I'm the author of that line :) I also don't actually care that much, so feel free to change it to 4. On Apr 2, 2012 6:07 PM, "Matthew Toseland" wrote: On Friday 30 Mar 2012 19:34:02 Juiceman wrote: > On Mar 30, 2012 1:12 PM, "Matthew Toseland" https://emu.freenetproj

Re: [freenet-dev] Coding standards

2012-04-02 Thread Matthew Toseland
On Friday 30 Mar 2012 19:34:02 Juiceman wrote: > On Mar 30, 2012 1:12 PM, "Matthew Toseland" > wrote: > > > > On Sunday 25 Mar 2012 19:33:45 Juiceman wrote: > > > On Mon, Mar 19, 2012 at 6:13 PM, Marco Schulze > > > wrote: > > > > May I add a vote to standardise indentation? This mess of spaces w

Re: [freenet-dev] Logging subsystem rewrite

2012-04-02 Thread Matthew Toseland
On Friday 30 Mar 2012 22:28:09 Marco Schulze wrote: > On 30-03-2012 13:28, Matthew Toseland wrote: > > On Sunday 25 Mar 2012 23:22:24 Marco Schulze wrote: > >> Working (but incomplete) code is available @ > >> https://github.com/Heiral/fred-staging/tree/logger++ > > I'm keeping out of this for now,

Re: [freenet-dev] Logging subsystem rewrite

2012-04-02 Thread Matthew Toseland
On Saturday 31 Mar 2012 03:53:09 Zlatin Balevsky wrote: > > > > But we use a static logging API anyway, and this works adequately well. I > > have debugged stuff largely through logs in multi-node simulators, I > > generally rely on the thread name to identify the node (e.g. the UDP > > receive

Re: [freenet-dev] Logging in Fred

2012-04-02 Thread Matthew Toseland
On Saturday 31 Mar 2012 04:03:10 Zlatin Balevsky wrote: > >> > >> In 'log.info("Random message: %s", obj.toString())' evaluating > >> 'obj.toString()' was what caused issues, not recycling it, or so I believe > >> to remember. > > > > You don't need to call obj.toString() before calling log() - j

Re: [freenet-dev] GSOC 2012 Transport Plugin (Task on JCA)

2012-04-02 Thread Matthew Toseland
On Sunday 01 Apr 2012 19:48:43 Chetan Hosmani wrote: > Hello, > > As an expected task for GSOC (discussed on IRC) I worked on the JCA > implementation for encryption. > Here is what I have done- > > 1. Created JCACipher implements Block Cipher. > 2. Added negtype = 8 > 3. For negtype = 8 use new

[freenet-dev] GSOC 2012 Transport Plugin (Task on JCA)

2012-04-02 Thread Chetan Hosmani
part -- A non-text attachment was scrubbed... Name: jca.patch Type: application/octet-stream Size: 7702 bytes Desc: not available URL: <https://emu.freenetproject.org/pipermail/devl/attachments/20120402/276288f6/attachment.obj>