Esempio n. 1
0
 private void btnKirimDataKeServer_Click(object sender, EventArgs e)
 {
     varGlobal.alamatIPServer = txtIPTujuan.Text;
     varGlobal.port           = Int16.Parse(txtPortClient.Text);
     SocketTCP.StartClient(txtKirimData.Text);
 }
Esempio n. 2
0
 private void listenSocket()
 {
     varGlobal.port           = Int16.Parse(txtPortServer.Text); // konversi dari string ke integer
     varGlobal.alamatIPServer = txtIPServer.Text;
     SocketTCP.StartListening();
 }