Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env perl6
- use v6;
- unit module MC;
- class Aero is export {
- has $.host;
- has $.port;
- has $!conn = IO::Socket::INET.new(host => $!host, port =>$!port);
- method close() {
- $!conn.close;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement