System.IAsyncResult Interface
Information   Base Types   Related Resources

Represents the status of an asynchronous operation.

  • Namespace: System
  • First seen in: .NET v1.0.3705
  • Last seen in: .NET v1.1.4322
  • Last changed in: .NET v1.0.3705
  • Assembly: mscorlib.dll

  • View this type on MSDN
  • View this type on WinFX 247
    Articles (36)Discussions (393)MembersRotorChanges
    Discussions

    Page: 12345678910111213141516
    Losing Asynchronous State Object
    microsoft.public.dotnet.framework
    I have some code that reads data asynchronously off of a socket. I use a state object to store the data read from the socket. If I don't find a terminating character in my data I re read asychronously from the socket again adjusting the offset in the buffer appropriately. However, I am seeing multiple state objects. For the first read I get a state object then put that object back on the read, the...
    major problem with web service on SOME machines
    microsoft.public.dotnet.framework.aspnet.webservices
    i have a web service installed on various computers. some XP, some 2k. there is no rhyme or reason to which ones work and which ones don't. i get a "client response of 'text/html', but expected 'text/xml'. the client is connecting to the local machine. i made the directory with the web service having no security and 'everyone' has full control. i can't find what it is. i've reinstalled everything,...
    microsoft example not compiling
    microsoft.public.dotnet.framework.aspnet
    Hi, ms help://MS.NETFrameworkSDK/cpguidenf/html/cpconhttphandlerregistration.htm #cpconhttphandlerregistrationanchor3 In that page i found exactly what i was looking for: a c# example of an asynchronous http handler implementation. However, after copy pasting the c# example (the async one!), it will not compile! Ofcourse, the first { was forgotten, after namespace. However this message: The type o...
    Multithreaded HTTP requests
    microsoft.public.dotnet.framework
    Hi Chaps, I'm trying to make repeated requests to a web service asyncronously so the server can deal with the requests while the client does another task, then the client can pick up the responses. However when I access any server other than localhost the app only ever returns two responses (this doesn't matter if I point it at my web service or a public page like "http://www.microsoft.com"; it, s...
    Multithreaded Networking App
    microsoft.public.dotnet.framework
    I just wanted to ask if it is an acceptable practice in a multithreaded app to pass a socket back to another thread that has been returned from the Socket.Accept() method? What happens if they socket on the receiving thread is closed? Also, do the connections keep on pending until the socket passed to the other thread is closed? Or can I continue to Accept more connections? Thanks, Nathan Neitzke
    Multithreading
    microsoft.public.dotnet.languages.csharp
    Hello Can someone please tell me what I'm doing wrong? I'm writing an application that should be using callbacks to perform asynchronous calls to the Win32 API. Problem is it never reaches my callback function. Any feedback is appreciated. Also, any references to websites with examples of .NET async multithreading would be appreciated. Thanks in advance. public serverInfo getSession(string servern...
    Multithreading Socket Problem
    microsoft.public.dotnet.languages.csharp
    Hi, I am trying to implement a ping client that is multithreading. The approach I have used is to create a ping class which I instantiate from the main thread and which contains a method "SendPingAsync" that calls the Send method using an asynchronous delegate, so as to queue the send method on the threadpool. Within the send method public void Send(string host, Guid TestGuid) I use the Socket.Sen...
    Network IO Latency - An interesting problem ?
    microsoft.public.dotnet.framework.performance
    Hi, Seeking some thoughts on a communication server developed in c#. Latency is the key topic here, where the server has to process and respond to anything from 100 to 1500, socket connection based requests (Connection orientated: the clients may be connected for any length of time, within a session context. This means typical open/close socket communication is not an option, as in the case of a w...
    Newbie Tcp Class to Multi-threading Class
    microsoft.public.dotnet.general
    How do i convert the following into a fully multithreaded tcp server and remove the two addhandler(linerecieved,ondisconnected), i just know how to remove the addhandler and make it into a separate thread. any help would be appreciated. thanks jim [UI form] Option Strict On Imports System.Threading Imports System.Net.Sockets Imports System.Net Private myThread as thread private mysocket as Tcplist...
    Newbie's Question,Someone help
    microsoft.public.dotnet.languages.csharp
    i copy the code from the Framework SDK,but i can't run it successfully,who can help me,it doesn't report any error,but seems can't receive message from the server,help.. using System; using System.Net; using System.Net.Sockets; using System.Threading; using System.Text; // State object for receiving data from remote device. public class StateObject { public Socket workSocket null; // Client socket...
    Not answered: Asynch. Read change Beta -> R1?
    ASPFriends.com 'ngfx-io' list
    Copied from [aspngfreeforall] to [ngfx io] by Charles M. Carroll charlesmarkcarroll@yahoo.com This question was posted earlier but was not answered. I show code in my book that worked great in Beta that no longer works in R1, but I can't quite figure out why. The goal is to do an asynch. read of a file, while doing other work (shown as a for loop writing to the console). I've tried playing with bu...
    object returned but properties stay empty...
    microsoft.public.dotnet.framework.aspnet.webservices
    Hey everybody, My Delphi SOAP Server returns an Object of type TTypeObject (home made ; ) The object has just 1 property, and it's a STRING. That doesn't sound too hard I think. However, when I call the function that returns the object, the app. receives the object alright, but the property (STRING) stays empty. I created the client with C# out of Visual Studio.NET and the importing and creation o...
    Once again... (getting frustrated with .NET) Winsock or TCPListener?
    microsoft.public.dotnet.languages.vb
    I previously wrote a program in VB6 with the winsock control, and one of the functions is "DataArrival" where the " .GetData" method is used. This program is interfacing with a weighing scale indicator where the data is being sent to the Windows App every 0.5 seconds over raw sockets. I have tried writing this program in VB .NET using the TcpListener and using a thread, but this is way too slow. I...
    Overloaded WebService Method
    ASPFriends.com 'aspngwebservices' list
    Hi, I have an overloaded method on a web service, which is working fine with synchronous calls by the consumer: localhost.Reporting myService new localhost.Reporting(); DataSet myDataSet; if (condition1) myDataSet myService(); else if (condition2) myDataSet myService(myParam1); else if (condition3) myDataSet myService(myParam2); Now, I have changed the architecture so that the call is now asynchro...
    packets byte into objects.
    microsoft.public.dotnet.languages.csharp
    I'm still just sending data instead of objects themselves. what is being sent looks like this... byte[0] through byte[3] length of next packet byte[0] command to execute byte[1] through length is command parameters. when a packet is recieved I do a switch statement to determine which section of code to execute based on the command. public const byte PACKET IGNORE 0x00; public const byte PACKET CHA...
    performance problem receiving UDP packets
    microsoft.public.dotnet.framework.performance
    Hi, I have written a small application that sends and receives UDP datagrams of a certain size at a certain speed; both work fine on 1 host (sending to localhost and receiving there also). The aim of the application is to test packet loss over a direct ethernet connection in a variety of physical conditions. When I test the applications on 2 different host, the receiver is not able to receive the ...
    Please Help!
    microsoft.public.dotnet.framework.aspnet
    I have a WebForm that has a timer and loads simple string from web service every n minutes. It calls the method GetText asynchronously and in my callback method I fill Label1 (WebControl) with text. I've traced the code and saw that I've got the text (that meens that web service is not a problem). Problem is in code line 'Label1.Text text;' I'm new in ASP so I don't fully understand the diference ...
    Please help, Sockets / Threading
    microsoft.public.dotnet.languages.vb
    Hello Everyone, I am making an instant messenger program. I have used the MSDN sockets example to get started with this. I have transfered the code that is found within this project into a class and can access it fine. The problem is, that the messenger sends a message to the server which relays the message to the correct user: great, but there is a thread running that is reading the incomming dat...
    Porting code from C++ to C#
    microsoft.public.dotnet.languages.csharp
    I've undertaken a project to port a friends C windows based MUD to C#, mainly so i can gain some experiance in Socket and Threading under C#. i've got a few questions firt off 1) i've noticed that there is no room made for global variables in C#, this also applies for the use of #define in C 2) i'm looking to migrate the file storage to an XML based system, i'm comfortable with XML however accessi...
    Posting an event
    microsoft.public.dotnet.languages.vb
    New to VB... What is the VB syntax for posting a Windows event? For example, to have an event fire AFTER a form loads, I'd add a posted call to a "post load" event, from "load". What is the VB syntax for that deferred call? Raiseevent seems to be synchronous, as does just calling the handler subroutine. Also, how do I defer processing to allow windows to process incomplete events, eg., painting? T...
    Problem about Asynchronous Client,is there an Expert can help out,thanks a lot
    microsoft.public.dotnet.languages.csharp
    i don't what's wrong with " if (bytesRead 0)....at receive" the else will not be executed always,somebody help!!! using System; using System.Threading; using System.Text; using System.Net; using System.Net.Sockets; public class StateObject { public int BufferSize 512; public StringBuilder sb new StringBuilder(); public Socket worksocket null; public byte[] buffer new byte[512]; } public class Asyn...
    Problem on Internet with proxies from proxies
    microsoft.public.dotnet.framework.remoting
    I have a problem which shows up with Internet remoting, and not with Intranet remoting. I have marshalled a MarshalByRefObject object on a remote server using RemotingServices.Marshal, with an HTTP channel on port 8086. I get the object (Object1) in the client, and call a method on Object1 which returns another MarshalByRefObject (Object2) which is on the server. When I call a method of Object2, w...
    problem using AsyncCallBack
    microsoft.public.dotnet.faqs
    I'm porting a vb6/winsock app. ( that reads the messages from a newsgroup server) to .net and ran into some problems using AsyncCallBack() here's what's happening i'm using tcpclient() after connecting to the server the first command executed is "MODE READER" the second command is "GROUP groupname " the problem occurs while executing the second command, if i switch the commands, the result is the ...
    Problem with large Dimeattactment
    microsoft.public.dotnet.framework.webservices.enhancements
    Hi I'm quite new to the WSE world, so bear over if the question is total newbie. I've been reading lots of articles but haven't found what I was looking for. I have a problem with the DimeAttachment and large files. I have created a SoapService (using soap.tcp) where SoapClients are able to connect and get data. Well that part works like a charm, but now I'm trying to implement a way to upload/dow...
    Problem with threads
    microsoft.public.dotnet.framework.windowsforms
    Dudes i have few questions. Help me out . A) Can any body tell me what is the best why call methods Asynchronously. 1)Threading namespace. (Thread and ThreadStart Objects) 2)Delegates (Asynchronous calls using delegates beginInvoke/EndInvoke methods). 3)And what are the pros/cons of both. B) How to return data when using threads.(Thread and ThreadStart Objects) Currently i am using Threading names...
    Ad
    MBR BootFX
    Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
     
     Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
    Contact Us - Terms of Use - Privacy Policy - www.dotnet247.com