ConnectionProtocol fallback question

Options
mindlube
edited July 2012 in DotNet
Supposing I connect approx like this in my client code:
ConnectionProtocol photonProtocol = ConnectionProtocol.Udp; 
PhotonPeer peer = new PhotonPeer( this, photonProtocol );		
string serverHost = "myserver-hostname:5055";
 string serverAppName = "ChickieDominos3";
peer.Connect( serverHost, serverAppName );
Does Photon automatically switch to TCP or HTTP protocols, if it detects the client is behind a nasty firewall (e.g business that only allows http traffic for instance?)
Or do I need to write that fallback code myself?
Thanks

Comments

  • dreamora
    Options
    No it does not.

    it will use what you provide and you will need to detect if the UDP failed and reconnect again with TCP.

    The HTTP protocol to my knowledge is not implemented on UDP - TCP platforms so no http fallback (the only thing running on http is websockets but thats only present and supported in the js client)
  • Tobias
    Options
    dreamora is spot on (thanks again, btw).
    No automatic fallback is done currently.

    As info: We are working on a http solution. It might be used as fallback but most likely it must be handled manually.