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.16,1.1


From: Rhys Weatherley <address@hidden>
Subject: [Dotgnu-pnet-commits] CVS: pnetlib/System/Net/Sockets Socket.cs,1.16,1.17
Date: Tue, 27 May 2003 22:51:24 -0400

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

Modified Files:
        Socket.cs 
Log Message:


Keep ProtocolType.Unspecified if creating an IrDA socket.


Index: Socket.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/System/Net/Sockets/Socket.cs,v
retrieving revision 1.16
retrieving revision 1.17
diff -C2 -r1.16 -r1.17
*** Socket.cs   28 May 2003 02:12:11 -0000      1.16
--- Socket.cs   28 May 2003 02:51:22 -0000      1.17
***************
*** 62,66 ****
                                        if(protocolType == 
ProtocolType.Unspecified)
                                        {
!                                               protocolType = ProtocolType.Tcp;
                                        }
                                        else if(protocolType != 
ProtocolType.Tcp)
--- 62,70 ----
                                        if(protocolType == 
ProtocolType.Unspecified)
                                        {
!                                               if(addressFamily == 
AddressFamily.InterNetwork ||
!                                                  addressFamily == 
AddressFamily.InterNetworkV6)
!                                               {
!                                                       protocolType = 
ProtocolType.Tcp;
!                                               }
                                        }
                                        else if(protocolType != 
ProtocolType.Tcp)
***************
*** 73,77 ****
                                        if(protocolType == 
ProtocolType.Unspecified)
                                        {
!                                               protocolType = ProtocolType.Udp;
                                        }
                                        else if(protocolType != 
ProtocolType.Udp)
--- 77,85 ----
                                        if(protocolType == 
ProtocolType.Unspecified)
                                        {
!                                               if(addressFamily == 
AddressFamily.InterNetwork ||
!                                                  addressFamily == 
AddressFamily.InterNetworkV6)
!                                               {
!                                                       protocolType = 
ProtocolType.Udp;
!                                               }
                                        }
                                        else if(protocolType != 
ProtocolType.Udp)





reply via email to

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