00:41:22 ccl-logbot [n=ccl-logb@master.clozure.com] has joined #ccl 00:41:22 00:41:22 -!- names: ccl-logbot H4ns jajcloz rme segv gbyers chandler scode billstclair mdc mdc__ gz jsnell @ChanServ 01:01:28 -!- H4ns [n=hans@72-255-89-129.client.stsn.net] has quit ["Leaving."] 01:32:22 sellout [n=greg@c-24-128-50-176.hsd1.ma.comcast.net] has joined #ccl 02:00:35 -!- sellout [n=greg@c-24-128-50-176.hsd1.ma.comcast.net] has quit [] 02:09:04 sellout [n=greg@c-24-128-50-176.hsd1.ma.comcast.net] has joined #ccl 02:20:32 -!- gbyers [n=gbyers@198.51.249.52] has quit [Read error: 113 (No route to host)] 03:52:45 jajcloz_ [n=jaj@209-6-216-149.c3-0.smr-ubr3.sbo-smr.ma.cable.rcn.com] has joined #ccl 03:52:45 -!- jajcloz [n=jaj@209-6-216-149.c3-0.smr-ubr3.sbo-smr.ma.cable.rcn.com] has quit [Read error: 104 (Connection reset by peer)] 06:57:43 -!- rme [n=rme@pool-68-238-4-243.chi.dsl-w.verizon.net] has quit [] 07:02:31 -!- jsnell [n=jsnell@vasara.proghammer.com] has quit [Read error: 110 (Connection timed out)] 07:05:23 jsnell [n=jsnell@vasara.proghammer.com] has joined #ccl 08:28:06 mikesch [n=axel@tmo-102-1.customers.d1-online.com] has joined #ccl 08:34:11 -!- mikesch [n=axel@tmo-102-1.customers.d1-online.com] has quit [] 09:15:23 -!- sellout [n=greg@c-24-128-50-176.hsd1.ma.comcast.net] has quit [Read error: 110 (Connection timed out)] 09:48:06 gbyers [n=gbyers@brujo.abq.clozure.com] has joined #ccl 09:52:07 H4ns [n=hans@72-255-31-140.client.stsn.net] has joined #ccl 10:34:40 jajcloz [n=jaj@209-6-216-149.c3-0.smr-ubr3.sbo-smr.ma.cable.rcn.com] has joined #ccl 10:34:52 -!- jajcloz [n=jaj@209-6-216-149.c3-0.smr-ubr3.sbo-smr.ma.cable.rcn.com] has quit [Read error: 104 (Connection reset by peer)] 10:35:13 -!- jajcloz_ [n=jaj@209-6-216-149.c3-0.smr-ubr3.sbo-smr.ma.cable.rcn.com] has quit [Read error: 54 (Connection reset by peer)] 10:35:15 jajcloz [n=jaj@209-6-216-149.c3-0.smr-ubr3.sbo-smr.ma.cable.rcn.com] has joined #ccl 10:38:15 jajcloz_ [n=jaj@209-6-216-149.c3-0.smr-ubr3.sbo-smr.ma.cable.rcn.com] has joined #ccl 10:38:15 -!- jajcloz [n=jaj@209-6-216-149.c3-0.smr-ubr3.sbo-smr.ma.cable.rcn.com] has quit [Read error: 104 (Connection reset by peer)] 10:39:42 -!- jajcloz_ [n=jaj@209-6-216-149.c3-0.smr-ubr3.sbo-smr.ma.cable.rcn.com] has quit [Read error: 104 (Connection reset by peer)] 10:40:13 jajcloz [n=jaj@209-6-216-149.c3-0.smr-ubr3.sbo-smr.ma.cable.rcn.com] has joined #ccl 10:46:38 mikesch [n=axel@tmo-114-28.customers.d1-online.com] has joined #ccl 10:56:02 mikesch_ [n=axel@tmo-123-1.customers.d1-online.com] has joined #ccl 10:58:09 H4ns1 [n=hans@72-255-3-91.client.stsn.net] has joined #ccl 11:12:13 -!- mikesch [n=axel@tmo-114-28.customers.d1-online.com] has quit [Read error: 110 (Connection timed out)] 11:14:09 -!- H4ns [n=hans@72-255-31-140.client.stsn.net] has quit [Read error: 110 (Connection timed out)] 11:18:07 -!- mikesch_ [n=axel@tmo-123-1.customers.d1-online.com] has quit [Read error: 110 (Connection timed out)] 11:24:30 sellout [n=greg@c-24-128-50-176.hsd1.ma.comcast.net] has joined #ccl 11:43:37 -!- H4ns1 is now known as H4ns 12:09:53 -!- gbyers [n=gbyers@brujo.abq.clozure.com] has quit [Read error: 113 (No route to host)] 12:21:46 -!- sellout [n=greg@c-24-128-50-176.hsd1.ma.comcast.net] has quit [] 12:34:38 -!- H4ns [n=hans@72-255-3-91.client.stsn.net] has quit ["Leaving."] 12:51:26 mikesch [n=axel@tmo-100-13.customers.d1-online.com] has joined #ccl 13:01:35 H4ns [n=hans@ita4fw1.itasoftware.com] has joined #ccl 13:05:51 sellout [n=greg@63.107.91.105] has joined #ccl 13:06:55 gbyers [n=gbyers@brujo.abq.clozure.com] has joined #ccl 13:13:03 mikesch_ [n=axel@static-87-79-66-80.netcologne.de] has joined #ccl 13:25:48 alms [n=alms@209-150-48-250.c3-0.bkl-ubr1.sbo-bkl.ma.cable.rcn.com] has joined #ccl 13:31:57 -!- mikesch [n=axel@tmo-100-13.customers.d1-online.com] has quit [Read error: 110 (Connection timed out)] 13:32:15 -!- billstclair [n=billstcl@unaffiliated/billstclair] has quit [Read error: 60 (Operation timed out)] 13:34:28 anRch [n=markmill@m1f5a36d0.tmodns.net] has joined #ccl 13:36:59 billstclair [n=billstcl@unaffiliated/billstclair] has joined #ccl 14:12:00 anRch_ [n=markmill@m1f5a36d0.tmodns.net] has joined #ccl 14:12:45 -!- anRch [n=markmill@m1f5a36d0.tmodns.net] has quit [Read error: 104 (Connection reset by peer)] 14:28:49 -!- mikesch_ [n=axel@static-87-79-66-80.netcologne.de] has quit [Read error: 113 (No route to host)] 15:07:36 mikesch [n=axel@tmo-111-1.customers.d1-online.com] has joined #ccl 15:09:36 -!- anRch_ [n=markmill@m1f5a36d0.tmodns.net] has quit [Read error: 110 (Connection timed out)] 15:12:33 -!- mikesch [n=axel@tmo-111-1.customers.d1-online.com] has quit [Client Quit] 15:19:32 mikesch [n=axel@xdsl-87-78-4-246.netcologne.de] has joined #ccl 15:33:52 -!- segv [n=mb@p4FC1F4CD.dip.t-dialin.net] has quit [Read error: 110 (Connection timed out)] 15:33:59 segv_ [n=mb@p4FC1E992.dip.t-dialin.net] has joined #ccl 16:29:32 anRch [n=markmill@nmd.sbx07279.burlima.wayport.net] has joined #ccl 16:46:32 -!- mikesch [n=axel@xdsl-87-78-4-246.netcologne.de] has quit [] 17:02:59 -!- alms [n=alms@209-150-48-250.c3-0.bkl-ubr1.sbo-bkl.ma.cable.rcn.com] has quit [] 17:11:29 alms [n=alms@209-150-48-250.c3-0.bkl-ubr1.sbo-bkl.ma.cable.rcn.com] has joined #ccl 17:13:38 alms_ [n=alms@209-150-48-250.c3-0.bkl-ubr1.sbo-bkl.ma.cable.rcn.com] has joined #ccl 17:13:38 -!- alms [n=alms@209-150-48-250.c3-0.bkl-ubr1.sbo-bkl.ma.cable.rcn.com] has quit [Read error: 54 (Connection reset by peer)] 17:22:46 alms [n=alms@209-150-48-250.c3-0.bkl-ubr1.sbo-bkl.ma.cable.rcn.com] has joined #ccl 17:22:51 -!- alms_ [n=alms@209-150-48-250.c3-0.bkl-ubr1.sbo-bkl.ma.cable.rcn.com] has quit [Read error: 104 (Connection reset by peer)] 17:26:21 -!- alms [n=alms@209-150-48-250.c3-0.bkl-ubr1.sbo-bkl.ma.cable.rcn.com] has quit [Remote closed the connection] 17:26:53 alms [n=alms@209-150-48-250.c3-0.bkl-ubr1.sbo-bkl.ma.cable.rcn.com] has joined #ccl 17:31:02 alms_ [n=alms@209-150-48-250.c3-0.bkl-ubr1.sbo-bkl.ma.cable.rcn.com] has joined #ccl 17:31:02 -!- alms [n=alms@209-150-48-250.c3-0.bkl-ubr1.sbo-bkl.ma.cable.rcn.com] has quit [Read error: 104 (Connection reset by peer)] 17:32:59 alms [n=alms@209-150-48-250.c3-0.bkl-ubr1.sbo-bkl.ma.cable.rcn.com] has joined #ccl 17:33:16 -!- alms [n=alms@209-150-48-250.c3-0.bkl-ubr1.sbo-bkl.ma.cable.rcn.com] has quit [Remote closed the connection] 17:33:21 -!- alms_ [n=alms@209-150-48-250.c3-0.bkl-ubr1.sbo-bkl.ma.cable.rcn.com] has quit [Read error: 104 (Connection reset by peer)] 17:33:48 alms [n=alms@209-150-48-250.c3-0.bkl-ubr1.sbo-bkl.ma.cable.rcn.com] has joined #ccl 17:52:48 alms_ [n=alms@209-150-48-250.c3-0.bkl-ubr1.sbo-bkl.ma.cable.rcn.com] has joined #ccl 17:52:48 -!- alms [n=alms@209-150-48-250.c3-0.bkl-ubr1.sbo-bkl.ma.cable.rcn.com] has quit [Read error: 104 (Connection reset by peer)] 17:59:37 alms [n=alms@209-150-48-250.c3-0.bkl-ubr1.sbo-bkl.ma.cable.rcn.com] has joined #ccl 18:07:45 alms__ [n=alms@209-150-48-250.c3-0.bkl-ubr1.sbo-bkl.ma.cable.rcn.com] has joined #ccl 18:15:57 -!- alms_ [n=alms@209-150-48-250.c3-0.bkl-ubr1.sbo-bkl.ma.cable.rcn.com] has quit [Read error: 110 (Connection timed out)] 18:26:35 -!- anRch [n=markmill@nmd.sbx07279.burlima.wayport.net] has quit [] 18:31:15 -!- alms [n=alms@209-150-48-250.c3-0.bkl-ubr1.sbo-bkl.ma.cable.rcn.com] has quit [Read error: 110 (Connection timed out)] 18:35:51 rme [n=rme@pool-68-238-4-243.chi.dsl-w.verizon.net] has joined #ccl 18:59:44 -!- ChanServ [ChanServ@services.] has quit [kornbluth.freenode.net irc.freenode.net] 18:59:44 -!- gz [n=gz@209-6-158-10.c3-0.smr-ubr3.sbo-smr.ma.cable.rcn.com] has quit [kornbluth.freenode.net irc.freenode.net] 18:59:47 -!- H4ns [n=hans@ita4fw1.itasoftware.com] has quit [kornbluth.freenode.net irc.freenode.net] 19:02:34 ChanServ [ChanServ@services.] has joined #ccl 19:02:34 H4ns [n=hans@ita4fw1.itasoftware.com] has joined #ccl 19:02:34 gz [n=gz@209-6-158-10.c3-0.smr-ubr3.sbo-smr.ma.cable.rcn.com] has joined #ccl 19:02:34 -!- irc.freenode.net has set mode +o ChanServ 20:45:56 Xach [n=xach@unnamed.xach.com] has joined #ccl 20:46:43 Hello ccl friends. I am looking for a way to detect if there is pending input on a socket, and to read available input into a vector (even if the input wouldn't fill the vector). Can you suggest a way to do that? 20:48:05 did you look at the usocket source? it does just that, although maybe not in the nicest way possible 20:48:16 Oh, I didn't. I'll check there. 20:49:23 ask again if that does not clear up things. i think i have some faint rememberings or code that could help 20:50:43 hmm, it looks like ccl::fd-input-available-p might help for the former, but i'm not sure what might work for the latter. 20:51:04 it doesn't seem that usocket supports reading less than a vector's worth of data directly (i might not be looking in the right place, though) 20:51:57 you can query the socket about the amount of data that is available, or you can read non-blocking. 20:52:04 hold on, i'll see if i can find something. 20:52:15 A non-blocking read would be ideal, but I didn't see that in the manual. 20:52:25 uhm 20:52:36 let me look that up quickly 20:54:09 ha! quickly. takes a little longer than that 20:55:44 -!- jajcloz [n=jaj@209-6-216-149.c3-0.smr-ubr3.sbo-smr.ma.cable.rcn.com] has quit [] 20:56:48 (fd-set-flags sockfd (logior flags #$O_NONBLOCK)) would set an fd to non-blocking 20:57:23 but hold on 20:57:26 hmm, ok. i'll try that. 20:57:28 *Xach* holds 20:58:25 there is (ccl::unread-data-available fd) which will return the number of bytes that you can read. you don't need nonblocking for that. 20:59:05 level-1/l1-streams is the file that defines that - all sorts of goodness in there. 20:59:15 thanks! 20:59:22 i think that will do the trick 21:03:11 UNREAD-DATA-AVAILABLE-P just returns a boolean, but if you look at what it does you can see how to determine the amount of unread data. As I recall, it's that way because the ioctl doesn't work on non-sockets on FreeBSD. 21:03:26 gbyers: it's a boolean like digit-char-p is a boolean. 21:03:51 on linux, i just tried it and it returned a useful integer when there was data available 21:03:57 Ah, so it is; never mind. 21:04:11 the unexportedness foils me slightly 21:04:38 *Xach* will fiddle, thanks for the help! 21:06:33 uh, i looked at the non-freebsd case and concluded something general. 21:26:10 -!- sellout [n=greg@63.107.91.105] has quit [] 22:10:47 -!- H4ns [n=hans@ita4fw1.itasoftware.com] has quit ["Leaving."] 22:16:05 sellout [n=greg@c-24-128-50-176.hsd1.ma.comcast.net] has joined #ccl 22:39:19 H4ns [n=hans@72-255-90-109.client.stsn.net] has joined #ccl 22:48:41 -!- alms__ [n=alms@209-150-48-250.c3-0.bkl-ubr1.sbo-bkl.ma.cable.rcn.com] has quit [] 22:50:18 -!- sellout [n=greg@c-24-128-50-176.hsd1.ma.comcast.net] has quit [] 23:00:21 sellout [n=greg@pool-68-160-6-164.bos.east.verizon.net] has joined #ccl 23:00:47 -!- sellout [n=greg@pool-68-160-6-164.bos.east.verizon.net] has quit [Read error: 104 (Connection reset by peer)] 23:01:19 sellout [n=greg@pool-68-160-6-164.bos.east.verizon.net] has joined #ccl 23:36:36 -!- gbyers [n=gbyers@brujo.abq.clozure.com] has quit [Read error: 113 (No route to host)] 23:51:11 -!- Xach [n=xach@unnamed.xach.com] has left #ccl