func (t *inprocTran) NewListener(addr string, sock mangos.Socket) (mangos.PipeListener, error) { if _, err := mangos.StripScheme(t, addr); err != nil { return nil, err } l := &listener{addr: addr, proto: sock.GetProtocol()} return l, nil }
func (t *inprocTran) NewListener(addr string, proto mangos.Protocol) (mangos.PipeListener, error) { if _, err := mangos.StripScheme(t, addr); err != nil { return nil, err } l := &listener{addr: addr, proto: proto} return l, nil }
// NewAccepter implements the Transport NewAccepter method. func (t *tlsTran) NewListener(addr string, proto mangos.Protocol) (mangos.PipeListener, error) { var err error l := &listener{proto: proto, opts: newOptions(t)} if addr, err = mangos.StripScheme(t, addr); err != nil { return nil, err } if l.addr, err = net.ResolveTCPAddr("tcp", addr); err != nil { return nil, err } return l, nil }
func (t *tlsTran) NewDialer(addr string, proto mangos.Protocol) (mangos.PipeDialer, error) { var err error if addr, err = mangos.StripScheme(t, addr); err != nil { return nil, err } d := &dialer{proto: proto, opts: newOptions(t)} if d.addr, err = net.ResolveTCPAddr("tcp", addr); err != nil { return nil, err } return d, nil }
// NewDialer implements the Transport NewDialer method. func (t *ipcTran) NewDialer(addr string, sock mangos.Socket) (mangos.PipeDialer, error) { var err error if addr, err = mangos.StripScheme(t, addr); err != nil { return nil, err } d := &dialer{sock: sock, opts: nil} if d.addr, err = net.ResolveUnixAddr("unix", addr); err != nil { return nil, err } return d, nil }
// NewDialer implements the Transport NewDialer method. func (t *ipcTran) NewDialer(addr string, proto mangos.Protocol) (mangos.PipeDialer, error) { var err error if addr, err = mangos.StripScheme(t, addr); err != nil { return nil, err } d := &dialer{proto: proto, opts: nil} if d.addr, err = net.ResolveUnixAddr("unix", addr); err != nil { return nil, err } return d, nil }
func (t *tcpTran) NewDialer(addr string, sock mangos.Socket) (mangos.PipeDialer, error) { var err error d := &dialer{sock: sock, opts: newOptions()} if addr, err = mangos.StripScheme(t, addr); err != nil { return nil, err } if d.addr, err = net.ResolveTCPAddr("tcp", addr); err != nil { return nil, err } return d, nil }
// NewListener implements the Transport NewListener method. func (t *ipcTran) NewListener(addr string, sock mangos.Socket) (mangos.PipeListener, error) { var err error l := &listener{sock: sock} if addr, err = mangos.StripScheme(t, addr); err != nil { return nil, err } if l.addr, err = net.ResolveUnixAddr("unix", addr); err != nil { return nil, err } return l, nil }
// NewListener implements the Transport NewListener method. func (t *ipcTran) NewListener(addr string, proto mangos.Protocol) (mangos.PipeListener, error) { var err error l := &listener{proto: proto} if addr, err = mangos.StripScheme(t, addr); err != nil { return nil, err } if l.addr, err = net.ResolveUnixAddr("unix", addr); err != nil { return nil, err } return l, nil }
func (t *tcpTran) NewListener(addr string, sock mangos.Socket) (mangos.PipeListener, error) { var err error l := &listener{sock: sock, opts: newOptions()} if addr, err = mangos.StripScheme(t, addr); err != nil { return nil, err } if l.addr, err = net.ResolveTCPAddr("tcp", addr); err != nil { return nil, err } return l, nil }
func (t *inprocTran) NewDialer(addr string, sock mangos.Socket) (mangos.PipeDialer, error) { if _, err := mangos.StripScheme(t, addr); err != nil { return nil, err } return &dialer{addr: addr, proto: sock.GetProtocol()}, nil }
func (t *inprocTran) NewDialer(addr string, proto mangos.Protocol) (mangos.PipeDialer, error) { if _, err := mangos.StripScheme(t, addr); err != nil { return nil, err } return &dialer{addr: addr, proto: proto}, nil }