Aysnchronous socket problem

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I have written an asychronous socket based on the microsoft example below :-

http://msdn2.microsoft.com/en-gb/5w7b7x5f.aspx

My app is connected to multiple clients which connect to the PC my app is on
through a switch which is connected to a Network card.However the company
server is also connected to the PC but on a different network card and this
is causing problems as it seems to be blocking the data on the other network
card

Can I block the card (in the asynchronous socket server code) that is
connected to the company LAN so that the asynchronous socket ignores data
from the company server/LAN?

Thanks
Macca
 
Why would it block data from the other network? Presumably your app is
wiaitng accepting connections on a port to it and handling them. The only
reason another network or server might cause an issue is if it is using the
same port number and you are getting some sort of port conflict, otherwise
they would not effect each other.

Since you use two cards i presume the company lan is on a different subnet?
(otherwise there isnt much need for two cards) In which case clients would
only be able to see your server anyhow and since you would replying to them
in your sends back it will only go to them. I am pretty certain your problem
is a port issue or something else but not due to the company server (unless
the company server app is using the port as pre mentioned).

- So try using a different port.
- Try disabling your company server connected network card in devices
through control panel and re-testing to see if it is effected.

Hope that helps
 
Hi Daniel,

I will be in a position to try your suggesstions at the end of next week.
What is the best way to let you know how I got on?

Thanks
Macca
 
Back
Top