diff options
Diffstat (limited to 'stdlib/source/lux/world/net/tcp.jvm.lux')
-rw-r--r-- | stdlib/source/lux/world/net/tcp.jvm.lux | 31 |
1 files changed, 17 insertions, 14 deletions
diff --git a/stdlib/source/lux/world/net/tcp.jvm.lux b/stdlib/source/lux/world/net/tcp.jvm.lux index 30c3ef49b..86b19136a 100644 --- a/stdlib/source/lux/world/net/tcp.jvm.lux +++ b/stdlib/source/lux/world/net/tcp.jvm.lux @@ -3,34 +3,37 @@ [control monad] [concurrency - [promise (#+ Promise promise)] + ["." promise (#+ Promise promise)] [task (#+ Task)] - [frp]] - [data ["e" error]] - [type abstract] - [world [blob (#+ Blob)]] - [io (#+ Process)] - [host]] - [//]) + ["." frp]] + [data + ["e" error]] + [type + abstract] + [world + [blob (#+ Blob)]] + ["." io (#+ Process)] + [host (#+ import:)]] + ["." //]) -(host.import: java/lang/AutoCloseable +(import: java/lang/AutoCloseable (close [] #io #try void)) -(host.import: java/io/Flushable +(import: java/io/Flushable (flush [] #io #try void)) -(host.import: java/io/InputStream +(import: java/io/InputStream (read [(Array byte) int int] #io #try int)) -(host.import: java/io/OutputStream +(import: java/io/OutputStream (write [(Array byte) int int] #io #try void)) -(host.import: java/net/Socket +(import: java/net/Socket (new [String int] #io #try) (getInputStream [] #io #try InputStream) (getOutputStream [] #io #try OutputStream)) -(host.import: java/net/ServerSocket +(import: java/net/ServerSocket (new [int] #io #try) (accept [] #io #try Socket)) |