Win Sock Help

  • Thread starter Thread starter Nirosh
  • Start date Start date
N

Nirosh

Hi All,

I need to connect to a XML feed server..

I need to send the user name and password to connect to the server..

Once successfully login the server start sending xml files.. I was able to
write a client for this feed server using windows forms with winsock COM.
But I need this to be a windows service.. I cannot use the winsock in
windows service. I am I missing anything here.. when I try to add the
winsock com to winservice via toolbar of the VSS IDE it just disable the COM
object.

Is there any thing else I can use for this other than winsock COM
?

Thanks,
Nirosh.
 
Nirosh said:
[...]
Is there any thing else I can use for this other than winsock COM
?

You're posting in a C# newsgroup, so I'm going to assume this is managed
C# code. If so, then you should be able to use the Socket class.

I don't see any reason why if you can use Winsock from a regular Forms
application, you wouldn't be able to use it from a service. But since
..NET has a perfectly usable Socket class that implements the same basic
functionality as Winsock (and is in fact, AFAIK, built on top of
Winsock), it seems to me that's what you'd want to use instead, Form
application or service.

Pete
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top