NNTPC: still trying to build a socksified version (re-post)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi *,

I'm getting deeper into it. I've now a version built with libsocks5
and connecting to a socks4 server. I'm still running into problems:

Below is the output of connecting to the cache and issuing a LIST
commando (not echoed):

--- snip ---
200 sysux02.system.ptv.de NNTPcache server V1.0.1 Jan 31 1997 ready
(posting ok)
[dot] <- should be only a '.'
3dfx.oem.products.diamond.monster3d 286 1 y
3dfx.oem.products.orchid.righteous3d 409 1 y
3dfx.game.titles 2406 1 y
3dfx.d3d.drivers 338 1 y
3dfx.events 23 1 y
3dfx.products 233 2 y
3dfx.glide 179 1 y
3dfx.test 19 1 y
3dfx.products.obsidian 4 1 y
3dfx.game.titles.glquake 1629 1 y
3dfx.readme 1 1 y
215
[dot] <- same here, should be only a '.'
--- snap ---

Apparently, though in list.c in function doList() output is created in
correct order it is somehow swapped. The string 215 (defined by
NNTP_LIST_FOLLOWS) appears _below_ the list created during the while
loop! emitrn() and emit() both write to file descriptor 'clientout'...

	emitrn (NNTP_LIST_FOLLOWS);
	while (fgets (buf, sizeof (buf), fp))
	{
		[...]
		emit (buf);
		[...]
	}

I'm confused. Could somebody please explain this to me?

best regards
ralph


[Index of Archives]     [Yosemite]     [Yosemite Campsites]     [Bugtraq]     [Linux]     [Trn]

Powered by Linux