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