ftp.server: don't mutate addrspecs anymore
parent
afbf4e9cb2
commit
cf347038bd
|
@ -25,7 +25,7 @@ IN: ftp.server.tests
|
||||||
"ftp" >>protocol
|
"ftp" >>protocol
|
||||||
"localhost" >>host
|
"localhost" >>host
|
||||||
create-test-file >>path
|
create-test-file >>path
|
||||||
_ call
|
@
|
||||||
]
|
]
|
||||||
[ stop-server ] tri
|
[ stop-server ] tri
|
||||||
] with-unique-directory drop ; inline
|
] with-unique-directory drop ; inline
|
||||||
|
|
|
@ -115,7 +115,7 @@ ERROR: type-error type ;
|
||||||
] recover ;
|
] recover ;
|
||||||
|
|
||||||
: random-local-server ( -- server )
|
: random-local-server ( -- server )
|
||||||
remote-address get class new 0 >>port binary <server> ;
|
remote-address get class new binary <server> ;
|
||||||
|
|
||||||
: port>bytes ( port -- hi lo )
|
: port>bytes ( port -- hi lo )
|
||||||
[ -8 shift ] keep [ 8 bits ] bi@ ;
|
[ -8 shift ] keep [ 8 bits ] bi@ ;
|
||||||
|
|
Loading…
Reference in New Issue