Documentation ¶
Index ¶
- Constants
- Variables
- func MustInputPipe() io.ReadCloser
- func MustOutputPipe() io.WriteCloser
- func ProcessClient(createClientConn func() (io.ReadWriteCloser, error))
- func ProcessServer(createServerConn func() (io.ReadCloser, error))
- func ResolveFile(fn string) string
- func TestPacketThroughput(t *testing.T, ...)
- type ConnCloserWrapper
- type MultiSlogHandler
- type PairedUDPWriter
- type SCTPStreamConnWrapper
- type Stats
Constants ¶
View Source
const ( ServerPort = 1234 ClientPort = 1235 ServerAddr = "127.0.0.1:1234" ClientAddr = "127.0.0.1:1235" )
Variables ¶
View Source
var ( ServerUDPAddr = &net.UDPAddr{Port: 1234} ClientUDPAddr = &net.UDPAddr{Port: 1235} )
Functions ¶
func MustInputPipe ¶
func MustInputPipe() io.ReadCloser
func MustOutputPipe ¶
func MustOutputPipe() io.WriteCloser
func ProcessClient ¶
func ProcessClient(createClientConn func() (io.ReadWriteCloser, error))
func ProcessServer ¶
func ProcessServer(createServerConn func() (io.ReadCloser, error))
func ResolveFile ¶
func TestPacketThroughput ¶
func TestPacketThroughput(t *testing.T, makeReaderWriterPair func(t *testing.T) (io.ReadCloser, io.WriteCloser, error))
Types ¶
type ConnCloserWrapper ¶
func (ConnCloserWrapper) Close ¶
func (c ConnCloserWrapper) Close() error
type MultiSlogHandler ¶
type PairedUDPWriter ¶
func (PairedUDPWriter) Close ¶
func (w PairedUDPWriter) Close() error
type SCTPStreamConnWrapper ¶
func (SCTPStreamConnWrapper) LocalAddr ¶
func (s SCTPStreamConnWrapper) LocalAddr() net.Addr
func (SCTPStreamConnWrapper) RemoteAddr ¶
func (s SCTPStreamConnWrapper) RemoteAddr() net.Addr
func (SCTPStreamConnWrapper) SetDeadline ¶
func (s SCTPStreamConnWrapper) SetDeadline(time.Time) error
func (SCTPStreamConnWrapper) SetReadDeadline ¶
func (s SCTPStreamConnWrapper) SetReadDeadline(time.Time) error
func (SCTPStreamConnWrapper) SetWriteDeadline ¶
func (s SCTPStreamConnWrapper) SetWriteDeadline(time.Time) error
Click to show internal directories.
Click to hide internal directories.