transport
import "github.com/TheManticoreProject/Manticore/network/cifs/transport"
Index
type Transport
type Transport interface {
Connect(ipaddr net.IP, port int) error
Close() error
Send(data []byte) (int, error)
Receive() ([]byte, error)
IsConnected() bool
}
func NewTransport
func NewTransport(transportType string) Transport