[00:00:02] <duckinator> recv(sock, buf, 1, SocketMsgFlags PEEK) // ooc. last example was C :P [00:00:22] <fredreichbier> uhuh? [00:00:37] <duckinator> it checks MSG_PEEK lets you see if there's data without actually reading it [00:00:46] <fredreichbier> ah okay [00:00:48] <fredreichbier> welll [00:00:49] <duckinator> so if that call is successful, there's data waiting [00:01:05] <fredreichbier> are we sure that connected? is set to false in receive? [00:01:32] <duckinator> i'm not sure [00:01:39] <duckinator> BUT we're doing it wrong anyways :) [00:03:06] <fredreichbier> true. :D [00:03:34] <duckinator> heh [00:03:39] <duckinator> well you know what? [00:04:02] <duckinator> 0 == no data [00:04:26] <duckinator> so we can add a hasData? variable [00:04:30] <duckinator> and then hasNext? can be: [00:04:35] <duckinator> connected? && hasData? [00:04:58] <fredreichbier> oki! [00:05:01] <duckinator> well [00:05:04] <duckinator> idk how "proper" that is [00:05:06] <duckinator> but it beats what we have [00:05:10] <fredreichbier> hasData? will fail anyway if it's not connected? but anyway [00:05:17] <duckinator> true [00:05:18] <fredreichbier> let's hope that's the reason :D [00:05:28] <fredreichbier> if the receive calls are blocking though, what's then? =D [00:05:56] <duckinator> i have no idea o/ [00:06:00] <duckinator> actually [00:06:03] <duckinator> i don't believe that can be it [00:06:14] <duckinator> i think it only calls receive hasNext? is true [00:06:16] <duckinator> also [00:06:24] <duckinator> if(bytesRecv == 0) { [00:06:24] <duckinator> connected? = false // no more data [00:06:24] <duckinator> } [00:06:28] <duckinator> hasData? = (bytesRecv == 0) [00:06:40] <fredreichbier> ok [00:06:43] <duckinator> don't you love when fixing things makes the code shorter? [00:06:59] <duckinator> er woops [00:07:02] <duckinator> != 0* [00:08:39] <fredreichbier> that's the best way of fixing things :D [00:09:56] <duckinator> also [00:10:05] <duckinator> my new 2x2GB RAM just arrived :) [00:10:12] <duckinator> $25, whereas my previous was $110 [00:11:01] <fredreichbier> :D [00:11:03] <fredreichbier> not bad! [00:11:39] <duckinator> and it arrived a day early, despite ups.com saying it was still a state away :D [00:11:49] <duckinator> in fact, ups.com still says it's in north carolina... [00:13:19] <duckinator> fredreichbier: i think if we get these bugs sorted out it might be ready for a merge soon :o [00:14:58] <fredreichbier> hrhr [00:15:01] <fredreichbier> that sounds good! [00:39:01] <duckinator> AGH [00:39:13] <fredreichbier> no? [00:39:21] <duckinator> fredreichbier: connected? is not used for ServerSockets, so i failed with that [00:39:26] <duckinator> now that i'm not using that, i have this issue [00:39:53] <fredreichbier> oh [00:39:55] <duckinator> E/T/0Htheuit.tXe-:212.2XoaeF:212.2Cntncs [00:39:55] <duckinator> oei:leAe:/ [00:40:15] <duckinator> that's supposed to be something like "HTTP/1.0 ...." and "GET /" ^^ [00:40:46] <duckinator> oh and it also still won't actually respond xD [00:40:49] <duckinator> anyways, dinner's ready, bbl [00:42:08] <fredreichbier> IT'S ROT13! [00:42:13] <fredreichbier> have fun [00:43:28] <duckinator> ok maybe not [00:43:31] <duckinator> seems there's 5 mins left :P [00:43:36] <fredreichbier> hehe [00:44:38] <duckinator> that's not even close to rot13 .-. [00:45:14] <duckinator> O.o wtf?! [00:45:19] <duckinator> "HTTP/1.1 [00:45:20] <duckinator> GET /" [00:45:24] <duckinator> "T/1G" [00:46:17] <duckinator> it's like there's backspaces [00:46:41] <duckinator> also, it seems i didn't flush the output before closing the socket. woops. [00:47:03] <duckinator> or that's not it [00:47:06] <duckinator> chrome just fails at caching [00:47:52] <duckinator> $ curl http://localhost:8000 [00:47:52] <duckinator> <html><body>Hello, from the ooc socket world!</body></html> [00:47:52] <duckinator> curl: (56) Recv failure: Connection reset by peer [00:47:56] <duckinator> seems it's not closing the socket nicely [00:47:58] <fredreichbier> i ghave no idea :D [00:47:58] <fredreichbier> ah [00:48:09] <duckinator> what's your idea? :D [00:48:09] <fredreichbier> welllll sorry, but i'll go to sleep now :D [00:48:14] <fredreichbier> aw :( [00:48:21] <fredreichbier> there's a bug, probably! [00:48:26] <duckinator> lol [00:48:35] <duckinator> oh, you have NO idea. misread. :P [00:48:39] <duckinator> bai [00:48:42] <fredreichbier> hehe :D [00:48:46] <fredreichbier> good luck with that! [00:48:56] <fredreichbier> back for more bughunt tomorrow ;) [00:48:57] <fredreichbier> see ya [00:49:00] *** fredreichbier has quit IRC [01:26:29] *** bdmst has joined #ooc-lang [03:09:44] *** shahri has quit IRC [03:26:50] *** mickael9` has quit IRC [03:54:10] *** Jetbeard has quit IRC [05:29:43] *** Oddity007 has quit IRC [06:08:59] *** curtism has joined #ooc-lang [07:04:32] *** bdmst has quit IRC [08:06:14] *** beppu has quit IRC [09:30:55] *** joshthecoder has quit IRC [13:51:40] *** MayDaniel has joined #ooc-lang [13:57:13] *** mickael9 has joined #ooc-lang [14:29:36] *** mickael9` has joined #ooc-lang [14:29:36] *** mickael9 has quit IRC [14:31:18] *** MayDaniel has quit IRC [15:31:05] *** fredreichbier has joined #ooc-lang [15:31:05] *** ChanServ sets mode: +v fredreichbier [15:55:03] *** fredreichbier has quit IRC [16:27:26] *** Oddity007 has joined #ooc-lang [16:48:22] *** fredreichbier has joined #ooc-lang [16:48:22] *** ChanServ sets mode: +v fredreichbier [17:12:05] *** bdmst has joined #ooc-lang [17:40:08] *** fredreichbier has quit IRC [18:34:17] *** joshthecoder has joined #ooc-lang [18:34:17] *** ChanServ sets mode: +v joshthecoder [19:03:59] *** shahri has joined #ooc-lang [19:22:12] *** jroesslein has joined #ooc-lang [19:25:46] *** shahri_ has joined #ooc-lang [19:28:35] *** markeeto has joined #ooc-lang [19:30:24] *** programble has joined #ooc-lang [19:32:17] *** joshthecoder has quit IRC [19:32:19] *** shahri has quit IRC [19:32:20] *** curtism has quit IRC [19:32:21] *** keeto has quit IRC [19:32:22] *** markeeto is now known as keeto [19:44:15] *** fredreichbier has joined #ooc-lang [19:44:15] *** ChanServ sets mode: +v fredreichbier [19:51:46] *** jroesslein is now known as joshthecoder [19:51:47] *** ChanServ sets mode: +v joshthecoder [20:50:19] *** programble has quit IRC [20:53:55] *** programble has joined #ooc-lang [21:33:22] *** fredreichbier has quit IRC [21:35:08] *** fredreichbier has joined #ooc-lang [21:35:08] *** ChanServ sets mode: +v fredreichbier [21:49:59] *** mickael9` has quit IRC [22:19:48] *** Jetbeard has joined #ooc-lang [22:30:28] *** mickael9 has joined #ooc-lang [22:56:42] *** programble has quit IRC [23:13:34] *** shahri_ has quit IRC [23:34:00] <CIA-126> rock: Friedrich Weber master * re662259 / (sdk/io/BinarySequence.ooc sdk/io/Writer.ooc): Added `Writer write` for buffers, updated BinarySequence. - http://bit.ly/pOpdkB [23:34:13] <duckinator> orly [23:34:51] <fredreichbier> orly [23:34:57] <fredreichbier> https://github.com/fredreichbier/ooc-mongodb [23:34:59] <fredreichbier> new code in da hood [23:40:48] <Oddity007> heh [23:41:02] <Oddity007> Now we just need one for messagepack