[freenet-dev] Problem with the insert via FCP (Java)

2006-11-02 Thread toad
DataLength is in bytes not bits. Also I'm not sure what you're doing with the encoding; the control messages are UTF-8 in FCP2, but the content can be anything you like as long as you specify it; the length must be correct, *in bytes*. Suggest you turn the string into bytes, then get the length of

[freenet-dev] Problem with the insert via FCP (Java)

2006-11-02 Thread Volodya
I have this function that should insert the data from the string passed to it. http://code.bulix.org/e4gdd9-22174 However, it just hangs there until the node is restarted. So i suspect that the node doesn't send anything back. I've even changed GetCHKOnly to true, hoping that it'll give me some

Re: [freenet-dev] Problem with the insert via FCP (Java)

2006-11-02 Thread toad
DataLength is in bytes not bits. Also I'm not sure what you're doing with the encoding; the control messages are UTF-8 in FCP2, but the content can be anything you like as long as you specify it; the length must be correct, *in bytes*. Suggest you turn the string into bytes, then get the length of

[freenet-dev] Problem with the insert via FCP (Java)

2006-11-02 Thread Volodya
I have this function that should insert the data from the string passed to it. http://code.bulix.org/e4gdd9-22174 However, it just hangs there until the node is restarted. So i suspect that the node doesn't send anything back. I've even changed GetCHKOnly to true, hoping that it'll give me some