Banana changed the topic of #ocaml to: OCaml 3.08.1 available! | Archive of Caml Weekly News: http://sardes.inrialpes.fr/~aschmitt/cwn/ | A tutorial: http://merjis.com/richj/computers/ocaml/tutorial/ | A free book: http://cristal.inria.fr/~remy/cours/appsem/ | Mailing List: http://caml.inria.fr/bin/wilma/caml-list/ | Cookbook: http://pleac.sourceforge.net/
<vincenz> if you select, you don't have to set nonblocking
<quantique> good nigt
quantique has quit ["Leaving"]
gl has joined #ocaml
smimou has quit ["?"]
gl has left #ocaml []
<mrvn> vincenz: you don't know how much to read/write when the select returns.
Hanji has quit [Read error: 54 (Connection reset by peer)]
Hanji has joined #ocaml
<Nutssh> You have to make sure to keep track so that you won't block. Only read if select says it won't block.
ne1 has joined #ocaml
ne1 has quit ["To understand recursion, you must first understand recursion."]
mattam has quit [Ping timeout: 14400 seconds]
srv_ has joined #ocaml
srv has quit [Read error: 104 (Connection reset by peer)]
mlh has joined #ocaml
mrvn has quit [Read error: 110 (Connection timed out)]
Submarine has joined #ocaml
<vincenz> Euhm, a single read will always return if there's data. If there's less than read, it will return the number of bytes read.
fab_ has quit [Read error: 113 (No route to host)]
mattam has joined #ocaml
pango has quit ["Client exiting"]
Submarine has quit ["Leaving"]
pango has joined #ocaml
Submarine has joined #ocaml
_fab has joined #ocaml
smimou has joined #ocaml
themus has quit [Read error: 110 (Connection timed out)]
fab_ has joined #ocaml
fab_ has quit [Client Quit]
fab_ has joined #ocaml
_fab has quit [Read error: 110 (Connection timed out)]
fab_ has quit []
_fab has joined #ocaml
fab_ has joined #ocaml
_fab has quit [Read error: 104 (Connection reset by peer)]
_fab has joined #ocaml
fab_ has quit [Read error: 104 (Connection reset by peer)]
fab_ has joined #ocaml
_fab has quit [Read error: 104 (Connection reset by peer)]
malc_ has joined #ocaml
vezenchio has joined #ocaml
det has quit [Remote closed the connection]
det has joined #ocaml
fab_ has quit [Read error: 110 (Connection timed out)]
mlh has quit [Client Quit]
Submarine has quit ["Leaving"]
malc_ has quit [Read error: 60 (Operation timed out)]
Submarine has joined #ocaml
karryall has joined #ocaml
mrvn has joined #ocaml
hangman4 has quit [Read error: 60 (Operation timed out)]
hangman4 has joined #ocaml
Riastradh has quit [Read error: 110 (Connection timed out)]
Roey has joined #ocaml
<Roey> oh
<Roey> heya
<Roey> didn't know this place is here.
mattam has quit ["..."]
cmeme has quit ["Client terminated by server"]
cmeme has joined #ocaml
_fab has joined #ocaml
karryall has quit ["..."]
monochrom has joined #ocaml
Submarine has quit ["Leaving"]
CosmicRay has joined #ocaml
pango has quit ["Leaving"]
pango has joined #ocaml
det has quit ["Lost terminal"]
det has joined #ocaml
smimou has quit ["?"]
Riastradh has joined #ocaml
SmerdyOffice has joined #ocaml
<SmerdyOffice> What's the easiest way to get the four bytes of an Int32 in little-endian representation?
<vincenz> SmerdyOffice: euhm
<vincenz> (read-byte) + (read-byte)<<8 + ...
<vincenz> let a = (read-byte ic) in
<vincenz> let b = (raed-byte ic) in
<vincenz> let c = (read-byte ic) in
<vincenz> let d = (read-byte ic) in
<vincenz> (a + b<<8) + (c + d<<8) << 1
<vincenz> (a + b<<8) + (c + d<<8) << 16
<SmerdyOffice> I'm not sure what that was supposed to mean, but I have it working now. Thanks. :-)
<mrvn> SmerdyOffice: man ntohl
<mrvn> SmerdyOffice: write a c stub
<SmerdyOffice> Too late, too late!
<vincenz> np
CosmicRay has quit ["Client exiting"]
SmerdyOffice has quit ["Leaving"]
Roey is now known as WorkRoey
WorkRoey has left #ocaml []
gim has joined #ocaml