Guest User

Untitled

a guest
Feb 9th, 2019
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.55 KB | None | 0 0
  1. #include <iostream>
  2. #include "csh.h"
  3. #include "objbin.h"
  4. #include <iostream>
  5.  
  6.  
  7. DB Database;
  8. DB_SERVER Host(&Database,4545);
  9.  
  10. int main()
  11. {
  12.  
  13.     DB_CLIENT Machine;
  14.     Database.Name = "DB_1";
  15.     std::cout << "Input DB admin username:";
  16.     std::string Username;
  17.     std::string Password;
  18.     std::cin >> Username;
  19.     std::cout << "Input DB admin password:";
  20.     std::cin >> Password;
  21.     system("cls");
  22.     Host.Control.Add_Credential("omg","hi",1);
  23.     while(1) {
  24.         Host.Update(); 
  25.         std::cout << Machine.Connect(sf::IpAddress("127.0.0.1"),4545,"hi","omg");
  26.     }
  27.     return 0;
  28. }
Add Comment
Please, Sign In to add comment