public interface WebSSHService
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close(org.springframework.web.socket.WebSocketSession session)
关闭连接
|
void |
initConnection(org.springframework.web.socket.WebSocketSession session)
初始化ssh连接
|
void |
recvHandle(String buffer,
org.springframework.web.socket.WebSocketSession session)
处理客户段发的数据
|
void |
sendMessage(org.springframework.web.socket.WebSocketSession session,
byte[] buffer)
数据写回前端 for websocket
|
void initConnection(org.springframework.web.socket.WebSocketSession session)
session - void recvHandle(String buffer, org.springframework.web.socket.WebSocketSession session)
buffer - session - void sendMessage(org.springframework.web.socket.WebSocketSession session,
byte[] buffer)
throws IOException
session - buffer - IOExceptionvoid close(org.springframework.web.socket.WebSocketSession session)
session - Copyright © 2023. All rights reserved.