mirror of
https://github.com/tinygo-org/net.git
synced 2026-08-15 17:03:39 +00:00
Add more net compatibility
Required for net/http.
This commit is contained in:
committed by
deadprogram
parent
9432cd8adb
commit
a51f3399cb
@@ -0,0 +1,24 @@
|
||||
package net
|
||||
|
||||
import (
|
||||
"context"
|
||||
"time"
|
||||
)
|
||||
|
||||
type Dialer struct {
|
||||
Timeout time.Duration
|
||||
Deadline time.Time
|
||||
KeepAlive time.Duration
|
||||
}
|
||||
|
||||
func Dial(network, address string) (Conn, error) {
|
||||
return nil, ErrNotImplemented
|
||||
}
|
||||
|
||||
func Listen(network, address string) (Listener, error) {
|
||||
return nil, ErrNotImplemented
|
||||
}
|
||||
|
||||
func (d *Dialer) DialContext(ctx context.Context, network, address string) (Conn, error) {
|
||||
return nil, ErrNotImplemented
|
||||
}
|
||||
Reference in New Issue
Block a user