Update of /cvsroot/firebird/NETProvider/NETProvider_20/source/FirebirdSql/Data/Client/Gds
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20154
Modified Files:
GdsConnection.cs
Log Message:
2005-02-14 Carlos Guzman Alvarez <car...@te...>
* FirebirdSql.Data.Gds/GdsConnection.cs:
- Do not include calls to Socket.SetSocketOption when working
with the .NET Compact Framework that should allow the provider
to do connections when working with the .NET Compact Framework
(Thanks to Fonzetto Michaël for his feedback)
Index: GdsConnection.cs
===================================================================
RCS file: /cvsroot/firebird/NETProvider/NETProvider_20/source/FirebirdSql/Data/Client/Gds/GdsConnection.cs,v
retrieving revision 1.3
retrieving revision 1.4
diff -b -U3 -r1.3 -r1.4
--- GdsConnection.cs 13 Feb 2005 19:18:44 -0000 1.3
+++ GdsConnection.cs 14 Feb 2005 13:26:34 -0000 1.4
@@ -81,6 +81,8 @@
SocketType.Stream,
ProtocolType.Tcp);
+#if (!NETCF)
+
// Set Receive Buffer size.
this.socket.SetSocketOption(
SocketOptionLevel.Socket,
@@ -93,7 +95,9 @@
SocketOptionName.SendBuffer,
packetSize);
-#if (!LINUX)
+#endif
+
+#if (NET)
// Disables the Nagle algorithm for send coalescing.
// This seems to be not supported in Linux (using mono::)
this.socket.SetSocketOption(
|