Search Result

Collapse
5 results in 0.0014 seconds.
Keywords
Members
Tags
async
  •  

  • liadmz
    started a topic Handling WebClient Async Upload for multiple sites

    Handling WebClient Async Upload for multiple sites

    Hi All,

    I'm trying to create an app that can upload the same file to multiple site at the same time.

    This is my code till now...
    Code:
    private void UploadFile(string _ip, string _file)
    {
    	//Setup the client and Credentials 
    	WebClient wc = new WebClient();
        wc.Credentials = new NetworkCredential("user", "pass");
    
    	//set the Async routines
    ...
    See more | Go to post

  • dav006mex
    started a topic Socket Async UDP - How to handle client crash

    Socket Async UDP - How to handle client crash

    I have almost no experience with Network programming on C#.
    I have an Asynchronous UDP socket on a server that sends data to clients.

    If one of the client crashes i get the next Socket Error:

    Message = "An existing connection was forcibly closed by the remote host"
    ErrorCode = 10054
    SocketErrorCode = ConnectionReset

    How do you handle this exception???
    I cant close the socket...
    See more | Go to post
    Last edited by tlhintoq; May 19 '10, 10:43 PM. Reason: [CODE] ...Your code goes between code tags [/CODE]

  • Call back from web service using Async return?

    Hi,

    I have a web service that I call from a winforms application. This web service can be cancelled, or completed,and then will call back the win forms application with a response (i.e.
    Code:
    e.Complete == true
    etc).

    This functionality is provided in the VS2005 tools for writing the web service (WCF) so the method called is <MethodName>Asy nc(); which fires off <methodName>Com pleted event when it is done.
    ...
    See more | Go to post

  • alsammud
    started a topic Wcf Service Multithread
    in .NET

    Wcf Service Multithread

    Hy,
    I have a Wcf service tat receives files from clients.
    The contract:
    Code:
    #region ServiceContract   
        [ServiceContract]   
        public interface IWcfService   
        {   
            [OperationContract(AsyncPattern = true)]   
            IAsyncResult BeginSendFile(UploadFile file, AsyncCallback callback, object state);   
            FileTransfered EndSendFile(IAsyncResult ar);
    ...
    See more | Go to post

  • Demi
    Guest started a topic Async=true Page and WebRequest problem

    Async=true Page and WebRequest problem

    I'm trying to use an Async="true" page to do an async HttpWebRequest. My
    code is based on the MSDN example:

    http://msdn2.microsoft.com/en-us/library/21k58ta7.aspx

    The problem I'm having is that I'm not sure how to wait until my response
    has finished arriving. It's jumping to EndGetAsyncData when I first get the
    response instead of when I finish reading it. Looking at the code I can see
    ...
    See more | Go to post
Working...