<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>fordownloads's Feed - Programmer's Heaven</title>
    <link>http://www.programmersheaven.com/feed/User/321515/RSS.aspx</link>
    <description>Events at Programmer's Heaven related to the user fordownloads.</description>
    <language>en</language>
    <copyright>Copyright 2013 Programmers Heaven</copyright>
    <pubDate>Sat, 25 May 2013 02:42:31 -0700</pubDate>
    <generator>Argotic Syndication Framework 2007.3.0.1, http://www.codeplex.com/Argotic</generator>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <ttl>360</ttl>
    <item>
      <title>Re: Sockets won't connect on local network</title>
      <link>http://www.programmersheaven.com/mb/csharp/371691/372466/ReadMessage.aspx#372466</link>
      <description>&lt;p&gt;Posted the message '&lt;a href="http://www.programmersheaven.com/mb/csharp/371691/372466/ReadMessage.aspx#372466"&gt;Re: Sockets won't connect on local network&lt;/a&gt;' on the &lt;a href="http://www.programmersheaven.com/mb/csharp/Board.aspx"&gt;C#&lt;/a&gt; forum.&lt;/p&gt;How u r sending messages from one computer to another. I used socket.send &amp;amp; socket.receive methods. n also I have used byte buffers to send and receive messages.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
: Greetings,&lt;br /&gt;
: &lt;br /&gt;
: I am writing a simple asonchronous socket component which handles &lt;br /&gt;
: basic communication between peers using Sockets.  I am having the &lt;br /&gt;
: following problem:&lt;br /&gt;
: &lt;br /&gt;
: Sockets are happy to successfully connect to one another when two or &lt;br /&gt;
: more instances of the component are run on the same computer but &lt;br /&gt;
: fail when the component is tested on two separate computers.  The &lt;br /&gt;
: following occurs:&lt;br /&gt;
: &lt;br /&gt;
: 1.  Computer 1 goes online and starts listening for connections.&lt;br /&gt;
: 2.  Computer 2 goes online and attempts to connect to Computer 1&lt;br /&gt;
: 3.  Computer 2 recieves "the computer actively refused this &lt;br /&gt;
: connection," as if the port was not in fact listening.&lt;br /&gt;
: 4.  Computer 1's OnBeginAccept event is never triggered.&lt;br /&gt;
: &lt;br /&gt;
: I installed a sniffer to check whether the message is in fact &lt;br /&gt;
: getting across the network.  I can confirm that a new connection is &lt;br /&gt;
: in fact created between the two computers every time that Computer 2 &lt;br /&gt;
: attempts to connect to Computer 1.&lt;br /&gt;
: &lt;br /&gt;
: Both computers are on XP SP2.&lt;br /&gt;
: &lt;br /&gt;
: I have been digging at this for a while and can confirm that the &lt;br /&gt;
: following are not the causes of this issue:&lt;br /&gt;
: - The IP is not entered correctly when attempting to connect to a &lt;br /&gt;
: socket - in fact, it is.&lt;br /&gt;
: - There is a network firewall stopping the transfer - the Netweork &lt;br /&gt;
: Administrator assures me this is not the case, and I have disabled &lt;br /&gt;
: Windows Firewall on both computers.&lt;br /&gt;
: - The computers are not physically connected - ping works perfectly &lt;br /&gt;
: well.&lt;br /&gt;
: &lt;br /&gt;
: If anyone has run into this problem, I would be immensely happy to &lt;br /&gt;
: hear what the solution is as I am at a loss.  &lt;br /&gt;
: &lt;br /&gt;
: Thanks in advance!&lt;br /&gt;
: Alexey&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/csharp/371691/372466/ReadMessage.aspx#372466</guid>
      <pubDate>Fri, 06 Jun 2008 14:12:44 -0700</pubDate>
    </item>
    <item>
      <title>Re: Problem about System.ComponentModel.BackgroundWorker!</title>
      <link>http://www.programmersheaven.com/mb/csharp/371477/372465/ReadMessage.aspx#372465</link>
      <description>&lt;p&gt;Posted the message '&lt;a href="http://www.programmersheaven.com/mb/csharp/371477/372465/ReadMessage.aspx#372465"&gt;Re: Problem about System.ComponentModel.BackgroundWorker!&lt;/a&gt;' on the &lt;a href="http://www.programmersheaven.com/mb/csharp/Board.aspx"&gt;C#&lt;/a&gt; forum.&lt;/p&gt;&lt;br /&gt;
sorry for the late reply...If you still facing this problem.... check this..&lt;br /&gt;
&lt;br /&gt;
Did you check it only one "backgroundWorker1.DoWork"is running? You added do_work event twice in the program&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
: Hello&lt;br /&gt;
: I am using the component in VS2005 called BackgroundWorker, but &lt;br /&gt;
: there is something so surprising.&lt;br /&gt;
: This is my code:&lt;br /&gt;
: -------&lt;br /&gt;
: 		private void Form1_Load(object sender, EventArgs e)&lt;br /&gt;
: 		{&lt;br /&gt;
: 			&lt;br /&gt;
: 			backgroundWorker1.WorkerReportsProgress = true;&lt;br /&gt;
: 			backgroundWorker1.WorkerSupportsCancellation = true;&lt;br /&gt;
: 	&lt;br /&gt;
: 			backgroundWorker1.DoWork += new &lt;br /&gt;
: DoWorkEventHandler(backgroundWorker1_DoWork);&lt;br /&gt;
: 			backgroundWorker1.RunWorkerCompleted += new &lt;br /&gt;
: RunWorkerCompletedEventHandler(backgroundWorker1_RunWorkerCompleted);&lt;br /&gt;
: &lt;br /&gt;
: Work.ReportProgress()发送过来的消息&lt;br /&gt;
: 			backgroundWorker1.ProgressChanged += new &lt;br /&gt;
: ProgressChangedEventHandler(backgroundWorker1_ProgressChanged);&lt;br /&gt;
: 		}&lt;br /&gt;
: &lt;br /&gt;
: 		private void button1_Click(object sender, EventArgs e)&lt;br /&gt;
: 		{&lt;br /&gt;
: 			int nCount = 0;&lt;br /&gt;
: 			backgroundWorker1.RunWorkerAsync(nCount);&lt;br /&gt;
: 		}&lt;br /&gt;
: 		void backgroundWorker1_ProgressChanged(object sender, &lt;br /&gt;
: ProgressChangedEventArgs e)&lt;br /&gt;
: 		{&lt;br /&gt;
: 			textBox1.Text = e.ProgressPercentage.ToString();&lt;br /&gt;
: 			textBox2.Text = e.UserState.ToString();&lt;br /&gt;
: 		}&lt;br /&gt;
: &lt;br /&gt;
: 		void backgroundWorker1_RunWorkerCompleted(object sender, &lt;br /&gt;
: RunWorkerCompletedEventArgs e)&lt;br /&gt;
: 		{&lt;br /&gt;
: 			&lt;br /&gt;
: 			if (!e.Cancelled)&lt;br /&gt;
: 			{&lt;br /&gt;
: 				MessageBox.Show("complete");&lt;br /&gt;
: 			}&lt;br /&gt;
: 			else&lt;br /&gt;
: 			{&lt;br /&gt;
: 				MessageBox.Show("user canceled");&lt;br /&gt;
: 			}&lt;br /&gt;
: 			&lt;br /&gt;
: &lt;br /&gt;
: 		}&lt;br /&gt;
: &lt;br /&gt;
: 		void backgroundWorker1_DoWork(object sender, DoWorkEventArgs e)&lt;br /&gt;
: 		{&lt;br /&gt;
: 			for (int i = 0; i &amp;lt; 10; i++)&lt;br /&gt;
: 			{&lt;br /&gt;
: 				&lt;br /&gt;
: 				if (backgroundWorker1.CancellationPending)&lt;br /&gt;
: 				{&lt;br /&gt;
: 					e.Cancel = true;&lt;br /&gt;
: 					break;&lt;br /&gt;
: 				}&lt;br /&gt;
: 				int nCount = (int)e.Argument;&lt;br /&gt;
: 				nCount = i;&lt;br /&gt;
: 				&lt;br /&gt;
: 				backgroundWorker1.ReportProgress(nCount, nCount);&lt;br /&gt;
: &lt;br /&gt;
: 				System.Threading.Thread.Sleep(200);&lt;br /&gt;
: 			}&lt;br /&gt;
: 		}&lt;br /&gt;
: ------&lt;br /&gt;
: If i click button1, the component runs and ends, but the second time &lt;br /&gt;
: when i click button1, i found that there was two new threads created &lt;br /&gt;
: by the component.But i just use only one BackgroundWorker!!&lt;br /&gt;
: So what's wrong. i felt so surprised!&lt;br /&gt;
: Could you help me?&lt;br /&gt;
: Thanks in advance!&lt;br /&gt;
: &lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/csharp/371477/372465/ReadMessage.aspx#372465</guid>
      <pubDate>Fri, 06 Jun 2008 14:03:55 -0700</pubDate>
    </item>
  </channel>
</rss>