Professional Documents
Culture Documents
Socket Programming
Aim:-
To develop a visual basic program to perform an “E_Mail Application
Using Socket Control”.
Algorithm:-
Server:-
Step1: Winsocket & Data control is placed in the client and the server.
Step2: Winsocket just connect client and server machine using accept request -
method.
Step3: Here the local port number is specified and port wait for the response -
from client.
Step4: Here send data method is used to send data to the specified port and get-
data from the client.
Client:-
Name :
Reg.No:
Sec :’B’
Source Code:-
Server Side:-
Case Else
vkListBox1.AddItem SckServer.RemoteHostIP & " Says: " & StrData
End Select
End Sub
Sub Listen()
SckServer.Close
SckServer.LocalPort = 1025
SckServer.Listen
vkListBox1.AddItem "Disconnected"
End Sub
Client Side:-
Server Output:-
Client Output:-
Result:-