dotgnu-pnet-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Dotgnu-pnet-commits] CVS: pnetlib/System/Net/Sockets Socket.cs,1.13,1.1


From: Rhys Weatherley <address@hidden>
Subject: [Dotgnu-pnet-commits] CVS: pnetlib/System/Net/Sockets Socket.cs,1.13,1.14
Date: Thu, 03 Apr 2003 00:56:19 -0500

Update of /cvsroot/dotgnu-pnet/pnetlib/System/Net/Sockets
In directory subversions:/tmp/cvs-serv31562/System/Net/Sockets

Modified Files:
        Socket.cs 
Log Message:


Wrong return types for "EndSend" and "EndSendTo".


Index: Socket.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/System/Net/Sockets/Socket.cs,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -r1.13 -r1.14
*** Socket.cs   3 Apr 2003 05:40:44 -0000       1.13
--- Socket.cs   3 Apr 2003 05:56:17 -0000       1.14
***************
*** 263,267 ****
                                                        case 
AsyncOperation.Send:
                                                        {
!                                                               
socket.Send(buffer, offset, count, flags);
                                                        }
                                                        break;
--- 263,268 ----
                                                        case 
AsyncOperation.Send:
                                                        {
!                                                               result = 
socket.Send
!                                                                       
(buffer, offset, count, flags);
                                                        }
                                                        break;
***************
*** 269,273 ****
                                                        case 
AsyncOperation.SendTo:
                                                        {
!                                                               socket.SendTo
                                                                        
(buffer, offset, count, flags, remoteEP);
                                                        }
--- 270,274 ----
                                                        case 
AsyncOperation.SendTo:
                                                        {
!                                                               result = 
socket.SendTo
                                                                        
(buffer, offset, count, flags, remoteEP);
                                                        }
***************
*** 546,550 ****
  
        // End an asynchronous send operation.
!       public void EndSend(IAsyncResult asyncResult)
                        {
                                if(asyncResult == null)
--- 547,551 ----
  
        // End an asynchronous send operation.
!       public int EndSend(IAsyncResult asyncResult)
                        {
                                if(asyncResult == null)
***************
*** 558,563 ****
                                else
                                {
!                                       ((AsyncControl)asyncResult).Wait
!                                               (this, AsyncOperation.Send);
                                }
                        }
--- 559,565 ----
                                else
                                {
!                                       AsyncControl async = 
(AsyncControl)asyncResult;
!                                       async.Wait(this, AsyncOperation.Send);
!                                       return async.result;
                                }
                        }
***************
*** 593,597 ****
  
        // End an asynchronous send to operation.
!       public void EndSendTo(IAsyncResult asyncResult)
                        {
                                if(asyncResult == null)
--- 595,599 ----
  
        // End an asynchronous send to operation.
!       public int EndSendTo(IAsyncResult asyncResult)
                        {
                                if(asyncResult == null)
***************
*** 605,610 ****
                                else
                                {
!                                       ((AsyncControl)asyncResult).Wait
!                                               (this, AsyncOperation.SendTo);
                                }
                        }
--- 607,613 ----
                                else
                                {
!                                       AsyncControl async = 
(AsyncControl)asyncResult;
!                                       async.Wait(this, AsyncOperation.SendTo);
!                                       return async.result;
                                }
                        }





reply via email to

[Prev in Thread] Current Thread [Next in Thread]