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
WSAsyncClient *shttp.WSAsyncClient
Graph *graph.Graph
}
func NewServer ¶
func NewServer(client *shttp.WSAsyncClient, graph *graph.Graph) *PacketInjectorServer
func (*PacketInjectorServer) OnMessage ¶
func (pis *PacketInjectorServer) OnMessage(msg shttp.WSMessage)
Source Files
¶
- client.go
- inject_packet.go
- server.go
Click to show internal directories.
Click to hide internal directories.