hi i am new user for winsock.
in my code with winsock i connect to 672 port, but i couldnt connect to 1200 port.
i can connect with hyperterminal port=672 or port=1200
plese help me.
there is my code down.
Private Sub cmdConnect_Click()
On Error GoTo hata_g
If cmdConnect.Caption = "Connect" Then
sockMain.Close
sockMain.Connect txtHost.Text, txtPort.Text
cmdConnect.Caption = "DisConnect"
MsgBox "Connected"
Else
sockMain.Close
cmdConnect.Caption = "Connect"
MsgBox "DisConnected"
End If
Exit Sub
hata_g:
MsgBox Err.Description
End Sub
Private Sub senddata_winsock()
dim strsend as string
strsend = "STP100" & vbTab & "100" & vbTab & "5" & vbCrLf
sockMain.SendData strsend
strsend = "GO" & vbCrLf
sockMain.SendData strsend
End Sub
in my code with winsock i connect to 672 port, but i couldnt connect to 1200 port.
i can connect with hyperterminal port=672 or port=1200
plese help me.
there is my code down.
Private Sub cmdConnect_Click()
On Error GoTo hata_g
If cmdConnect.Caption = "Connect" Then
sockMain.Close
sockMain.Connect txtHost.Text, txtPort.Text
cmdConnect.Caption = "DisConnect"
MsgBox "Connected"
Else
sockMain.Close
cmdConnect.Caption = "Connect"
MsgBox "DisConnected"
End If
Exit Sub
hata_g:
MsgBox Err.Description
End Sub
Private Sub senddata_winsock()
dim strsend as string
strsend = "STP100" & vbTab & "100" & vbTab & "5" & vbCrLf
sockMain.SendData strsend
strsend = "GO" & vbCrLf
sockMain.SendData strsend
End Sub