added Dialer interface in order to support GAE sockets