diff options
Diffstat (limited to 'stdlib/source/lux/world/net/udp.jvm.lux')
-rw-r--r-- | stdlib/source/lux/world/net/udp.jvm.lux | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/stdlib/source/lux/world/net/udp.jvm.lux b/stdlib/source/lux/world/net/udp.jvm.lux index 4f58f1563..468d3b2b9 100644 --- a/stdlib/source/lux/world/net/udp.jvm.lux +++ b/stdlib/source/lux/world/net/udp.jvm.lux @@ -8,7 +8,7 @@ (data ["e" error] [maybe] (coll [array])) - (type opaque) + (type abstract) (world [blob #+ Blob]) [io] [host]) @@ -54,7 +54,7 @@ +1 (wrap (maybe.assume (array.read +0 addresses))) _ (io.io (ex.throw Multiple-Candidate-Addresses address)))))) -(opaque: #export UDP {} +(abstract: #export UDP {} {#socket DatagramSocket} (def: #export (read data offset length self) @@ -89,12 +89,12 @@ (P.future (do (e.ErrorT io.Monad<IO>) [socket (DatagramSocket::new|client [])] - (wrap (@opaque (#socket socket)))))) + (wrap (@abstract (#socket socket)))))) (def: #export (server port) (-> //.Port (T.Task UDP)) (P.future (do (e.ErrorT io.Monad<IO>) [socket (DatagramSocket::new|server [(nat-to-int port)])] - (wrap (@opaque (#socket socket)))))) + (wrap (@abstract (#socket socket)))))) ) |