Documentation
¶
Overview ¶
Package network defines types to represent an IPX network.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NodeAddress ¶
NodeAddress returns the IPX address assigned too the given node, or it returns ipx.AddrNull if there is no assigned address.
Types ¶
type Network ¶
type Network interface {
// NewNode creates a new network node. If the network is located on
// the end of a network link, this function may block for some time
// until it completes.
NewNode() (Node, error)
}
Network represents the concept of an IPX network.
type Node ¶
type Node interface {
ipx.ReadWriteCloser
// GetProperty populates the given value based on its type. Since
// network implementations may consist of many layers, this will
// query through the layers to fetch the property. If successful,
// true is returned.
GetProperty(value any) bool
}
Node represents a node attached to an IPX network.
func MustMakeNode ¶
MustMakeNode is a convenience function that calls `NewNode()` but aborts the program if it fails. This should only ever be used at program startup or in test code.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package addressable implements a Network that wraps another Network but assigns a unique IPX address to each node and only allows packets to be written that have that source address.
|
Package addressable implements a Network that wraps another Network but assigns a unique IPX address to each node and only allows packets to be written that have that source address. |
|
Package filter implements a network that wraps another network but drops packets using well-known ports.
|
Package filter implements a network that wraps another network but drops packets using well-known ports. |
|
Package ipxswitch contains an implementation of an IPX network that emulates the behavior of an Ethernet switch (but IPX native).
|
Package ipxswitch contains an implementation of an IPX network that emulates the behavior of an Ethernet switch (but IPX native). |
|
Package pipe implements a nonblocking Reader/Writer pair; data can be written to the writer end of the pipe and read from the reader end of the pipe.
|
Package pipe implements a nonblocking Reader/Writer pair; data can be written to the writer end of the pipe and read from the reader end of the pipe. |
|
Package stats implements a Network that wraps another Network but also counts statistics on the packets that are sent and received.
|
Package stats implements a Network that wraps another Network but also counts statistics on the packets that are sent and received. |
|
Package tappable implements a network that wraps another network but also allows network taps to snoop on network traffic.
|
Package tappable implements a network that wraps another network but also allows network taps to snoop on network traffic. |
Click to show internal directories.
Click to hide internal directories.