TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Pavol
NA
23
9k
Unblockd IpEndPoint
Jul 25 2013 7:31 AM
Hi
I have got following code:
public void listen()
{
client = new UdpClient(localPort);
host = new IPEndPoint(IPAddress.Any, 0);
while (Convert.ToString(client.Available)!="")
{
received = client.Receive(ref host); //error on this line !!!!!!!!!!!
receivedString = Encoding.ASCII.GetString(received);
writer = new StreamWriter(pathDesktop + @"\CLO_Log.txt", true);
writer.Write(receivedString);
writer.Close();
tb.Invoke((MethodInvoker)delegate()
{
tb.AppendText(receivedString);
});
}
client.Close();
}
I start this method on thread.
In form i have got code:
thread.suspend();
some code
thread.start();
Error message is "A blocking operation was interrupted by a call to WSACancelBlockingCall"
Reply
Answers (
0
)
How to show grid view empty when i make new request?
Could not find a part of them path