<dark_light>
when i use Unix.bind my_socket (Unix.ADDR_INET (Unix.inet_addr_loopback, my_port)) , i can receive connections from internet or only from localhost?
<dark_light>
should i use (Unix.ADDR_INET (Unix.inet_addr_of_string "my_ip", my_port) ? so how the program knows my ip?
coder_ has joined #ocaml
coder_ has quit ["Leaving"]
ramkrsna has quit [Read error: 110 (Connection timed out)]
ramkrsna has joined #ocaml
<dylan>
0.0.0.0 would be everything, I believe
<Smerdyakov>
dark_light, isn't there an ADDR_ANY (or whatever that C macro is called) equivalent in OCaml?
<dark_light>
hey, exists
<dylan>
it'd be Unix.inet_addr_any
<dark_light>
i think addr_any would be exactly the address of 0.0.0.0 .. in ipv6 it's ::1
<dark_light>
i think it will work, thanks:)
<dark_light>
it works o.o
shekmalhen has quit ["Bêêêêêêêêêh"]
ramkrsna has quit [Connection timed out]
ramkrsna has joined #ocaml
coder_ has joined #ocaml
ketty has quit [Read error: 110 (Connection timed out)]
ketty has joined #ocaml
Revision17 has quit [Read error: 104 (Connection reset by peer)]
shawn has quit ["This computer has gone to sleep"]
Revision17 has joined #ocaml
Revision17 has quit [Read error: 104 (Connection reset by peer)]
Revision17 has joined #ocaml
coder_ has quit ["Leaving"]
Frederick has joined #ocaml
<Frederick>
Smerdyakov, heya I will bug you here
<Frederick>
how long does it take to be proeficient in ocaml? Like how long until i can code something usefull? I think I will get ocaml or haskell to learn on vacations
<Frederick>
wich start in 2 days
<Smerdyakov>
I don't know. It obviously depends on many factors in your experience and skill.
shawn has joined #ocaml
<dylan>
Frederick: What linguages are you familiar with?