Exemplo n.º 1
0
 private static void client_StateChanged(karlient client, bool connected, string reason)
 {
     Console.WriteLine("[+] Client: Connected: {0}, reason: {1}", connected, reason);
     // jika terhubung
     if (connected)
     {
         // pengirim / client mengirim suatu file9
         client.Start(); //client mulai mengirim
         // mengirim suatu barang
         kirimPesan("Hello!, Im sending a file.../");
         kirimFile("C:\\Windows\\notepad.exe");
     }
 }
Exemplo n.º 2
0
 private static void client_PacketReceived(karlient client, int value)
 {
     // code yang memberitahu tentang packet yang didapat
     //
     Console.WriteLine("[+] Client: Packet received: " + value.ToString("x2"));
 }