Subj : Proxy Service Issues To : Drakmir From : Digital Man Date : Tue Oct 11 2005 05:18 pm Re: Proxy Service Issues By: Drakmir to All on Fri Oct 07 2005 09:56 am > Re: Proxy Service Issues > By: Drakmir to All on Thu Oct 06 2005 08:44 am > > So, after working on it last night and with some hints from Digital Man, I'v > come up with something that seems to work to proxy a socket. There is only o > unknown, and I've noticed that the use of "sendBin" seems to be what is > crashing my computer. (If I use any number of bytes other that 4 it seems t > occasionaly crash). What value (for number of byte) did you use when it crashed? Do you have example code that can reproduce this crash? > The one sticky point is that when using "peek" or "read", sometimes you get > string that is shorter than the number of bytes available to you. The only > thing I can think of is that there is a embedded \0 character in the data > stream which C is then reading as the end of the string. It would help to h > a read/write that dealt with the "string" we provide as a buffer instead. I > assume this is true because doing: > > socket.send("test\0test2"); only outputs "test". Ah, true. That'll be fixed for the next release. :-) digital man Snapple "Real Fact" #8: A bee has 5 eyes. .