Guest User

Untitled

a guest
Jul 13th, 2018
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. import 'dart:io';
  2.  
  3. const String user = "serveradmin";
  4. const String pass = "----";
  5.  
  6. void main() {
  7. Socket.connect("hexah.net", 10011).then((socket) {
  8. print('Connected to: '
  9. '${socket.remoteAddress.address}:${socket.remotePort}');
  10.  
  11.  
  12. //Establish the onData, and onDone callbacks
  13. socket.listen((data) {
  14.  
  15. print(new String.fromCharCodes(data).trim());
  16. });
  17.  
  18. socket.write("login $user $pass");
  19. });
  20. print("End");
  21. }
Add Comment
Please, Sign In to add comment