Documentation ¶
Index ¶
- Constants
- type RAWConn
- func (raw *RAWConn) Close() (err error)
- func (raw *RAWConn) GetMSS() int
- func (conn *RAWConn) LocalAddr() net.Addr
- func (raw *RAWConn) Read(b []byte) (n int, err error)
- func (raw *RAWConn) ReadFrom(b []byte) (n int, addr net.Addr, err error)
- func (raw *RAWConn) ReadTCPLayer() (tcp *tcpLayer, addr *net.UDPAddr, err error)
- func (conn *RAWConn) RemoteAddr() net.Addr
- func (raw *RAWConn) SetDeadline(t time.Time) error
- func (raw *RAWConn) SetReadDeadline(t time.Time) error
- func (raw *RAWConn) SetWriteDeadline(t time.Time) error
- func (raw *RAWConn) Write(b []byte) (n int, err error)
- func (raw *RAWConn) WriteTo(b []byte, addr net.Addr) (n int, err error)
- type RAWListener
- func (listener *RAWListener) GetMSSByAddr(addr net.Addr) int
- func (listener *RAWListener) LocalAddr() net.Addr
- func (listener *RAWListener) ReadFrom(b []byte) (n int, addr net.Addr, err error)
- func (listener *RAWListener) RemoteAddr() net.Addr
- func (listener *RAWListener) WriteTo(b []byte, addr net.Addr) (n int, err error)
- type Raw
Constants ¶
View Source
const ( FIN = 1 SYN = 2 RST = 4 PSH = 8 ACK = 16 URG = 32 ECE = 1 CWR = 2 NS = 4 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RAWConn ¶
type RAWConn struct {
// contains filtered or unexported fields
}
func (*RAWConn) ReadTCPLayer ¶
func (*RAWConn) RemoteAddr ¶
type RAWListener ¶
type RAWListener struct { RAWConn // contains filtered or unexported fields }
func (*RAWListener) GetMSSByAddr ¶
func (listener *RAWListener) GetMSSByAddr(addr net.Addr) int
func (*RAWListener) LocalAddr ¶
func (listener *RAWListener) LocalAddr() net.Addr
func (*RAWListener) RemoteAddr ¶
func (listener *RAWListener) RemoteAddr() net.Addr
Click to show internal directories.
Click to hide internal directories.