示例#1
0
 public Ice.ConnectionInfo getWSInfo(Dictionary <string, string> headers)
 {
     Ice.WSConnectionInfo info = new Ice.WSConnectionInfo();
     fillConnectionInfo(info);
     info.headers = headers;
     return(info);
 }
示例#2
0
            override public Dictionary <string, string> getConnectionInfoAsContext(Ice.Current c)
            {
                Dictionary <string, string> ctx = new Dictionary <string, string>();

                Ice.ConnectionInfo info = c.con.getInfo();
                ctx["adapterName"] = info.adapterName;
                ctx["incoming"]    = info.incoming ? "true" : "false";

                Ice.IPConnectionInfo ipinfo = getIPConnectionInfo(info);
                ctx["localAddress"]  = ipinfo.localAddress;
                ctx["localPort"]     = ipinfo.localPort.ToString();
                ctx["remoteAddress"] = ipinfo.remoteAddress;
                ctx["remotePort"]    = ipinfo.remotePort.ToString();

                if (info is Ice.WSConnectionInfo)
                {
                    Ice.WSConnectionInfo wsinfo = (Ice.WSConnectionInfo)info;
                    foreach (KeyValuePair <string, string> e in wsinfo.headers)
                    {
                        ctx["ws." + e.Key] = e.Value;
                    }
                }

                return(ctx);
            }
示例#3
0
 public Ice.ConnectionInfo getInfo()
 {
     Ice.WSConnectionInfo info = new Ice.WSConnectionInfo();
     info.headers = _parser.getHeaders();
     info.underlying = _delegate.getInfo();
     return info;
 }
示例#4
0
 public Ice.ConnectionInfo getWSInfo(Dictionary<string, string> headers)
 {
     Ice.WSConnectionInfo info = new Ice.WSConnectionInfo();
     fillConnectionInfo(info);
     info.headers = headers;
     return info;
 }
示例#5
0
 public Ice.ConnectionInfo getInfo()
 {
     Ice.IPConnectionInfo di = (Ice.IPConnectionInfo)_delegate.getInfo();
     Ice.WSConnectionInfo info = new Ice.WSConnectionInfo();
     info.localAddress = di.localAddress;
     info.localPort = di.localPort;
     info.remoteAddress = di.remoteAddress;
     info.remotePort = di.remotePort;
     return info;
 }