官术网_书友最值得收藏!

There's more...

You could create multiple sessions for the same channel. To do so, in step 3, open another terminal console for the VM and start the echo server a second time, but on a different port:

  1. $ java -jar EchoServer.jar -t true -p 2008.
  2. Create a channel specifying this port using step 4.
  3. Send the request to see the channel. See the request sent at step 5.

The response will this time contain two sessions:

--[cut]--  
"session": [
{
"session-id": "2",
"bytes-in": 0,
"termination-point": {
"termination-point-id": "2008"
},
"session-alarms": 0,
"bytes-out": 0
},
{
"session-id": "1",
"bytes-in": 0,
"termination-point": {
"termination-point-id": "2007"
},
"session-alarms": 0,
"bytes-out": 0
}
]
--[cut]--

You can have as many sessions as you wish per channel. This means you can have a number of devices running on the same host and you can connect to each one of them using the same secured channel.

主站蜘蛛池模板: 巴林左旗| 汉沽区| 永泰县| 喜德县| 永州市| 章丘市| 子长县| 舒城县| 贞丰县| 保德县| 咸宁市| 彩票| 黄石市| 贵南县| 青州市| 宜都市| 柳江县| 弥勒县| 内丘县| 满城县| 武强县| 峡江县| 江西省| 金溪县| 宜兴市| 虹口区| 黑山县| 黄骅市| 拜城县| 海晏县| 昔阳县| 云林县| 普安县| 濉溪县| 江都市| 佛坪县| 九龙坡区| 衡东县| 苏尼特右旗| 天镇县| 雅安市|