Socket Programming

kishanhathiwala

Newcomer
Joined
Dec 6, 2005
Messages
2
Hello,

I am very new regarding Socket Programming but am intermediate Programmer in Winsock (VB6). Can any one guide me with a simple code showing in socket with sending and receiving just like as done with Winsock control? or may be some tutorials link will also do. i have gone through tutorial section in this forum but couldnt find any. thanks in advance
 
Thanks for the reply. but am still looking for the things like

winsock.connect ("www.domainname.com")

and for sending winsock.send("some datas")

and for receiving there is its special event for data receiving of winsock. what about if i want to do the same thing in vb.net using system.net and system.net.socket? i mean how do i receive datas there is not such event fired when datas are received. i can connect and send datas but cant receive datas what server send. how will i come to know some datas are received?

thanks
 
pass the callback sub to tcpclient.BeginRead after you establish your connection

oh and to connect its

private socket as new tcpClient("host", port) assuming you have already imported system.net.sockets namespace
 
Back
Top