Documentation ¶
Index ¶
Constants ¶
View Source
const (
Namespace = "Packet_Injection"
)
Variables ¶
This section is empty.
Functions ¶
func InjectPacket ¶
func InjectPacket(pp *PacketParams, g *graph.Graph) error
Types ¶
type PacketInjectorClient ¶
type PacketInjectorClient struct { shttp.DefaultWSServerEventHandler WSServer *shttp.WSServer // contains filtered or unexported fields }
func NewPacketInjectorClient ¶
func NewPacketInjectorClient(w *shttp.WSServer) *PacketInjectorClient
func (*PacketInjectorClient) InjectPacket ¶
func (pc *PacketInjectorClient) InjectPacket(host string, pp *PacketParams) error
type PacketInjectorServer ¶
type PacketInjectorServer struct { shttp.DefaultWSClientEventHandler WSAsyncClientPool *shttp.WSAsyncClientPool Graph *graph.Graph }
func NewServer ¶
func NewServer(wspool *shttp.WSAsyncClientPool, graph *graph.Graph) *PacketInjectorServer
func (*PacketInjectorServer) OnMessage ¶
func (pis *PacketInjectorServer) OnMessage(c *shttp.WSAsyncClient, msg shttp.WSMessage)
Click to show internal directories.
Click to hide internal directories.