|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
reading data from port
Hi friends,
I want one sample program in VB which reads data from one port n displays it. Suppose i am opening telnet application on that port then it should display whatever data m writing in telnet on the form. Can someone please help me with this. Any help will be appreciated. Thanx in advance. |
|
#2
|
|||
|
|||
|
In VB6 there is a winsock control you can use.
http://msdn.microsoft.com/library/e...sockControl.asp
__________________
====== Doug G ====== I didn't attend the funeral, but I sent a nice letter saying I approved of it. --Mark Twain |
|
#3
|
|||
|
|||
|
Quote:
Heres a quick example: Code:
Private Sub Command1_Click()
IP = InputBox("IP/Host To Connect To:", "IP:")
Port = InputBox("Port To Connect On:", "Port:")
Winsock1.Close
Winsock1.Connect IP, Port
End Sub
Private Sub Winsock1_DataArrival(ByVal bytesTotal As Long)
Winsock1.GetData Data, vbString
Text1.Text = Data
End Sub
|
![]() |
| Viewing: ASP Free Forums > Programming > Visual Basic Programming > reading data from port |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|