Posts with Tag: 2014

IEEE ICC in Sydney, Austrlia

I attended and presented at IEEE ICC 2014 in Sydney, Australia. I presented a paper entitled, “[A Ut ...

IEEE AINA 2014, Victoria, Canada

I just spoke in Victoria, BC at the 28th IEEE conference on Advanced Information Networking and Appl ...

IEEEE CCECE 2014 and Cognitive Agent Simulation

This past week I attended IEEE Canadian Conference on Electrical and Computer Engineering (CCECE2014 ...

Good News! And Startups!

A few weeks back I posted about a couple of hackathons I participated in. The first was the OpenData ...

Hackathons!

I’ve recently participated in a couple of hackathons to keep brushed up on my coding skills. In both ...

Most Recent Post

Multicast Ipv4 and Ipv6 in Java / Kotlin

I recently ran into a peculiarity of multicast in Java / Kotlin. I was using a MulticastSocket: [https://docs.oracle.com/javase/8/docs/api/java/net/MulticastSocket.html](https://docs.oracle.com/javase/8/docs/api/java/net/MulticastSocket.html) and trying to ensure that it winds up bound to either an Inet4Address or Inet6Address. It turns out that even if I did something like: ``` val multicastSocket = MulticastSocket(InetSocketAddress("0.0.0.0", MULTICAST_DEFAULT_PORT)) assert(multicastSocket.localAddress is Inet4Address) ``` The assertion could fail. Similarly if I did: ``` val multicastSock ...