By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,281 Members | 2,216 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,281 IT Pros & Developers. It's quick & easy.

Aysnchronous socket problem

P: n/a
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
May 24 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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

"Macca" <Ma***@discussions.microsoft.com> wrote in message
news:C5**********************************@microsof t.com...
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

May 24 '06 #2

P: n/a
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

"Daniel" wrote:
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

"Macca" <Ma***@discussions.microsoft.com> wrote in message
news:C5**********************************@microsof t.com...
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


May 26 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.