avsm changed the topic of #mirage to: mirage 2 released! party on!
copy` has joined #mirage
brson has quit [Quit: leaving]
brson has joined #mirage
brson has quit [Quit: leaving]
seangrove has quit [Ping timeout: 240 seconds]
seangrove has joined #mirage
seangrove has quit [Ping timeout: 244 seconds]
dexterph has joined #mirage
mort___ has joined #mirage
haesbaer1 has quit [Quit: leaving]
haesbaert has joined #mirage
mort___ has quit [Quit: Leaving.]
copy` has quit [Quit: Connection closed for inactivity]
seangrove has joined #mirage
seangrove has quit [Ping timeout: 244 seconds]
dexterph has quit [Ping timeout: 252 seconds]
mort___ has joined #mirage
agarwal1975 has joined #mirage
apache2 has quit [Quit: leaving]
dexterph has joined #mirage
copy` has joined #mirage
seangrove has joined #mirage
yomimono has joined #mirage
mort___ has quit [Quit: Leaving.]
<rixed> Hey there! With only the TCPV4.flow that a TCP server is given, is it possible to retrieve the peer IP address/port ?
<yomimono> TCPV4.get_dest, I believe, will give you both.
<yomimono> (if you're using the current set of development packages that will become 3.0, the function's been renamed)
<yomimono> rixed: more generally, to find out what you can do with TCPV4, see https://github.com/mirage/mirage/blob/master/types/V1.mli#L631
<yomimono> (that's current master, https://github.com/mirage/mirage/blob/v2.9.1/types/V1.mli#L596 for version 2.9.1 which is the latest release)
<rixed> yomimono: yes! thank you.
<rixed> I used to grep in my opam build dir when it comes to mirageos :)
<yomimono> :)
<rixed> s it possible to Stack.listen first, then attach (several) tcpv4 callbacks with listen_tcpv4 on the same stack we have started a listener earlier?
<rixed> (sorry haven't read code nor doc, trying to hack a mirageos version of some service in a hurry :))
<yomimono> yes, it should work -- the set of listeners in stackv4 is mutable
<yomimono> when a packet comes in, stack.listen consults the current hashtable
<yomimono> so changes that you make should be reflected
<yomimono> (but note that it's a hashtable replacement, so you can't set multiple listeners per port)
<rixed> yomimono: yep this I was expecting. Thank you again.
<yomimono> rixed: no problem! :) let us know if what you're lashing up is public. always want to see more running out there.
<rixed> yomimono: will do. it will be public if it works.
brson has joined #mirage
dexterph has quit [Ping timeout: 244 seconds]
yomimono has quit [Ping timeout: 258 seconds]
yomimono has joined #mirage
yomimono has quit [Ping timeout: 276 seconds]
dexterph has joined #mirage
copy` has quit [Quit: Connection closed for inactivity]
yomimono has joined #mirage
yomimono has quit [Ping timeout: 240 seconds]
yomimono has joined #mirage
yomimono has quit [Ping timeout: 276 seconds]
agarwal1975 has quit [Ping timeout: 265 seconds]
seangrove has quit [Ping timeout: 240 seconds]
copy` has joined #mirage
dexterph has quit [Ping timeout: 265 seconds]