mirror of
https://github.com/tinygo-org/net.git
synced 2026-08-17 11:13:25 +00:00
Add more net compatibility
Required for net/http.
This commit is contained in:
committed by
deadprogram
parent
9432cd8adb
commit
a51f3399cb
+11
@@ -0,0 +1,11 @@
|
||||
package net
|
||||
|
||||
// TCPConn is an implementation of the Conn interface for TCP network
|
||||
// connections.
|
||||
type TCPConn struct {
|
||||
conn
|
||||
}
|
||||
|
||||
func (c *TCPConn) CloseWrite() error {
|
||||
return &OpError{"close", "", nil, nil, ErrNotImplemented}
|
||||
}
|
||||
Reference in New Issue
Block a user