Documentation ¶
Index ¶
- func Pivot(pivotID uint32) *net.Conn
- func PivotReadEnvelope(conn *net.Conn) (*sliverpb.Envelope, error)
- func PivotWriteEnvelope(conn *net.Conn, envelope *sliverpb.Envelope) error
- func ReconnectActivePivots(connection *transports.Connection)
- func SendPivotClose(pivotID uint32, err error, connection *transports.Connection)
- func SendPivotOpen(pivotID uint32, registerMsg []byte, connection *transports.Connection)
- func StartTCPListener(address string) error
- type PivotsMap
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PivotReadEnvelope ¶
PivotReadEnvelope - Reads a protobuf envolope from a generic connection
func PivotWriteEnvelope ¶
PivotWriteEnvelope - Writes a protobuf envolope to a generic connection
func ReconnectActivePivots ¶
func ReconnectActivePivots(connection *transports.Connection)
ReconnectActivePivots - Send a new PivotOpen message back to the server for each alive pivot
func SendPivotClose ¶
func SendPivotClose(pivotID uint32, err error, connection *transports.Connection)
SendPivotClose - Sends a PivotClose message back to the server
func SendPivotOpen ¶
func SendPivotOpen(pivotID uint32, registerMsg []byte, connection *transports.Connection)
SendPivotOpen - Sends a PivotOpen message back to the server
func StartTCPListener ¶
StartTCPListener - Start a TCP listener
Types ¶
type PivotsMap ¶
type PivotsMap struct { Pivots *map[uint32]*pivotsMapEntry // contains filtered or unexported fields }
PivotsMap - struct that defines de pivots, provides atomic access
func (*PivotsMap) RemovePivot ¶
RemovePivot - Add a pivot to the map (atomically)
Click to show internal directories.
Click to hide internal directories.