Documentation ¶
Index ¶
- Variables
- func NewListener(s Server, l net.Listener) (*listener, error)
- type Address
- func (a *Address) Address() string
- func (a *Address) Family() string
- func (a *Address) Port() int
- func (a *Address) V8GetAddress(in isolates.GetterArgs) (*isolates.Value, error)
- func (a *Address) V8GetFamily(in isolates.GetterArgs) (*isolates.Value, error)
- func (a *Address) V8GetPort(in isolates.GetterArgs) (*isolates.Value, error)
- type ConnectOptions
- type DeferredTCPConn
- type HostNetOptions
- func (n *HostNetOptions) Connect(in isolates.FunctionArgs, net Net, network string, address string) (Socket, error)
- func (n *HostNetOptions) Listen(in isolates.FunctionArgs, server Server, network string, address string) (Listener, error)
- func (n *HostNetOptions) V8FuncConnect(in isolates.FunctionArgs) (*isolates.Value, error)
- func (n *HostNetOptions) V8FuncListen(in isolates.FunctionArgs) (*isolates.Value, error)
- type HostSocketOptions
- func (c *HostSocketOptions) Final(in isolates.FunctionArgs, this stream.Writable, callback *isolates.Value) error
- func (c *HostSocketOptions) LocalAddress(ctx context.Context, this *SocketBase) (*Address, error)
- func (c *HostSocketOptions) RemoteAddress(ctx context.Context, this *SocketBase) (*Address, error)
- func (c *HostSocketOptions) V8FuncFinal(in isolates.FunctionArgs) (*isolates.Value, error)
- func (c *HostSocketOptions) V8FuncLocalAddress(in isolates.FunctionArgs) (*isolates.Value, error)
- func (c *HostSocketOptions) V8FuncRemoteAddress(in isolates.FunctionArgs) (*isolates.Value, error)
- type IPFamily
- type ITCPConn
- type Listener
- type Net
- type NetBase
- type Server
- type ServerBase
- func (s *ServerBase) Address(ctx context.Context) (*Address, error)
- func (s *ServerBase) Close(ctx context.Context) error
- func (s *ServerBase) Listen(in isolates.FunctionArgs) (*isolates.Value, error)
- func (s *ServerBase) Listener() *isolates.Value
- func (s *ServerBase) Net() Net
- func (s *ServerBase) V8FuncAddress(in isolates.FunctionArgs) (*isolates.Value, error)
- func (s *ServerBase) V8FuncClose(in isolates.FunctionArgs) (*isolates.Value, error)
- func (s *ServerBase) V8FuncListen(in isolates.FunctionArgs) (*isolates.Value, error)
- func (s *ServerBase) V8Get_listener(in isolates.GetterArgs) (*isolates.Value, error)
- type Socket
- type SocketBase
- func (s *SocketBase) Address(ctx context.Context) (*Address, error)
- func (s *SocketBase) LocalAddress(ctx context.Context) (*string, error)
- func (s *SocketBase) LocalFamily(ctx context.Context) (*string, error)
- func (s *SocketBase) LocalPort(ctx context.Context) (*int, error)
- func (s *SocketBase) RemoteAddress(ctx context.Context) (*string, error)
- func (s *SocketBase) RemoteFamily(ctx context.Context) (*string, error)
- func (s *SocketBase) RemotePort(ctx context.Context) (*int, error)
- func (s *SocketBase) SetNoDelay(ctx context.Context) error
- func (s *SocketBase) SetTimeout(ctx context.Context) error
- func (s *SocketBase) V8FuncAddress(in isolates.FunctionArgs) (*isolates.Value, error)
- func (s *SocketBase) V8FuncSetNoDelay(in isolates.FunctionArgs) (*isolates.Value, error)
- func (s *SocketBase) V8FuncSetTimeout(in isolates.FunctionArgs) (*isolates.Value, error)
- func (s *SocketBase) V8GetLocalAddress(in isolates.GetterArgs) (*isolates.Value, error)
- func (s *SocketBase) V8GetLocalFamily(in isolates.GetterArgs) (*isolates.Value, error)
- func (s *SocketBase) V8GetLocalPort(in isolates.GetterArgs) (*isolates.Value, error)
- func (s *SocketBase) V8GetRemoteAddress(in isolates.GetterArgs) (*isolates.Value, error)
- func (s *SocketBase) V8GetRemoteFamily(in isolates.GetterArgs) (*isolates.Value, error)
- func (s *SocketBase) V8GetRemotePort(in isolates.GetterArgs) (*isolates.Value, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidNet = errors.New("receiver does not implement net.Net")
Functions ¶
Types ¶
type Address ¶
type Address struct {
// contains filtered or unexported fields
}
func NewAddress ¶
func NewAddress(in isolates.FunctionArgs) (*Address, error)
func (*Address) V8GetAddress ¶
func (*Address) V8GetFamily ¶
type ConnectOptions ¶
type DeferredTCPConn ¶
func (*DeferredTCPConn) Close ¶
func (c *DeferredTCPConn) Close() error
func (*DeferredTCPConn) CloseWrite ¶
func (c *DeferredTCPConn) CloseWrite() error
func (*DeferredTCPConn) SetTCPConn ¶
func (c *DeferredTCPConn) SetTCPConn(t *gonet.TCPConn) error
func (*DeferredTCPConn) Wait ¶
func (c *DeferredTCPConn) Wait()
type HostNetOptions ¶
type HostNetOptions struct {
// contains filtered or unexported fields
}
func NewHostNetOptions ¶
func NewHostNetOptions(in isolates.FunctionArgs) (*HostNetOptions, error)
func (*HostNetOptions) Connect ¶
func (n *HostNetOptions) Connect(in isolates.FunctionArgs, net Net, network string, address string) (Socket, error)
func (*HostNetOptions) Listen ¶
func (n *HostNetOptions) Listen(in isolates.FunctionArgs, server Server, network string, address string) (Listener, error)
func (*HostNetOptions) V8FuncConnect ¶
func (n *HostNetOptions) V8FuncConnect(in isolates.FunctionArgs) (*isolates.Value, error)
func (*HostNetOptions) V8FuncListen ¶
func (n *HostNetOptions) V8FuncListen(in isolates.FunctionArgs) (*isolates.Value, error)
type HostSocketOptions ¶
type HostSocketOptions struct { *stream.ReadWriteCloser // contains filtered or unexported fields }
func NewHostSocketOptions ¶
func NewHostSocketOptions(in isolates.FunctionArgs) (*HostSocketOptions, error)
func (*HostSocketOptions) Final ¶
func (c *HostSocketOptions) Final(in isolates.FunctionArgs, this stream.Writable, callback *isolates.Value) error
func (*HostSocketOptions) LocalAddress ¶
func (c *HostSocketOptions) LocalAddress(ctx context.Context, this *SocketBase) (*Address, error)
func (*HostSocketOptions) RemoteAddress ¶
func (c *HostSocketOptions) RemoteAddress(ctx context.Context, this *SocketBase) (*Address, error)
func (*HostSocketOptions) V8FuncFinal ¶
func (c *HostSocketOptions) V8FuncFinal(in isolates.FunctionArgs) (*isolates.Value, error)
func (*HostSocketOptions) V8FuncLocalAddress ¶
func (c *HostSocketOptions) V8FuncLocalAddress(in isolates.FunctionArgs) (*isolates.Value, error)
func (*HostSocketOptions) V8FuncRemoteAddress ¶
func (c *HostSocketOptions) V8FuncRemoteAddress(in isolates.FunctionArgs) (*isolates.Value, error)
type ServerBase ¶
type ServerBase struct { *events.EventEmitterBase // contains filtered or unexported fields }
func (*ServerBase) Listen ¶
func (s *ServerBase) Listen(in isolates.FunctionArgs) (*isolates.Value, error)
func (*ServerBase) Listener ¶
func (s *ServerBase) Listener() *isolates.Value
func (*ServerBase) Net ¶
func (s *ServerBase) Net() Net
func (*ServerBase) V8FuncAddress ¶
func (s *ServerBase) V8FuncAddress(in isolates.FunctionArgs) (*isolates.Value, error)
func (*ServerBase) V8FuncClose ¶
func (s *ServerBase) V8FuncClose(in isolates.FunctionArgs) (*isolates.Value, error)
func (*ServerBase) V8FuncListen ¶
func (s *ServerBase) V8FuncListen(in isolates.FunctionArgs) (*isolates.Value, error)
func (*ServerBase) V8Get_listener ¶
func (s *ServerBase) V8Get_listener(in isolates.GetterArgs) (*isolates.Value, error)
type SocketBase ¶
type SocketBase struct {
*stream.DuplexBase
}
func (*SocketBase) LocalAddress ¶
func (s *SocketBase) LocalAddress(ctx context.Context) (*string, error)
func (*SocketBase) LocalFamily ¶
func (s *SocketBase) LocalFamily(ctx context.Context) (*string, error)
func (*SocketBase) RemoteAddress ¶
func (s *SocketBase) RemoteAddress(ctx context.Context) (*string, error)
func (*SocketBase) RemoteFamily ¶
func (s *SocketBase) RemoteFamily(ctx context.Context) (*string, error)
func (*SocketBase) RemotePort ¶
func (s *SocketBase) RemotePort(ctx context.Context) (*int, error)
func (*SocketBase) SetNoDelay ¶
func (s *SocketBase) SetNoDelay(ctx context.Context) error
func (*SocketBase) SetTimeout ¶
func (s *SocketBase) SetTimeout(ctx context.Context) error
func (*SocketBase) V8FuncAddress ¶
func (s *SocketBase) V8FuncAddress(in isolates.FunctionArgs) (*isolates.Value, error)
func (*SocketBase) V8FuncSetNoDelay ¶
func (s *SocketBase) V8FuncSetNoDelay(in isolates.FunctionArgs) (*isolates.Value, error)
func (*SocketBase) V8FuncSetTimeout ¶
func (s *SocketBase) V8FuncSetTimeout(in isolates.FunctionArgs) (*isolates.Value, error)
func (*SocketBase) V8GetLocalAddress ¶
func (s *SocketBase) V8GetLocalAddress(in isolates.GetterArgs) (*isolates.Value, error)
func (*SocketBase) V8GetLocalFamily ¶
func (s *SocketBase) V8GetLocalFamily(in isolates.GetterArgs) (*isolates.Value, error)
func (*SocketBase) V8GetLocalPort ¶
func (s *SocketBase) V8GetLocalPort(in isolates.GetterArgs) (*isolates.Value, error)
func (*SocketBase) V8GetRemoteAddress ¶
func (s *SocketBase) V8GetRemoteAddress(in isolates.GetterArgs) (*isolates.Value, error)
func (*SocketBase) V8GetRemoteFamily ¶
func (s *SocketBase) V8GetRemoteFamily(in isolates.GetterArgs) (*isolates.Value, error)
func (*SocketBase) V8GetRemotePort ¶
func (s *SocketBase) V8GetRemotePort(in isolates.GetterArgs) (*isolates.Value, error)
Click to show internal directories.
Click to hide internal directories.