hamachi 1.0.0 copy "hamachi: ^1.0.0" to clipboard
hamachi: ^1.0.0 copied to clipboard

A Dart libraries to access information on the hamachi network.

example/hamachi_example.dart

import 'package:hamachi/hamachi.dart';

void main() {
  print('-- hamachi login --');
  print(Hamachi.Login());
  print('-- hamachi clients list --');
  Hamachi.getList().forEach((element) {
    print(element);

    var computer = Hamachi.getHamachiComputer(element.id);
    // element and computer should be identical, this code
    // is just an example of the api
    print(computer.name);
    // computer_name

    // other computer properties
    // computer.name = 'computer_name'
    // computer.id = '234-321-233'
    // computer.ipv4 = '25.x.x.x'
    // computer.alias = 'not set'
    // computer.ipv6 = '2530:xxxxx'
    // computer.type = 'direct'
    // computer.protocol = 'UDP'
    // computer.proxy = '76.x.x.x'
    // computer.network.id = '432-432-334'
    // computer.network.name = 'network1'
    // computer.network.capacity = '3/5'
    // computer.network.type = 'Free'
    // computer.network.owner = 'owner@mail.com'

    var status = Hamachi.getHamachiStatus(element.id);
    print(status.vpnStatus);
    print(status);
    // ok
  });
  print('-- hamachi network list --');
  Hamachi.getNetworkList().forEach((element) {
    print(element);
  });

  print('-- just one network --');
  print(Hamachi.getList('Network2'));

  print('-- hamachi logout --');
  // print(Hamachi.Logout());
}
0
likes
40
pub points
0%
popularity

Publisher

unverified uploader

A Dart libraries to access information on the hamachi network.

Repository (GitLab)
View/report issues

License

BSD-3-Clause (LICENSE)

More

Packages that depend on hamachi