net

package
v1.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 5, 2026 License: MIT Imports: 22 Imported by: 0

Documentation

Overview

Package net includes networking support.

Index

Constants

View Source
const NameServiceErrorSymbol = slip.Symbol("name-service-error")

NameServiceErrorSymbol is the symbol with a value of "NameServiceError".

Variables

View Source
var (
	// Pkg is the net package.
	Pkg = slip.Package{
		Name:      "net",
		Nicknames: []string{"networking", "network"},
		Doc: `Home of symbols defined for the net (networking) package. This includes
socket classes and functions modeled after the SBCL networking package. Some additional
functions are included and key arguments to some functions such as socket-send differ but
most functions are the same.
`,
		PreSet: slip.DefaultPreSet,
	}
)

Functions

func MakeRequest

func MakeRequest(req *http.Request) (inst *flavors.Instance)

MakeRequest makes a new request.

func MakeResponse

func MakeResponse(resp *http.Response) (inst *flavors.Instance)

MakeResponse makes a new response.

func MakeResponseWriter

func MakeResponseWriter(rw http.ResponseWriter) (inst *flavors.Instance)

MakeResponseWriter makes a new response-writer.

func Select added in v0.9.5

func Select(r, w, e *FdSet, timeout time.Duration) error

Types

type AddressToString added in v0.9.5

type AddressToString struct {
	slip.Function
}

AddressToString represents the address-to-string function.

func (*AddressToString) Call added in v0.9.5

func (f *AddressToString) Call(s *slip.Scope, args slip.List, depth int) slip.Object

Call the function with the arguments provided.

type FdSet added in v0.9.5

type FdSet syscall.FdSet

func (*FdSet) Highest added in v0.9.5

func (fs *FdSet) Highest() (high int)

func (*FdSet) IsSet added in v0.9.5

func (fs *FdSet) IsSet(fd int) bool

func (*FdSet) Set added in v0.9.5

func (fs *FdSet) Set(fd int)

type GetHostByAddress added in v0.9.5

type GetHostByAddress struct {
	slip.Function
}

GetHostByAddress represents the get-host-by-address function.

func (*GetHostByAddress) Call added in v0.9.5

func (f *GetHostByAddress) Call(s *slip.Scope, args slip.List, depth int) (result slip.Object)

Call the function with the arguments provided.

type GetHostByName added in v0.9.5

type GetHostByName struct {
	slip.Function
}

GetHostByName represents the get-host-by-name function.

func (*GetHostByName) Call added in v0.9.5

func (f *GetHostByName) Call(s *slip.Scope, args slip.List, depth int) (result slip.Object)

Call the function with the arguments provided.

type GraphqlQuery added in v1.3.1

type GraphqlQuery struct {
	slip.Function
}

GraphqlQuery represents the graphql-query function.

func (*GraphqlQuery) Call added in v1.3.1

func (f *GraphqlQuery) Call(s *slip.Scope, args slip.List, depth int) slip.Object

Call the function with the arguments provided.

type MakeInet6Address added in v0.9.5

type MakeInet6Address struct {
	slip.Function
}

MakeInet6Address represents the make-inet6-address function.

func (*MakeInet6Address) Call added in v0.9.5

func (f *MakeInet6Address) Call(s *slip.Scope, args slip.List, depth int) slip.Object

Call the function with the arguments provided.

type MakeInetAddress added in v0.9.5

type MakeInetAddress struct {
	slip.Function
}

MakeInetAddress represents the make-inet-address function.

func (*MakeInetAddress) Call added in v0.9.5

func (f *MakeInetAddress) Call(s *slip.Scope, args slip.List, depth int) slip.Object

Call the function with the arguments provided.

type MakeSocket added in v0.9.5

type MakeSocket struct {
	slip.Function
}

MakeSocket represents the make-socket function.

func (*MakeSocket) Call added in v0.9.5

func (f *MakeSocket) Call(s *slip.Scope, args slip.List, depth int) slip.Object

Call the function with the arguments provided.

type ParseAddress added in v0.9.5

type ParseAddress struct {
	slip.Function
}

ParseAddress represents the parse-address function.

func (*ParseAddress) Call added in v0.9.5

func (f *ParseAddress) Call(s *slip.Scope, args slip.List, depth int) slip.Object

Call the function with the arguments provided.

type SocketAccept added in v0.9.5

type SocketAccept struct {
	slip.Function
}

SocketAccept represents the socket-accept function.

func (*SocketAccept) Call added in v0.9.5

func (f *SocketAccept) Call(s *slip.Scope, args slip.List, depth int) slip.Object

Call the function with the arguments provided.

type SocketAddress added in v0.9.5

type SocketAddress struct {
	slip.Function
}

SocketAddress represents the socket-address function.

func (*SocketAddress) Call added in v0.9.5

func (f *SocketAddress) Call(s *slip.Scope, args slip.List, depth int) (result slip.Object)

Call the function with the arguments provided.

type SocketBind added in v0.9.5

type SocketBind struct {
	slip.Function
}

SocketBind represents the socket-bind function.

func (*SocketBind) Call added in v0.9.5

func (f *SocketBind) Call(s *slip.Scope, args slip.List, depth int) slip.Object

Call the function with the arguments provided.

type SocketClose added in v0.9.5

type SocketClose struct {
	slip.Function
}

SocketClose represents the socket-close function.

func (*SocketClose) Call added in v0.9.5

func (f *SocketClose) Call(s *slip.Scope, args slip.List, depth int) slip.Object

Call the function with the arguments provided.

type SocketConnect added in v0.9.5

type SocketConnect struct {
	slip.Function
}

SocketConnect represents the socket-connect function.

func (*SocketConnect) Call added in v0.9.5

func (f *SocketConnect) Call(s *slip.Scope, args slip.List, depth int) slip.Object

Call the function with the arguments provided.

type SocketListen added in v0.9.5

type SocketListen struct {
	slip.Function
}

SocketListen represents the socket-listen function.

func (*SocketListen) Call added in v0.9.5

func (f *SocketListen) Call(s *slip.Scope, args slip.List, depth int) slip.Object

Call the function with the arguments provided.

type SocketMakeStream added in v0.9.5

type SocketMakeStream struct {
	slip.Function
}

SocketMakeStream represents the socket-make-stream function.

func (*SocketMakeStream) Call added in v0.9.5

func (f *SocketMakeStream) Call(s *slip.Scope, args slip.List, depth int) (result slip.Object)

Call the function with the arguments provided.

type SocketName added in v0.9.5

type SocketName struct {
	slip.Function
}

SocketName represents the socket-name function.

func (*SocketName) Call added in v0.9.5

func (f *SocketName) Call(s *slip.Scope, args slip.List, depth int) slip.Object

Call the function with the arguments provided.

type SocketOpenp added in v0.9.5

type SocketOpenp struct {
	slip.Function
}

SocketOpenp represents the socket-open-p function.

func (*SocketOpenp) Call added in v0.9.5

func (f *SocketOpenp) Call(s *slip.Scope, args slip.List, depth int) (result slip.Object)

Call the function with the arguments provided.

type SocketOption added in v0.9.5

type SocketOption struct {
	slip.Function
}

SocketOption represents the socket-option function.

func (*SocketOption) Call added in v0.9.5

func (f *SocketOption) Call(s *slip.Scope, args slip.List, depth int) (result slip.Object)

Call the function with the arguments provided.

func (*SocketOption) Place added in v0.9.5

func (f *SocketOption) Place(s *slip.Scope, args slip.List, value slip.Object)

Place a value in an option using the :set-option method.

type SocketP added in v0.9.5

type SocketP struct {
	slip.Function
}

SocketP represents the socket-p function.

func (*SocketP) Call added in v0.9.5

func (f *SocketP) Call(s *slip.Scope, args slip.List, depth int) (result slip.Object)

Call the function with the arguments provided.

type SocketPair added in v0.9.5

type SocketPair struct {
	slip.Function
}

SocketPair represents the socket-pair function.

func (*SocketPair) Call added in v0.9.5

func (f *SocketPair) Call(s *slip.Scope, args slip.List, depth int) slip.Object

Call the function with the arguments provided.

type SocketPeerAddress added in v0.9.5

type SocketPeerAddress struct {
	slip.Function
}

SocketPeerAddress represents the socket-peer-address function.

func (*SocketPeerAddress) Call added in v0.9.5

func (f *SocketPeerAddress) Call(s *slip.Scope, args slip.List, depth int) (result slip.Object)

Call the function with the arguments provided.

type SocketPeerName added in v0.9.5

type SocketPeerName struct {
	slip.Function
}

SocketName represents the socket-peername function.

func (*SocketPeerName) Call added in v0.9.5

func (f *SocketPeerName) Call(s *slip.Scope, args slip.List, depth int) slip.Object

Call the function with the arguments provided.

type SocketPeerPort added in v0.9.5

type SocketPeerPort struct {
	slip.Function
}

SocketPeerPort represents the socket-peer-port function.

func (*SocketPeerPort) Call added in v0.9.5

func (f *SocketPeerPort) Call(s *slip.Scope, args slip.List, depth int) (result slip.Object)

Call the function with the arguments provided.

type SocketPort added in v0.9.5

type SocketPort struct {
	slip.Function
}

SocketPort represents the socket-port function.

func (*SocketPort) Call added in v0.9.5

func (f *SocketPort) Call(s *slip.Scope, args slip.List, depth int) (result slip.Object)

Call the function with the arguments provided.

type SocketReceive added in v0.9.5

type SocketReceive struct {
	slip.Function
}

SocketReceive represents the socket-receive function.

func (*SocketReceive) Call added in v0.9.5

func (f *SocketReceive) Call(s *slip.Scope, args slip.List, depth int) (result slip.Object)

Call the function with the arguments provided.

type SocketSelect added in v0.9.5

type SocketSelect struct {
	slip.Function
}

SocketSelect represents the socket-select function.

func (*SocketSelect) Call added in v0.9.5

func (f *SocketSelect) Call(s *slip.Scope, args slip.List, depth int) slip.Object

Call the function with the arguments provided.

type SocketSend added in v0.9.5

type SocketSend struct {
	slip.Function
}

SocketSend represents the socket-send function.

func (*SocketSend) Call added in v0.9.5

func (f *SocketSend) Call(s *slip.Scope, args slip.List, depth int) (result slip.Object)

Call the function with the arguments provided.

type SocketShutdown added in v0.9.5

type SocketShutdown struct {
	slip.Function
}

SocketShutdown represents the socket-shutdown function.

func (*SocketShutdown) Call added in v0.9.5

func (f *SocketShutdown) Call(s *slip.Scope, args slip.List, depth int) slip.Object

Call the function with the arguments provided.

type SocketState added in v0.9.5

type SocketState struct {
	slip.Function
}

SocketState represents the socket-state function.

func (*SocketState) Call added in v0.9.5

func (f *SocketState) Call(s *slip.Scope, args slip.List, depth int) (result slip.Object)

Call the function with the arguments provided.

type SocketStream added in v0.9.5

type SocketStream struct {
	slip.Function
}

SocketStream represents the socket-stream function.

func (*SocketStream) Call added in v0.9.5

func (f *SocketStream) Call(s *slip.Scope, args slip.List, depth int) slip.Object

Call the function with the arguments provided.

type SockoptBroadcast added in v0.9.5

type SockoptBroadcast struct {
	slip.Function
}

SockoptBroadcast represents the sockopt-broadcast function.

func (*SockoptBroadcast) Call added in v0.9.5

func (f *SockoptBroadcast) Call(s *slip.Scope, args slip.List, depth int) (result slip.Object)

Call the function with the arguments provided.

func (*SockoptBroadcast) Place added in v0.9.5

func (f *SockoptBroadcast) Place(s *slip.Scope, args slip.List, value slip.Object)

Place a value in an option using the :set-option method.

type SockoptDebug added in v0.9.5

type SockoptDebug struct {
	slip.Function
}

SockoptDebug represents the sockopt-debug function.

func (*SockoptDebug) Call added in v0.9.5

func (f *SockoptDebug) Call(s *slip.Scope, args slip.List, depth int) (result slip.Object)

Call the function with the arguments provided.

func (*SockoptDebug) Place added in v0.9.5

func (f *SockoptDebug) Place(s *slip.Scope, args slip.List, value slip.Object)

Place a value in an option using the :set-option method.

type SockoptKeepAlive added in v0.9.5

type SockoptKeepAlive struct {
	slip.Function
}

SockoptKeepAlive represents the sockopt-keep-alive function.

func (*SockoptKeepAlive) Call added in v0.9.5

func (f *SockoptKeepAlive) Call(s *slip.Scope, args slip.List, depth int) (result slip.Object)

Call the function with the arguments provided.

func (*SockoptKeepAlive) Place added in v0.9.5

func (f *SockoptKeepAlive) Place(s *slip.Scope, args slip.List, value slip.Object)

Place a value in an option using the :set-option method.

type SockoptOobInline added in v0.9.5

type SockoptOobInline struct {
	slip.Function
}

SockoptOobInline represents the sockopt-oob-inline function.

func (*SockoptOobInline) Call added in v0.9.5

func (f *SockoptOobInline) Call(s *slip.Scope, args slip.List, depth int) (result slip.Object)

Call the function with the arguments provided.

func (*SockoptOobInline) Place added in v0.9.5

func (f *SockoptOobInline) Place(s *slip.Scope, args slip.List, value slip.Object)

Place a value in an option using the :set-option method.

type SockoptReuseAddress added in v0.9.5

type SockoptReuseAddress struct {
	slip.Function
}

SockoptReuseAddress represents the sockopt-reuse-address function.

func (*SockoptReuseAddress) Call added in v0.9.5

func (f *SockoptReuseAddress) Call(s *slip.Scope, args slip.List, depth int) (result slip.Object)

Call the function with the arguments provided.

func (*SockoptReuseAddress) Place added in v0.9.5

func (f *SockoptReuseAddress) Place(s *slip.Scope, args slip.List, value slip.Object)

Place a value in an option using the :set-option method.

type SockoptTcpNodelay added in v0.9.5

type SockoptTcpNodelay struct {
	slip.Function
}

SockoptTcpNodelay represents the sockopt-tcp-nodelay function.

func (*SockoptTcpNodelay) Call added in v0.9.5

func (f *SockoptTcpNodelay) Call(s *slip.Scope, args slip.List, depth int) (result slip.Object)

Call the function with the arguments provided.

func (*SockoptTcpNodelay) Place added in v0.9.5

func (f *SockoptTcpNodelay) Place(s *slip.Scope, args slip.List, value slip.Object)

Place a value in an option using the :set-option method.

type WaitForInput added in v0.9.5

type WaitForInput struct {
	slip.Function
}

WaitForInput represents the wait-for-input function.

func (*WaitForInput) Call added in v0.9.5

func (f *WaitForInput) Call(s *slip.Scope, args slip.List, depth int) slip.Object

Call the function with the arguments provided.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL