type Teamserver interface {
TsTunnelCreateSocks4(AgentId int64, Info string, Lhost string, Lport int) (int64, error)
TsTunnelCreateSocks5(AgentId int64, Info string, Lhost string, Lport int, UseAuth bool, Username string, Password string) (int64, error)
TsTunnelCreateLportfwd(AgentId int64, Info string, Lhost string, Lport int, Thost string, Tport int) (int64, error)
TsTunnelCreateRportfwd(AgentId int64, Info string, Lport int, Thost string, Tport int) (int64, error)
TsTunnelStart(TunnelId int64) (int64, error)
TsTunnelStop(TunnelId int64) error
TsTunnelStopSocks(AgentId int64, Port int)
TsTunnelStopLportfwd(AgentId int64, Port int)
TsTunnelStopRportfwd(AgentId int64, Port int)
TsTunnelUpdateRportfwd(tunnelId int64, result bool) (int64, string, error)
TsTunnelChannelExists(channelId int64) bool
TsTunnelGetPipe(AgentId int64, channelId int64) (*io.PipeReader, *io.PipeWriter, error)
TsTunnelConnectionData(channelId int64, data []byte)
TsTunnelConnectionResume(AgentId int64, channelId int64, ioDirect bool)
TsTunnelConnectionClose(channelId int64, writeOnly bool)
TsTunnelConnectionHalt(channelId int64, errorCode byte)
TsTunnelConnectionAccept(tunnelId int64, channelId int64)
TsTunnelConnectionBindReply(channelId int64, phase int, atyp int, addr []byte, port int)
TsTunnelPause(channelId int64)
TsTunnelResume(channelId int64)
}