io.sockets: make addrspecs immutable
parent
2c7fee3345
commit
a22f419ba4
|
|
@ -39,7 +39,7 @@ HOOK: <secure-context> secure-socket-backend ( config -- context )
|
|||
with-disposal
|
||||
] with-scope ; inline
|
||||
|
||||
TUPLE: secure addrspec ;
|
||||
TUPLE: secure { addrspec read-only } ;
|
||||
|
||||
C: <secure> secure
|
||||
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ HOOK: addrspec-of-family os ( af -- addrspec )
|
|||
|
||||
PRIVATE>
|
||||
|
||||
TUPLE: local path ;
|
||||
TUPLE: local { path read-only } ;
|
||||
|
||||
: <local> ( path -- addrspec )
|
||||
normalize-path local boa ;
|
||||
|
|
|
|||
Loading…
Reference in New Issue