[Boxbackup-dev] new Client in C# or VB.NET

Kai Liebenau Kai.Liebenau at gmx.net
Wed Oct 29 22:09:47 GMT 2014


Hi Chris,

i have a new patch for WinNamedPipeStream. The definition for the Method
Write ist bad, you have the underlining virtual Method from the IOStream
changed.
In the environment for MSVC 2010 i have a problem in the class
BackupStoreCheck. In the Method CheckAndAddObject is an colision with
the macros read and write of the emu.h file. Do you have any ideas?

By the way, my Ctrl-C Handler works fine, but the
GetLine::GetLineInternal generates an Exception GetLineEOF. I must
search a solution for this.

Cheers, Kai

Am 10.08.2014 um 23:03 schrieb Chris Wilson:
> Hi Kai,
>
> On Sat, 9 Aug 2014, Kai Liebenau wrote:
>
>> i come from germany and found the Box Backup for my raspberry PI. Is
>> the development still in working?
>
> Yes, I am still working on it, but slowly. Other things have taken
> most of my time for the last six months.
>
>> I am planning a client in VB.NET or C # to develop, which is more
>> user friendly than the commandline.Is interest may be published
>> provided it with in your SVN?
>
> Potentially yes, we have a contrib section:
>
> https://www.boxbackup.org/browser/box/trunk/contrib
>
> Please note that there are already a few GUIs, including Boxi and two
> web interfaces. I think Charles Lecklider (copied) has also done some
> work on a Windows GUI interface to Box Backup and may be able to
> provide some assistance.
>
> Cheers, Chris.

-------------- next part --------------
Index: WinNamedPipeStream.cpp
===================================================================
--- WinNamedPipeStream.cpp	(revision 3412)
+++ WinNamedPipeStream.cpp	(working copy)
@@ -91,7 +91,7 @@
 				GetErrorMessage(err));
 			Close();
 			THROW_EXCEPTION(ConnectionException, 
-				Conn_SocketReadError)
+				SocketReadError)
 		}
 	}
 }
@@ -334,7 +334,7 @@
 
 					Close();
 					THROW_EXCEPTION(ConnectionException, 
-						Conn_SocketReadError)
+						SocketReadError)
 				}
 			}
 		}
@@ -394,7 +394,7 @@
 					<< GetErrorMessage(err));
 				Close();
 				THROW_EXCEPTION(ConnectionException, 
-					Conn_SocketReadError)
+					SocketReadError)
 			}
 		}
 	}
@@ -424,7 +424,7 @@
 				BOX_ERROR("Failed to read from control socket: "
 					<< GetErrorMessage(err));
 				THROW_EXCEPTION(ConnectionException, 
-					Conn_SocketReadError)
+					SocketReadError)
 			}
 		}
 		
@@ -446,7 +446,7 @@
 //		Created: 2003/07/31
 //
 // --------------------------------------------------------------------------
-void WinNamedPipeStream::Write(const void *pBuffer, int NBytes)
+void WinNamedPipeStream::Write(const void *pBuffer, int NBytes, int Timeout)
 {
 	if (mSocketHandle == INVALID_HANDLE_VALUE || !mIsConnected) 
 	{
@@ -486,7 +486,7 @@
 			Close();
 
 			THROW_EXCEPTION(ConnectionException, 
-				Conn_SocketWriteError)
+				SocketWriteError)
 		}
 
 		NumBytesWrittenTotal += NumBytesWrittenThisTime;
Index: WinNamedPipeStream.h
===================================================================
--- WinNamedPipeStream.h	(revision 3412)
+++ WinNamedPipeStream.h	(working copy)
@@ -36,7 +36,8 @@
 	// both sides
 	virtual int Read(void *pBuffer, int NBytes, 
 		int Timeout = IOStream::TimeOutInfinite);
-	virtual void Write(const void *pBuffer, int NBytes);
+	virtual void Write(const void *pBuffer, int NBytes,
+		int Timeout = IOStream::TimeOutInfinite);
 	virtual void WriteAllBuffered();
 	virtual void Close();
 	virtual bool StreamDataLeft();


More information about the Boxbackup-dev mailing list