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:
- $ java -jar EchoServer.jar -t true -p 2008.
- Create a channel specifying this port using step 4.
- 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.
推薦閱讀
- Hands-On Machine Learning with scikit:learn and Scientific Python Toolkits
- INSTANT MinGW Starter
- Java程序員面試算法寶典
- Podman實(shí)戰(zhàn)
- 編譯系統(tǒng)透視:圖解編譯原理
- 你不知道的JavaScript(中卷)
- HTML5秘籍(第2版)
- Visual Studio 2015高級編程(第6版)
- Learning Node.js for .NET Developers
- Clojure for Java Developers
- Magento 2 Beginners Guide
- Delphi開發(fā)典型模塊大全(修訂版)
- 一步一步學(xué)Spring Boot:微服務(wù)項(xiàng)目實(shí)戰(zhàn)(第2版)
- Extending Docker
- 亮劍Java Web項(xiàng)目開發(fā)案例導(dǎo)航