mirror of
https://github.com/nadoo/glider.git
synced 2026-11-19 07:09:42 +08:00
socks4: fix compile problem
This commit is contained in:
1 parent
f14c4c7797
commit
fa3a7da859
3 files changed
+13
-4
No files matched your search
@@ -11,11 +11,23 @@ import (
|
||||
|
||||
// Dialer is used to create connection.
|
||||
type Dialer interface {
|
||||
TCPDialer
|
||||
UDPDialer
|
||||
}
|
||||
|
||||
// TCPDialer is used to create connection.
|
||||
type TCPDialer interface {
|
||||
// Addr is the dialer's addr
|
||||
Addr() string
|
||||
|
||||
// Dial connects to the given address
|
||||
Dial(network, addr string) (c net.Conn, err error)
|
||||
}
|
||||
|
||||
// UDPDialer is used to create connection.
|
||||
type UDPDialer interface {
|
||||
// Addr is the dialer's addr
|
||||
Addr() string
|
||||
|
||||
// DialUDP connects to the given address
|
||||
DialUDP(network, addr string) (pc net.PacketConn, writeTo net.Addr, err error)
|
||||
|
||||
Reference in new issue
Block a user