Question Asynchronous communication help

dewie68

New member
Joined
Mar 11, 2012
Messages
1
Programming Experience
Beginner
Hi
I have an application that i have communicating with another device using an asynchronous communication methdod (beginreceive method). I need to lnow if there is.a.way to.stop this communication without actually receiving.data. i.have a calnacl method set up so that when data is received it can end the communications but there is a chance thatit wontreceive any data, and i cant call the endreceive method then . How would i be able to use the endreceive method withput actually acquiring any data?
 

JohnH

VB.NET Forum Moderator
Staff member
Joined
Dec 17, 2005
Messages
15,553
Location
Norway
Programming Experience
10+
Did you read the documentation?
help said:
To cancel a pending BeginReceive, call the Close method.
 
Top Bottom