?

Log in

No account? Create an account
February 27th, 2001 - LiveJournal Development [entries|archive|friends|userinfo]
LiveJournal Development

[ userinfo | livejournal userinfo ]
[ archive | journal archive ]

February 27th, 2001

Bugs bugs bugs [Feb. 27th, 2001|08:43 am]
LiveJournal Development

lj_dev

[muerte]
I think I've tracked down the problem with my LJSync client. It's the opposite as I thought before. It looks to me like the server is returning to few entries, so my client gets confused and then tries to download the whole thing all over again. On my test of the "test" account it was expecting 818 but only got 812 so it started over, and thus got more then 818 and crashed.

So I've isolated the problem I'll try and work on a solution tonight. Thanks for all the testing.
link14 comments|post comment

UNIX socket question [Feb. 27th, 2001|11:16 am]
LiveJournal Development

lj_dev

[vorpal]
[mood |frustratedfrustrated]

I'm pretty new to UNIX socket programming, so bear with me.

This has been bothering me for a long time, and I can't seem to find an easy answer. Say I'm writing a LJ client in C, and I want to log in to LJ. So I make the connection, write the data to the write socket, and then close it. Then I receive data from the read socket, of course. But say I'm working with something like moodids and there's going to be a lot of data returned on the read socket (and not necessarily all in one burst), how do I know when to stop reading from the socket? I can't very well use recv and check if the size is less than 0, because LJ may not have transmitted everything in one send. Is there some way to check whether or not LJ has closed the write end of the socket (i.e. the read part of my socket)? Using poll or something?

Any help would be very much appreciated!
link2 comments|post comment

LiveJournal.pm v1.2 [Feb. 27th, 2001|05:01 pm]
LiveJournal Development

lj_dev

[archon]
[mood |accomplished]
[music |Sugar - What You Want It To Be]

Announcing version 1.2 of LiveJournal.pm. It is an object oriented Perl implementation of the LiveJournal protocol.

See ChangeLog for changes.

NOTES:
This release has pretty much everything I see a need for so far. The things still in TODO are design issues. That is not to say that nothing new will be added in the future.

Discussion of this module and other Perl/LiveJournal issues should take place on lj_perl.

You can download the module here
linkpost comment

navigation
[ viewing | February 27th, 2001 ]
[ go | Previous Day|Next Day ]