Advertisement
Guest User

Untitled

a guest
Nov 14th, 2017
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 6 0.23 KB | None | 0 0
  1. #!/usr/bin/env perl6
  2. use v6;
  3. unit module MC;
  4.  
  5. class Aero is export {
  6.     has $.host;
  7.     has $.port;
  8.     has $!conn = IO::Socket::INET.new(host => $!host, port =>$!port);
  9.    
  10.     method close() {
  11.         $!conn.close;
  12.     }
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement