I was looking at https://github.com/joyent/node/blob/master/lib/net.js#L213