[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[dotgnu-pnet-commits] pnetlib ChangeLog System/Net/AuthenticationSche...
From: |
Klaus Treichel |
Subject: |
[dotgnu-pnet-commits] pnetlib ChangeLog System/Net/AuthenticationSche... |
Date: |
Wed, 17 Jan 2007 12:58:14 +0000 |
CVSROOT: /cvsroot/dotgnu-pnet
Module name: pnetlib
Changes by: Klaus Treichel <ktreichel> 07/01/17 12:58:14
Modified files:
. : ChangeLog
Added files:
System/Net : AuthenticationSchemeSelector.cs
AuthenticationSchemes.cs BindIPEndPoint.cs
DecompressionMethods.cs
DownloadDataCompletedEventArgs.cs
DownloadDataCompletedEventHandler.cs
DownloadProgressChangedEventArgs.cs
DownloadProgressChangedEventHandler.cs
DownloadStringCompletedEventArgs.cs
DownloadStringCompletedEventHandler.cs
FtpStatusCode.cs HttpRequestHeader.cs
HttpResponseHeader.cs
OpenReadCompletedEventArgs.cs
OpenReadCompletedEventHandler.cs
OpenWriteCompletedEventArgs.cs
OpenWriteCompletedEventHandler.cs
UploadDataCompletedEventArgs.cs
UploadDataCompletedEventHandler.cs
UploadFileCompletedEventArgs.cs
UploadFileCompletedEventHandler.cs
UploadProgressChangedEventArgs.cs
UploadProgressChangedEventHandler.cs
UploadStringCompletedEventArgs.cs
UploadStringCompletedEventHandler.cs
UploadValuesCompletedEventArgs.cs
UploadValuesCompletedEventHandler.cs
Log message:
Add some 2.0 stuff in the System.Net namespace.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/pnetlib/ChangeLog?cvsroot=dotgnu-pnet&r1=1.2462&r2=1.2463
http://cvs.savannah.gnu.org/viewcvs/pnetlib/System/Net/AuthenticationSchemeSelector.cs?cvsroot=dotgnu-pnet&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/pnetlib/System/Net/AuthenticationSchemes.cs?cvsroot=dotgnu-pnet&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/pnetlib/System/Net/BindIPEndPoint.cs?cvsroot=dotgnu-pnet&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/pnetlib/System/Net/DecompressionMethods.cs?cvsroot=dotgnu-pnet&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/pnetlib/System/Net/DownloadDataCompletedEventArgs.cs?cvsroot=dotgnu-pnet&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/pnetlib/System/Net/DownloadDataCompletedEventHandler.cs?cvsroot=dotgnu-pnet&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/pnetlib/System/Net/DownloadProgressChangedEventArgs.cs?cvsroot=dotgnu-pnet&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/pnetlib/System/Net/DownloadProgressChangedEventHandler.cs?cvsroot=dotgnu-pnet&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/pnetlib/System/Net/DownloadStringCompletedEventArgs.cs?cvsroot=dotgnu-pnet&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/pnetlib/System/Net/DownloadStringCompletedEventHandler.cs?cvsroot=dotgnu-pnet&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/pnetlib/System/Net/FtpStatusCode.cs?cvsroot=dotgnu-pnet&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/pnetlib/System/Net/HttpRequestHeader.cs?cvsroot=dotgnu-pnet&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/pnetlib/System/Net/HttpResponseHeader.cs?cvsroot=dotgnu-pnet&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/pnetlib/System/Net/OpenReadCompletedEventArgs.cs?cvsroot=dotgnu-pnet&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/pnetlib/System/Net/OpenReadCompletedEventHandler.cs?cvsroot=dotgnu-pnet&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/pnetlib/System/Net/OpenWriteCompletedEventArgs.cs?cvsroot=dotgnu-pnet&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/pnetlib/System/Net/OpenWriteCompletedEventHandler.cs?cvsroot=dotgnu-pnet&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/pnetlib/System/Net/UploadDataCompletedEventArgs.cs?cvsroot=dotgnu-pnet&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/pnetlib/System/Net/UploadDataCompletedEventHandler.cs?cvsroot=dotgnu-pnet&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/pnetlib/System/Net/UploadFileCompletedEventArgs.cs?cvsroot=dotgnu-pnet&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/pnetlib/System/Net/UploadFileCompletedEventHandler.cs?cvsroot=dotgnu-pnet&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/pnetlib/System/Net/UploadProgressChangedEventArgs.cs?cvsroot=dotgnu-pnet&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/pnetlib/System/Net/UploadProgressChangedEventHandler.cs?cvsroot=dotgnu-pnet&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/pnetlib/System/Net/UploadStringCompletedEventArgs.cs?cvsroot=dotgnu-pnet&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/pnetlib/System/Net/UploadStringCompletedEventHandler.cs?cvsroot=dotgnu-pnet&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/pnetlib/System/Net/UploadValuesCompletedEventArgs.cs?cvsroot=dotgnu-pnet&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/pnetlib/System/Net/UploadValuesCompletedEventHandler.cs?cvsroot=dotgnu-pnet&rev=1.1
Patches:
Index: ChangeLog
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/ChangeLog,v
retrieving revision 1.2462
retrieving revision 1.2463
diff -u -b -r1.2462 -r1.2463
--- ChangeLog 16 Jan 2007 18:11:39 -0000 1.2462
+++ ChangeLog 17 Jan 2007 12:58:13 -0000 1.2463
@@ -1,3 +1,33 @@
+2007-01-17 Klaus Treichel <address@hidden>
+
+ * System/Net/AuthenticationSchemeSelector.cs,
+ System/Net/AuthenticationSchemes.cs, System/Net/BindIPEndPoint.cs,
+ System/Net/DecompressionMethods.cs,
+ System/Net/DownloadDataCompletedEventArgs.cs,
+ System/Net/DownloadDataCompletedEventHandler.cs,
+ System/Net/DownloadProgressChangedEventArgs.cs,
+ System/Net/DownloadProgressChangedEventHandler.cs,
+ System/Net/DownloadStringCompletedEventArgs.cs,
+ System/Net/DownloadStringCompletedEventHandler.cs,
+ System/Net/FtpStatusCode.cs,
+ System/Net/HttpRequestHeader.cs,
+ System/Net/HttpResponseHeader.cs,
+ System/Net/OpenReadCompletedEventArgs.cs,
+ System/Net/OpenReadCompletedEventHandler.cs,
+ System/Net/OpenWriteCompletedEventArgs.cs,
+ System/Net/OpenWriteCompletedEventHandler.cs,
+ System/Net/UploadDataCompletedEventArgs.cs,
+ System/Net/UploadDataCompletedEventHandler.cs,
+ System/Net/UploadFileCompletedEventArgs.cs,
+ System/Net/UploadFileCompletedEventHandler.cs,
+ System/Net/UploadProgressChangedEventArgs.cs,
+ System/Net/UploadProgressChangedEventHandler.cs,
+ System/Net/UploadStringCompletedEventArgs.cs,
+ System/Net/UploadStringCompletedEventHandler.cs,
+ System/Net/UploadValuesCompletedEventArgs.cs,
+ System/Net/UploadValuesCompletedEventHandler.cs: Add .NET 2.0 enums and
+ delegates in the System.Net namespace.
+
2007-01-16 Klaus Treichel <address@hidden>
* runtime/System/IO/FileStream.cs: Writing in a read/write filestream
after
Index: System/Net/AuthenticationSchemeSelector.cs
===================================================================
RCS file: System/Net/AuthenticationSchemeSelector.cs
diff -N System/Net/AuthenticationSchemeSelector.cs
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ System/Net/AuthenticationSchemeSelector.cs 17 Jan 2007 12:58:13 -0000
1.1
@@ -0,0 +1,31 @@
+/*
+ * AuthenticationSchemeSelector.cs - Implementation of the
+ * "System.Net.AuthenticationSchemeSelector" class.
+ *
+ * Copyright (C) 2003 Southern Storm Software, Pty Ltd.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
+namespace System.Net
+{
+
+#if CONFIG_FRAMEWORK_2_0 && !CONFIG_COMPACT_FRAMEWORK
+
+public delegate AuthenticationSchemes AuthenticationSchemeSelector();
+
+#endif // CONFIG_FRAMEWORK_2_0 && !CONFIG_COMPACT_FRAMEWORK
+
+}; //namespace System.Net
Index: System/Net/AuthenticationSchemes.cs
===================================================================
RCS file: System/Net/AuthenticationSchemes.cs
diff -N System/Net/AuthenticationSchemes.cs
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ System/Net/AuthenticationSchemes.cs 17 Jan 2007 12:58:13 -0000 1.1
@@ -0,0 +1,41 @@
+/*
+ * AuthenticationSchemes.cs - Implementation of the
"System.Net.AuthenticationSchemes" class.
+ *
+ * Copyright (C) 2007 Southern Storm Software, Pty Ltd.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
+namespace System.Net
+{
+
+#if CONFIG_FRAMEWORK_2_0 && !CONFIG_COMPACT_FRAMEWORK
+
+[Flags]
+public enum AuthenticationSchemes
+{
+ None = 0,
+ Digest = 1,
+ Negotiate = 2,
+ Ntlm = 4,
+ IntegratedWindowsAuthentication = Negotiate | Ntlm,
+ Basic = 8,
+ Anonymous = 32768
+
+}; // enum AuthenticationSchemes
+
+#endif // CONFIG_FRAMEWORK_2_0 && !CONFIG_COMPACT_FRAMEWORK
+
+}; // namespace System.Net
Index: System/Net/BindIPEndPoint.cs
===================================================================
RCS file: System/Net/BindIPEndPoint.cs
diff -N System/Net/BindIPEndPoint.cs
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ System/Net/BindIPEndPoint.cs 17 Jan 2007 12:58:13 -0000 1.1
@@ -0,0 +1,32 @@
+/*
+ * BindIPEndPoint.cs - Implementation of the "System.Net.BindIPEndPoint" class.
+ *
+ * Copyright (C) 2003 Southern Storm Software, Pty Ltd.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
+namespace System.Net
+{
+
+#if CONFIG_FRAMEWORK_2_0 && !CONFIG_COMPACT_FRAMEWORK
+
+public delegate IPEndPoint BindIPEndPoint(ServicePoint servicePoint,
+
IPEndPoint remoteEndPoint,
+
int retryCount);
+
+#endif // CONFIG_FRAMEWORK_2_0 && !CONFIG_COMPACT_FRAMEWORK
+
+}; //namespace System.Net
Index: System/Net/DecompressionMethods.cs
===================================================================
RCS file: System/Net/DecompressionMethods.cs
diff -N System/Net/DecompressionMethods.cs
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ System/Net/DecompressionMethods.cs 17 Jan 2007 12:58:13 -0000 1.1
@@ -0,0 +1,36 @@
+/*
+ * DecompressionMethods.cs - Implementation of the
"System.Net.DecompressionMethods" class.
+ *
+ * Copyright (C) 2007 Southern Storm Software, Pty Ltd.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
+namespace System.Net
+{
+
+#if CONFIG_FRAMEWORK_2_0
+
+[Flags]
+public enum DecompressionMethods
+{
+ None = 0,
+ GZip = 1,
+ Deflate = 2
+}; // enum DecompressionMethods
+
+#endif // CONFIG_FRAMEWORK_2_0
+
+}; // namespace System.Net
Index: System/Net/DownloadDataCompletedEventArgs.cs
===================================================================
RCS file: System/Net/DownloadDataCompletedEventArgs.cs
diff -N System/Net/DownloadDataCompletedEventArgs.cs
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ System/Net/DownloadDataCompletedEventArgs.cs 17 Jan 2007 12:58:13
-0000 1.1
@@ -0,0 +1,55 @@
+/*
+ * DownloadDataCompletedEventArgs.cs - Implementation of the
+ * "System.Net.DownloadDataCompletedEventArgs" class.
+ *
+ * Copyright (C) 2004 Southern Storm Software, Pty Ltd.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
+namespace System.Net
+{
+
+#if CONFIG_COMPONENT_MODEL && CONFIG_FRAMEWORK_2_0 && !CONFIG_COMPACT_FRAMEWORK
+
+using System.ComponentModel;
+
+public class DownloadDataCompletedEventArgs : AsyncCompletedEventArgs
+{
+ // Internal state.
+ private byte[] result;
+
+ // Constructors.
+ internal DownloadDataCompletedEventArgs(Exception error, bool
cancelled, Object userState, byte[] result)
+ : base(error, cancelled, userState)
+
+ {
+ this.result = result;
+ }
+
+ // Get the Data downloaded
+ public byte[] Result
+ {
+ get
+ {
+ return result;
+ }
+ }
+
+}; // class DownloadDataCompletedEventArgs
+
+#endif // CONFIG_COMPONENT_MODEL && CONFIG_FRAMEWORK_2_0 &&
!CONFIG_COMPACT_FRAMEWORK
+
+}; // namespace System.Net
Index: System/Net/DownloadDataCompletedEventHandler.cs
===================================================================
RCS file: System/Net/DownloadDataCompletedEventHandler.cs
diff -N System/Net/DownloadDataCompletedEventHandler.cs
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ System/Net/DownloadDataCompletedEventHandler.cs 17 Jan 2007 12:58:13
-0000 1.1
@@ -0,0 +1,32 @@
+/*
+ * DownloadDataCompletedEventHandler.cs - Implementation of the
+ * "System.Net.DownloadDataCompletedEventHandler" class.
+ *
+ * Copyright (C) 2003 Southern Storm Software, Pty Ltd.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
+namespace System.Net
+{
+
+#if CONFIG_FRAMEWORK_2_0 && !CONFIG_COMPACT_FRAMEWORK
+
+public delegate void DownloadDataCompletedEventHandler(Object sender,
+
DownloadDataCompletedEventArgs e);
+
+#endif // CONFIG_FRAMEWORK_2_0 && !CONFIG_COMPACT_FRAMEWORK
+
+}; //namespace System.Net
Index: System/Net/DownloadProgressChangedEventArgs.cs
===================================================================
RCS file: System/Net/DownloadProgressChangedEventArgs.cs
diff -N System/Net/DownloadProgressChangedEventArgs.cs
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ System/Net/DownloadProgressChangedEventArgs.cs 17 Jan 2007 12:58:13
-0000 1.1
@@ -0,0 +1,69 @@
+/*
+ * DownloadProgressChangedEventArgs.cs - Implementation of the
+ * "System.Net.DownloadProgressChangedEventArgs" class.
+ *
+ * Copyright (C) 2007 Southern Storm Software, Pty Ltd.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
+namespace System.Net
+{
+
+#if CONFIG_COMPONENT_MODEL && CONFIG_FRAMEWORK_2_0 && !CONFIG_COMPACT_FRAMEWORK
+
+using System.ComponentModel;
+
+public class DownloadProgressChangedEventArgs : ProgressChangedEventArgs
+{
+ // Internal state.
+ private long bytesReceived;
+ private long totalBytesToReceive;
+
+ // Constructors.
+ internal DownloadProgressChangedEventArgs(long bytesReceived,
+
long totalBytesToReceive,
+
Object userState)
+ : base((int)(bytesReceived == 0 ? 0
+ : (int)(totalBytesToReceive / bytesReceived) * 100),
userState)
+
+ {
+ this.bytesReceived = bytesReceived;
+ this.totalBytesToReceive = totalBytesToReceive;
+ }
+
+ // Get the number of bytes reveived.
+ public long BytesReceived
+ {
+ get
+ {
+ return bytesReceived;
+ }
+ }
+
+ // Get the total number of bytes to reveive.
+ public long TotalBytesToReceive
+ {
+ get
+ {
+ return totalBytesToReceive;
+ }
+ }
+
+}; // class DownloadDataCompletedEventArgs
+
+#endif // CONFIG_COMPONENT_MODEL && CONFIG_FRAMEWORK_2_0 &&
!CONFIG_COMPACT_FRAMEWORK
+
+}; // namespace System.Net
Index: System/Net/DownloadProgressChangedEventHandler.cs
===================================================================
RCS file: System/Net/DownloadProgressChangedEventHandler.cs
diff -N System/Net/DownloadProgressChangedEventHandler.cs
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ System/Net/DownloadProgressChangedEventHandler.cs 17 Jan 2007 12:58:13
-0000 1.1
@@ -0,0 +1,32 @@
+/*
+ * DownloadProgressChangedEventHandler.cs - Implementation of the
+ * "System.Net.DownloadProgressChangedEventHandler" class.
+ *
+ * Copyright (C) 2003 Southern Storm Software, Pty Ltd.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
+namespace System.Net
+{
+
+#if CONFIG_FRAMEWORK_2_0 && !CONFIG_COMPACT_FRAMEWORK
+
+public delegate void DownloadProgressChangedEventHandler(Object sender,
+
DownloadProgressChangedEventArgs e);
+
+#endif // CONFIG_FRAMEWORK_2_0 && !CONFIG_COMPACT_FRAMEWORK
+
+}; //namespace System.Net
Index: System/Net/DownloadStringCompletedEventArgs.cs
===================================================================
RCS file: System/Net/DownloadStringCompletedEventArgs.cs
diff -N System/Net/DownloadStringCompletedEventArgs.cs
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ System/Net/DownloadStringCompletedEventArgs.cs 17 Jan 2007 12:58:14
-0000 1.1
@@ -0,0 +1,55 @@
+/*
+ * DownloadStringCompletedEventArgs.cs - Implementation of the
+ * "System.Net.DownloadStringCompletedEventArgs" class.
+ *
+ * Copyright (C) 2007 Southern Storm Software, Pty Ltd.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
+namespace System.Net
+{
+
+#if CONFIG_COMPONENT_MODEL && CONFIG_FRAMEWORK_2_0 && !CONFIG_COMPACT_FRAMEWORK
+
+using System.ComponentModel;
+
+public class DownloadStringCompletedEventArgs : AsyncCompletedEventArgs
+{
+ // Internal state.
+ private String result;
+
+ // Constructors.
+ internal DownloadStringCompletedEventArgs(Exception error, bool
cancelled, Object userState, String result)
+ : base(error, cancelled, userState)
+
+ {
+ this.result = result;
+ }
+
+ // Get the Data downloaded
+ public String Result
+ {
+ get
+ {
+ return result;
+ }
+ }
+
+}; // class DownloadStringCompletedEventArgs
+
+#endif // CONFIG_COMPONENT_MODEL && CONFIG_FRAMEWORK_2_0 &&
!CONFIG_COMPACT_FRAMEWORK
+
+}; // namespace System.Net
Index: System/Net/DownloadStringCompletedEventHandler.cs
===================================================================
RCS file: System/Net/DownloadStringCompletedEventHandler.cs
diff -N System/Net/DownloadStringCompletedEventHandler.cs
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ System/Net/DownloadStringCompletedEventHandler.cs 17 Jan 2007 12:58:14
-0000 1.1
@@ -0,0 +1,32 @@
+/*
+ * DownloadStringCompletedEventHandler.cs - Implementation of the
+ * "System.Net.DownloadStringCompletedEventHandler" class.
+ *
+ * Copyright (C) 2003 Southern Storm Software, Pty Ltd.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
+namespace System.Net
+{
+
+#if CONFIG_FRAMEWORK_2_0 && !CONFIG_COMPACT_FRAMEWORK
+
+public delegate void DownloadStringCompletedEventHandler(Object sender,
+
DownloadStringCompletedEventArgs e);
+
+#endif // CONFIG_FRAMEWORK_2_0 && !CONFIG_COMPACT_FRAMEWORK
+
+}; //namespace System.Net
Index: System/Net/FtpStatusCode.cs
===================================================================
RCS file: System/Net/FtpStatusCode.cs
diff -N System/Net/FtpStatusCode.cs
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ System/Net/FtpStatusCode.cs 17 Jan 2007 12:58:14 -0000 1.1
@@ -0,0 +1,69 @@
+/*
+ * FtpStatusCode.cs - Implementation of the "System.Net.FtpStatusCode" class.
+ *
+ * Copyright (C) 2007 Southern Storm Software, Pty Ltd.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
+namespace System.Net
+{
+
+#if CONFIG_FRAMEWORK_2_0 && !CONFIG_COMPACT_FRAMEWORK
+
+public enum FtpStatusCode
+{
+ Undefined = 0,
+ RestartMarker = 110,
+ ServiceTemporarilyNotAvailable = 120,
+ DataAlreadyOpen = 125,
+ OpeningData = 150,
+ CommandOk = 200,
+ CommandExtraneous = 202,
+ DirectoryStatus = 212,
+ FileStatus = 213,
+ SystemType = 215,
+ SendUserCommand = 220,
+ ClosingControl = 221,
+ ClosingData = 226,
+ EnteringPassive = 227,
+ LoggedInProceed = 230,
+ ServerWantsSecureSession = 234,
+ FileActionOk = 250,
+ PathnameCreated = 257,
+ SendPasswordCommand = 331,
+ NeedLoginAccount = 332,
+ FileCommandPending = 350,
+ ServiceNotAvailable = 421,
+ CantOpenData = 425,
+ ConnectionClosed = 426,
+ ActionNotTakenFileUnavailableOrBusy = 450,
+ ActionAbortedLocalProcessingError = 451,
+ ActionNotTakenInsufficientSpace = 452,
+ CommandSyntaxError = 500,
+ ArgumentSyntaxError = 501,
+ CommandNotImplemented = 502,
+ BadCommandSequence = 503,
+ NotLoggedIn = 530,
+ AccountNeeded = 532,
+ ActionNotTakenFileUnavailable = 550,
+ ActionAbortedUnknownPageType = 551,
+ FileActionAborted = 552,
+ ActionNotTakenFilenameNotAllowed = 553
+}; // enum FtpStatusCode
+
+#endif // CONFIG_FRAMEWORK_2_0 && !CONFIG_COMPACT_FRAMEWORK
+
+}; // namespace System.Net
Index: System/Net/HttpRequestHeader.cs
===================================================================
RCS file: System/Net/HttpRequestHeader.cs
diff -N System/Net/HttpRequestHeader.cs
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ System/Net/HttpRequestHeader.cs 17 Jan 2007 12:58:14 -0000 1.1
@@ -0,0 +1,73 @@
+/*
+ * HttpRequestHeader.cs - Implementation of the "System.Net.HttpRequestHeader"
class.
+ *
+ * Copyright (C) 2007 Southern Storm Software, Pty Ltd.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
+namespace System.Net
+{
+
+#if CONFIG_FRAMEWORK_2_0 && !CONFIG_COMPACT_FRAMEWORK
+
+public enum HttpRequestHeader
+{
+ CacheControl = 0,
+ Connection = 1,
+ Date = 2,
+ KeepAlive = 3,
+ Pragma = 4,
+ Trailer = 5,
+ TransferEncoding = 6,
+ Upgrade = 7,
+ Via = 8,
+ Warning = 9,
+ Allow = 10,
+ ContentLength = 11,
+ ContentType = 12,
+ ContentEncoding = 13,
+ ContentLanguage = 14,
+ ContentLocation = 15,
+ ContentMd5 = 16,
+ ContentRange = 17,
+ Expires = 18,
+ LastModified = 19,
+ Accept = 20,
+ AcceptCharset = 21,
+ AcceptEncoding = 22,
+ AcceptLanguage = 23,
+ Authorization = 24,
+ Cookie = 25,
+ Expect = 26,
+ From = 27,
+ Host = 28,
+ IfMatch = 29,
+ IfModifiedSince = 30,
+ IfNoneMatch = 31,
+ IfRange = 32,
+ IfUnmodifiedSince = 33,
+ MaxForwards = 34,
+ ProxyAuthorization = 35,
+ Referer = 36,
+ Range = 37,
+ Te = 38,
+ Translate = 39,
+ UserAgent = 40
+}; // enum HttpRequestHeader
+
+#endif // CONFIG_FRAMEWORK_2_0 && !CONFIG_COMPACT_FRAMEWORK
+
+}; // namespace System.Net
Index: System/Net/HttpResponseHeader.cs
===================================================================
RCS file: System/Net/HttpResponseHeader.cs
diff -N System/Net/HttpResponseHeader.cs
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ System/Net/HttpResponseHeader.cs 17 Jan 2007 12:58:14 -0000 1.1
@@ -0,0 +1,62 @@
+/*
+ * HttpResponseHeader.cs - Implementation of the
"System.Net.HttpResponseHeader" class.
+ *
+ * Copyright (C) 2007 Southern Storm Software, Pty Ltd.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
+namespace System.Net
+{
+
+#if CONFIG_FRAMEWORK_2_0 && !CONFIG_COMPACT_FRAMEWORK
+
+public enum HttpResponseHeader
+{
+ CacheControl = 0,
+ Connection = 1,
+ Date = 2,
+ KeepAlive = 3,
+ Pragma = 4,
+ Trailer = 5,
+ TransferEncoding = 6,
+ Upgrade = 7,
+ Via = 8,
+ Warning = 9,
+ Allow = 10,
+ ContentLength = 11,
+ ContentType = 12,
+ ContentEncoding = 13,
+ ContentLanguage = 14,
+ ContentLocation = 15,
+ ContentMd5 = 16,
+ ContentRange = 17,
+ Expires = 18,
+ LastModified = 19,
+ AcceptRanges = 20,
+ Age = 21,
+ ETag = 22,
+ Location = 23,
+ ProxyAuthenticate = 24,
+ RetryAfter = 25,
+ Server = 26,
+ SetCookie = 27,
+ Vary = 28,
+ WwwAuthenticate = 29
+}; // enum HttpResponseHeader
+
+#endif // CONFIG_FRAMEWORK_2_0 && !CONFIG_COMPACT_FRAMEWORK
+
+}; // namespace System.Net
Index: System/Net/OpenReadCompletedEventArgs.cs
===================================================================
RCS file: System/Net/OpenReadCompletedEventArgs.cs
diff -N System/Net/OpenReadCompletedEventArgs.cs
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ System/Net/OpenReadCompletedEventArgs.cs 17 Jan 2007 12:58:14 -0000
1.1
@@ -0,0 +1,56 @@
+/*
+ * OpenReadCompletedEventArgs.cs - Implementation of the
+ * "System.Net.OpenReadCompletedEventArgs" class.
+ *
+ * Copyright (C) 2007 Southern Storm Software, Pty Ltd.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
+namespace System.Net
+{
+
+#if CONFIG_COMPONENT_MODEL && CONFIG_FRAMEWORK_2_0 && !CONFIG_COMPACT_FRAMEWORK
+
+using System.ComponentModel;
+using System.IO;
+
+public class OpenReadCompletedEventArgs : AsyncCompletedEventArgs
+{
+ // Internal state.
+ private Stream result;
+
+ // Constructors.
+ internal OpenReadCompletedEventArgs(Exception error, bool cancelled,
Object userState, Stream result)
+ : base(error, cancelled, userState)
+
+ {
+ this.result = result;
+ }
+
+ // Get the stream that contains the data downloaded async.
+ public Stream Result
+ {
+ get
+ {
+ return result;
+ }
+ }
+
+}; // class OpenReadCompletedEventArgs
+
+#endif // CONFIG_COMPONENT_MODEL && CONFIG_FRAMEWORK_2_0 &&
!CONFIG_COMPACT_FRAMEWORK
+
+}; // namespace System.Net
Index: System/Net/OpenReadCompletedEventHandler.cs
===================================================================
RCS file: System/Net/OpenReadCompletedEventHandler.cs
diff -N System/Net/OpenReadCompletedEventHandler.cs
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ System/Net/OpenReadCompletedEventHandler.cs 17 Jan 2007 12:58:14 -0000
1.1
@@ -0,0 +1,32 @@
+/*
+ * OpenReadCompletedEventHandler.cs - Implementation of the
+ * "System.Net.OpenReadCompletedEventHandler" class.
+ *
+ * Copyright (C) 2003 Southern Storm Software, Pty Ltd.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
+namespace System.Net
+{
+
+#if CONFIG_FRAMEWORK_2_0 && !CONFIG_COMPACT_FRAMEWORK
+
+public delegate void OpenReadCompletedEventHandler(Object sender,
+
OpenReadCompletedEventArgs e);
+
+#endif // CONFIG_FRAMEWORK_2_0 && !CONFIG_COMPACT_FRAMEWORK
+
+}; //namespace System.Net
Index: System/Net/OpenWriteCompletedEventArgs.cs
===================================================================
RCS file: System/Net/OpenWriteCompletedEventArgs.cs
diff -N System/Net/OpenWriteCompletedEventArgs.cs
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ System/Net/OpenWriteCompletedEventArgs.cs 17 Jan 2007 12:58:14 -0000
1.1
@@ -0,0 +1,56 @@
+/*
+ * OpenWriteCompletedEventArgs.cs - Implementation of the
+ * "System.Net.OpenWriteCompletedEventArgs" class.
+ *
+ * Copyright (C) 2007 Southern Storm Software, Pty Ltd.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
+namespace System.Net
+{
+
+#if CONFIG_COMPONENT_MODEL && CONFIG_FRAMEWORK_2_0 && !CONFIG_COMPACT_FRAMEWORK
+
+using System.ComponentModel;
+using System.IO;
+
+public class OpenWriteCompletedEventArgs : AsyncCompletedEventArgs
+{
+ // Internal state.
+ private Stream result;
+
+ // Constructors.
+ internal OpenWriteCompletedEventArgs(Exception error, bool cancelled,
Object userState, Stream result)
+ : base(error, cancelled, userState)
+
+ {
+ this.result = result;
+ }
+
+ // Get the stream where you can write the data to upload async.
+ public Stream Result
+ {
+ get
+ {
+ return result;
+ }
+ }
+
+}; // class OpenWriteCompletedEventArgs
+
+#endif // CONFIG_COMPONENT_MODEL && CONFIG_FRAMEWORK_2_0 &&
!CONFIG_COMPACT_FRAMEWORK
+
+}; // namespace System.Net
Index: System/Net/OpenWriteCompletedEventHandler.cs
===================================================================
RCS file: System/Net/OpenWriteCompletedEventHandler.cs
diff -N System/Net/OpenWriteCompletedEventHandler.cs
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ System/Net/OpenWriteCompletedEventHandler.cs 17 Jan 2007 12:58:14
-0000 1.1
@@ -0,0 +1,32 @@
+/*
+ * OpenWriteCompletedEventHandler.cs - Implementation of the
+ * "System.Net.OpenWriteCompletedEventHandler" class.
+ *
+ * Copyright (C) 2007 Southern Storm Software, Pty Ltd.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
+namespace System.Net
+{
+
+#if CONFIG_FRAMEWORK_2_0 && !CONFIG_COMPACT_FRAMEWORK
+
+public delegate void OpenWriteCompletedEventHandler(Object sender,
+
OpenWriteCompletedEventArgs e);
+
+#endif // CONFIG_FRAMEWORK_2_0 && !CONFIG_COMPACT_FRAMEWORK
+
+}; //namespace System.Net
Index: System/Net/UploadDataCompletedEventArgs.cs
===================================================================
RCS file: System/Net/UploadDataCompletedEventArgs.cs
diff -N System/Net/UploadDataCompletedEventArgs.cs
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ System/Net/UploadDataCompletedEventArgs.cs 17 Jan 2007 12:58:14 -0000
1.1
@@ -0,0 +1,55 @@
+/*
+ * UploadDataCompletedEventArgs.cs - Implementation of the
+ * "System.Net.UploadDataCompletedEventArgs" class.
+ *
+ * Copyright (C) 2007 Southern Storm Software, Pty Ltd.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
+namespace System.Net
+{
+
+#if CONFIG_COMPONENT_MODEL && CONFIG_FRAMEWORK_2_0 && !CONFIG_COMPACT_FRAMEWORK
+
+using System.ComponentModel;
+
+public class UploadDataCompletedEventArgs : AsyncCompletedEventArgs
+{
+ // Internal state.
+ private byte[] result;
+
+ // Constructors.
+ internal UploadDataCompletedEventArgs(Exception error, bool cancelled,
Object userState, byte[] result)
+ : base(error, cancelled, userState)
+
+ {
+ this.result = result;
+ }
+
+ // Get the server reply to the data upload
+ public byte[] Result
+ {
+ get
+ {
+ return result;
+ }
+ }
+
+}; // class UploadDataCompletedEventArgs
+
+#endif // CONFIG_COMPONENT_MODEL && CONFIG_FRAMEWORK_2_0 &&
!CONFIG_COMPACT_FRAMEWORK
+
+}; // namespace System.Net
Index: System/Net/UploadDataCompletedEventHandler.cs
===================================================================
RCS file: System/Net/UploadDataCompletedEventHandler.cs
diff -N System/Net/UploadDataCompletedEventHandler.cs
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ System/Net/UploadDataCompletedEventHandler.cs 17 Jan 2007 12:58:14
-0000 1.1
@@ -0,0 +1,32 @@
+/*
+ * UploadDataCompletedEventHandler.cs - Implementation of the
+ * "System.Net.UploadDataCompletedEventHandler" class.
+ *
+ * Copyright (C) 2007 Southern Storm Software, Pty Ltd.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
+namespace System.Net
+{
+
+#if CONFIG_FRAMEWORK_2_0 && !CONFIG_COMPACT_FRAMEWORK
+
+public delegate void UploadDataCompletedEventHandler(Object sender,
+
UploadDataCompletedEventArgs e);
+
+#endif // CONFIG_FRAMEWORK_2_0 && !CONFIG_COMPACT_FRAMEWORK
+
+}; //namespace System.Net
Index: System/Net/UploadFileCompletedEventArgs.cs
===================================================================
RCS file: System/Net/UploadFileCompletedEventArgs.cs
diff -N System/Net/UploadFileCompletedEventArgs.cs
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ System/Net/UploadFileCompletedEventArgs.cs 17 Jan 2007 12:58:14 -0000
1.1
@@ -0,0 +1,55 @@
+/*
+ * UploadFileCompletedEventArgs.cs - Implementation of the
+ * "System.Net.UploadFileCompletedEventArgs" class.
+ *
+ * Copyright (C) 2007 Southern Storm Software, Pty Ltd.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
+namespace System.Net
+{
+
+#if CONFIG_COMPONENT_MODEL && CONFIG_FRAMEWORK_2_0 && !CONFIG_COMPACT_FRAMEWORK
+
+using System.ComponentModel;
+
+public class UploadFileCompletedEventArgs : AsyncCompletedEventArgs
+{
+ // Internal state.
+ private byte[] result;
+
+ // Constructors.
+ internal UploadFileCompletedEventArgs(Exception error, bool cancelled,
Object userState, byte[] result)
+ : base(error, cancelled, userState)
+
+ {
+ this.result = result;
+ }
+
+ // Get the server reply to the file upload
+ public byte[] Result
+ {
+ get
+ {
+ return result;
+ }
+ }
+
+}; // class UploadFileCompletedEventArgs
+
+#endif // CONFIG_COMPONENT_MODEL && CONFIG_FRAMEWORK_2_0 &&
!CONFIG_COMPACT_FRAMEWORK
+
+}; // namespace System.Net
Index: System/Net/UploadFileCompletedEventHandler.cs
===================================================================
RCS file: System/Net/UploadFileCompletedEventHandler.cs
diff -N System/Net/UploadFileCompletedEventHandler.cs
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ System/Net/UploadFileCompletedEventHandler.cs 17 Jan 2007 12:58:14
-0000 1.1
@@ -0,0 +1,32 @@
+/*
+ * UploadFileCompletedEventHandler.cs - Implementation of the
+ * "System.Net.UploadFileCompletedEventHandler" class.
+ *
+ * Copyright (C) 2007 Southern Storm Software, Pty Ltd.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
+namespace System.Net
+{
+
+#if CONFIG_FRAMEWORK_2_0 && !CONFIG_COMPACT_FRAMEWORK
+
+public delegate void UploadFileCompletedEventHandler(Object sender,
+
UploadFileCompletedEventArgs e);
+
+#endif // CONFIG_FRAMEWORK_2_0 && !CONFIG_COMPACT_FRAMEWORK
+
+}; //namespace System.Net
Index: System/Net/UploadProgressChangedEventArgs.cs
===================================================================
RCS file: System/Net/UploadProgressChangedEventArgs.cs
diff -N System/Net/UploadProgressChangedEventArgs.cs
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ System/Net/UploadProgressChangedEventArgs.cs 17 Jan 2007 12:58:14
-0000 1.1
@@ -0,0 +1,93 @@
+/*
+ * UploadProgressChangedEventArgs.cs - Implementation of the
+ * "System.Net.UploadProgressChangedEventArgs" class.
+ *
+ * Copyright (C) 2007 Southern Storm Software, Pty Ltd.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
+namespace System.Net
+{
+
+#if CONFIG_COMPONENT_MODEL && CONFIG_FRAMEWORK_2_0 && !CONFIG_COMPACT_FRAMEWORK
+
+using System.ComponentModel;
+
+public class UploadProgressChangedEventArgs : ProgressChangedEventArgs
+{
+ // Internal state.
+ private long bytesReceived;
+ private long bytesSent;
+ private long totalBytesToReceive;
+ private long totalBytesToSend;
+
+ // Constructors.
+ internal UploadProgressChangedEventArgs(long bytesSent,
+
long totalBytesToSend,
+
long bytesReceived,
+
long totalBytesToReceive,
+
Object userState)
+ : base((int)(bytesSent == 0 ? 0
+ : (int)(totalBytesToSend / bytesSent) * 100), userState)
+
+ {
+ this.bytesReceived = bytesReceived;
+ this.bytesSent = bytesSent;
+ this.totalBytesToReceive = totalBytesToReceive;
+ this.totalBytesToSend = totalBytesToSend;
+ }
+
+ // Get the number of bytes reveived.
+ public long BytesReceived
+ {
+ get
+ {
+ return bytesReceived;
+ }
+ }
+
+ // Get the number of bytes sent.
+ public long BytesSent
+ {
+ get
+ {
+ return bytesSent;
+ }
+ }
+
+ // Get the total number of bytes to reveive.
+ public long TotalBytesToReceive
+ {
+ get
+ {
+ return totalBytesToReceive;
+ }
+ }
+
+ // Get the total number of bytes to send.
+ public long TotalBytesToSend
+ {
+ get
+ {
+ return totalBytesToSend;
+ }
+ }
+
+}; // class UploadDataCompletedEventArgs
+
+#endif // CONFIG_COMPONENT_MODEL && CONFIG_FRAMEWORK_2_0 &&
!CONFIG_COMPACT_FRAMEWORK
+
+}; // namespace System.Net
Index: System/Net/UploadProgressChangedEventHandler.cs
===================================================================
RCS file: System/Net/UploadProgressChangedEventHandler.cs
diff -N System/Net/UploadProgressChangedEventHandler.cs
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ System/Net/UploadProgressChangedEventHandler.cs 17 Jan 2007 12:58:14
-0000 1.1
@@ -0,0 +1,32 @@
+/*
+ * UploadProgressChangedEventHandler.cs - Implementation of the
+ * "System.Net.UploadProgressChangedEventHandler" class.
+ *
+ * Copyright (C) 2007 Southern Storm Software, Pty Ltd.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
+namespace System.Net
+{
+
+#if CONFIG_FRAMEWORK_2_0 && !CONFIG_COMPACT_FRAMEWORK
+
+public delegate void UploadProgressChangedEventHandler(Object sender,
+
UploadProgressChangedEventArgs e);
+
+#endif // CONFIG_FRAMEWORK_2_0 && !CONFIG_COMPACT_FRAMEWORK
+
+}; //namespace System.Net
Index: System/Net/UploadStringCompletedEventArgs.cs
===================================================================
RCS file: System/Net/UploadStringCompletedEventArgs.cs
diff -N System/Net/UploadStringCompletedEventArgs.cs
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ System/Net/UploadStringCompletedEventArgs.cs 17 Jan 2007 12:58:14
-0000 1.1
@@ -0,0 +1,55 @@
+/*
+ * UploadStringCompletedEventArgs.cs - Implementation of the
+ * "System.Net.UploadStringCompletedEventArgs" class.
+ *
+ * Copyright (C) 2007 Southern Storm Software, Pty Ltd.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
+namespace System.Net
+{
+
+#if CONFIG_COMPONENT_MODEL && CONFIG_FRAMEWORK_2_0 && !CONFIG_COMPACT_FRAMEWORK
+
+using System.ComponentModel;
+
+public class UploadStringCompletedEventArgs : AsyncCompletedEventArgs
+{
+ // Internal state.
+ private String result;
+
+ // Constructors.
+ internal UploadStringCompletedEventArgs(Exception error, bool
cancelled, Object userState, String result)
+ : base(error, cancelled, userState)
+
+ {
+ this.result = result;
+ }
+
+ // Get the server reply to the string upload
+ public String Result
+ {
+ get
+ {
+ return result;
+ }
+ }
+
+}; // class UploadStringCompletedEventArgs
+
+#endif // CONFIG_COMPONENT_MODEL && CONFIG_FRAMEWORK_2_0 &&
!CONFIG_COMPACT_FRAMEWORK
+
+}; // namespace System.Net
Index: System/Net/UploadStringCompletedEventHandler.cs
===================================================================
RCS file: System/Net/UploadStringCompletedEventHandler.cs
diff -N System/Net/UploadStringCompletedEventHandler.cs
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ System/Net/UploadStringCompletedEventHandler.cs 17 Jan 2007 12:58:14
-0000 1.1
@@ -0,0 +1,32 @@
+/*
+ * UploadStringCompletedEventHandler.cs - Implementation of the
+ * "System.Net.UploadStringCompletedEventHandler" class.
+ *
+ * Copyright (C) 2007 Southern Storm Software, Pty Ltd.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
+namespace System.Net
+{
+
+#if CONFIG_FRAMEWORK_2_0 && !CONFIG_COMPACT_FRAMEWORK
+
+public delegate void UploadStringCompletedEventHandler(Object sender,
+
UploadStringCompletedEventArgs e);
+
+#endif // CONFIG_FRAMEWORK_2_0 && !CONFIG_COMPACT_FRAMEWORK
+
+}; //namespace System.Net
Index: System/Net/UploadValuesCompletedEventArgs.cs
===================================================================
RCS file: System/Net/UploadValuesCompletedEventArgs.cs
diff -N System/Net/UploadValuesCompletedEventArgs.cs
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ System/Net/UploadValuesCompletedEventArgs.cs 17 Jan 2007 12:58:14
-0000 1.1
@@ -0,0 +1,55 @@
+/*
+ * UploadValuesCompletedEventArgs.cs - Implementation of the
+ * "System.Net.UploadValuesCompletedEventArgs" class.
+ *
+ * Copyright (C) 2007 Southern Storm Software, Pty Ltd.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
+namespace System.Net
+{
+
+#if CONFIG_COMPONENT_MODEL && CONFIG_FRAMEWORK_2_0 && !CONFIG_COMPACT_FRAMEWORK
+
+using System.ComponentModel;
+
+public class UploadValuesCompletedEventArgs : AsyncCompletedEventArgs
+{
+ // Internal state.
+ private byte[] result;
+
+ // Constructors.
+ internal UploadValuesCompletedEventArgs(Exception error, bool
cancelled, Object userState, byte[] result)
+ : base(error, cancelled, userState)
+
+ {
+ this.result = result;
+ }
+
+ // Get the server reply to the file upload
+ public byte[] Result
+ {
+ get
+ {
+ return result;
+ }
+ }
+
+}; // class UploadValuesCompletedEventArgs
+
+#endif // CONFIG_COMPONENT_MODEL && CONFIG_FRAMEWORK_2_0 &&
!CONFIG_COMPACT_FRAMEWORK
+
+}; // namespace System.Net
Index: System/Net/UploadValuesCompletedEventHandler.cs
===================================================================
RCS file: System/Net/UploadValuesCompletedEventHandler.cs
diff -N System/Net/UploadValuesCompletedEventHandler.cs
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ System/Net/UploadValuesCompletedEventHandler.cs 17 Jan 2007 12:58:14
-0000 1.1
@@ -0,0 +1,32 @@
+/*
+ * UploadValuesCompletedEventHandler.cs - Implementation of the
+ * "System.Net.UploadValuesCompletedEventHandler" class.
+ *
+ * Copyright (C) 2007 Southern Storm Software, Pty Ltd.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
+namespace System.Net
+{
+
+#if CONFIG_FRAMEWORK_2_0 && !CONFIG_COMPACT_FRAMEWORK
+
+public delegate void UploadValuesCompletedEventHandler(Object sender,
+
UploadValuesCompletedEventArgs e);
+
+#endif // CONFIG_FRAMEWORK_2_0 && !CONFIG_COMPACT_FRAMEWORK
+
+}; //namespace System.Net
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [dotgnu-pnet-commits] pnetlib ChangeLog System/Net/AuthenticationSche...,
Klaus Treichel <=