Win Sock Help

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Nirosh

    #1

    Win Sock Help

    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.


  • Peter Duniho

    #2
    Re: Win Sock Help

    Nirosh wrote:
    [...]
    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

    Comment

    Working...