msnphelper-cvs-commit Mailing List for MSNP Helper API for .NET
Status: Alpha
Brought to you by:
cmyers
You can subscribe to this list here.
| 2002 |
Jan
|
Feb
|
Mar
(6) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|---|
|
From: Chad M. <cm...@us...> - 2002-03-20 05:37:29
|
Update of /cvsroot/msnphelper/msnphelper/src
In directory usw-pr-cvs1:/tmp/cvs-serv25022/src
Modified Files:
ConnectionHandler.cs MSNPEventArgs.cs MimeMessage.cs
Request.cs SwitchboardConnectionHandler.cs
Log Message:
Fixed the 2-line message bug. Forgot license at top of EventArgs and MimeMessage
Index: ConnectionHandler.cs
===================================================================
RCS file: /cvsroot/msnphelper/msnphelper/src/ConnectionHandler.cs,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** ConnectionHandler.cs 18 Mar 2002 03:50:45 -0000 1.5
--- ConnectionHandler.cs 20 Mar 2002 05:37:26 -0000 1.6
***************
*** 401,407 ****
String messageToSend;
if( request.Parameters != null )
! messageToSend = request.Command + " " + transID.ToString() + " " + request.Parameters + "\r\n";
else
! messageToSend = request.Command + " " + transID.ToString() + "\r\n";
byte[] bytesToSend = Encoding.ASCII.GetBytes(messageToSend);
--- 401,410 ----
String messageToSend;
if( request.Parameters != null )
! messageToSend = request.Command + " " + transID.ToString() + " " + request.Parameters;
else
! messageToSend = request.Command + " " + transID.ToString();
!
! if( request.IncludeCRLF )
! messageToSend += "\r\n";
byte[] bytesToSend = Encoding.ASCII.GetBytes(messageToSend);
***************
*** 437,441 ****
m_SocketReadResult.IsCompleted )
{
! byte[] responseBytes = new byte[8024];
m_SocketReadResult = m_Socket.BeginReceive(
--- 440,444 ----
m_SocketReadResult.IsCompleted )
{
! byte[] responseBytes = new byte[512];
m_SocketReadResult = m_Socket.BeginReceive(
Index: MSNPEventArgs.cs
===================================================================
RCS file: /cvsroot/msnphelper/msnphelper/src/MSNPEventArgs.cs,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -d -r1.1.1.1 -r1.2
*** MSNPEventArgs.cs 15 Mar 2002 01:12:37 -0000 1.1.1.1
--- MSNPEventArgs.cs 20 Mar 2002 05:37:26 -0000 1.2
***************
*** 1,2 ****
--- 1,31 ----
+ /*
+ * (standard BSD license)
+ *
+ * Copyright (c) 2002, Chad Myers, et al.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer. Redistributions in binary form
+ * must reproduce the above copyright notice, this list of conditions and the
+ * following disclaimer in the documentation and/or other materials provided with
+ * the distribution. Neither the name of SourceForge, nor Microsoft nor the names
+ * of its contributors may be used to endorse or promote products derived from
+ * this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ * IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
+ * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+ * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+ * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+ * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
+ * THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
using System;
Index: MimeMessage.cs
===================================================================
RCS file: /cvsroot/msnphelper/msnphelper/src/MimeMessage.cs,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -d -r1.1.1.1 -r1.2
*** MimeMessage.cs 15 Mar 2002 01:12:37 -0000 1.1.1.1
--- MimeMessage.cs 20 Mar 2002 05:37:26 -0000 1.2
***************
*** 1,2 ****
--- 1,31 ----
+ /*
+ * (standard BSD license)
+ *
+ * Copyright (c) 2002, Chad Myers, et al.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer. Redistributions in binary form
+ * must reproduce the above copyright notice, this list of conditions and the
+ * following disclaimer in the documentation and/or other materials provided with
+ * the distribution. Neither the name of SourceForge, nor Microsoft nor the names
+ * of its contributors may be used to endorse or promote products derived from
+ * this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ * IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
+ * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+ * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+ * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+ * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
+ * THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
using System;
using System.Collections;
Index: Request.cs
===================================================================
RCS file: /cvsroot/msnphelper/msnphelper/src/Request.cs,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** Request.cs 16 Mar 2002 21:09:51 -0000 1.2
--- Request.cs 20 Mar 2002 05:37:26 -0000 1.3
***************
*** 44,47 ****
--- 44,48 ----
String m_Command; // The command to send
String m_Parameters; // Extra parameters if necessary
+ bool m_IncludeCRLF = true;
/**********************************************/
***************
*** 60,63 ****
--- 61,74 ----
}
+ /// <summary>
+ /// Convenience constructor for requests that don't require
+ /// a trailing CRLF (such as MSG)
+ /// </summary>
+ public Request(String command, String parameters, bool includeCRLF) :
+ this(command, parameters)
+ {
+ m_IncludeCRLF = includeCRLF;
+ }
+
/**********************************************/
// Properties
***************
*** 65,68 ****
--- 76,80 ----
public String Command{ get{ return m_Command; } }
public String Parameters{ get{ return m_Parameters; } }
+ public bool IncludeCRLF{ get{ return m_IncludeCRLF; } }
/**********************************************/
Index: SwitchboardConnectionHandler.cs
===================================================================
RCS file: /cvsroot/msnphelper/msnphelper/src/SwitchboardConnectionHandler.cs,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** SwitchboardConnectionHandler.cs 17 Mar 2002 20:52:21 -0000 1.5
--- SwitchboardConnectionHandler.cs 20 Mar 2002 05:37:26 -0000 1.6
***************
*** 355,364 ****
internal void SendMessage(String message)
{
! string headers = "MIME-Version: 1.0\r\nContent-Type: text/plain; charset=UTF-8\r\n\r\n";
! int length = headers.Length + message.Length + 2;
! string commandParams = "U " + length.ToString() + "\r\n" + headers + message;
! AddSessionRequest(new Request(MSG, commandParams));
}
--- 355,366 ----
internal void SendMessage(String message)
{
! String headers = "MIME-Version: 1.0\r\nContent-Type: text/plain; charset=UTF-8\r\n\r\n";
! String totalMessage = headers + message;
! int length = totalMessage.Length;
! String commandParams = "U " + length.ToString() + "\r\n" + totalMessage;
!
! AddSessionRequest(new Request(MSG, commandParams, false));
}
***************
*** 369,373 ****
internal void SendMessage(MimeMessage message)
{
! string headers = "";
IDictionary headersDict = message.Headers;
--- 371,375 ----
internal void SendMessage(MimeMessage message)
{
! String headers = "";
IDictionary headersDict = message.Headers;
***************
*** 379,387 ****
headers += "\r\n";
! int length = headers.Length + message.Body.Length + 2;
!
! string commandParams = "U " + length.ToString() + "\r\n" + headers + message;
! AddSessionRequest(new Request(MSG, commandParams));
}
--- 381,390 ----
headers += "\r\n";
! String totalMessage = headers + message;
! int length = totalMessage.Length;
! String commandParams = "U " + length.ToString() + "\r\n" + totalMessage;
!
! AddSessionRequest(new Request(MSG, commandParams, false));
}
|
|
From: Chad M. <cm...@us...> - 2002-03-18 05:31:47
|
Update of /cvsroot/msnphelper/msnphelper
In directory usw-pr-cvs1:/tmp/cvs-serv22087
Modified Files:
MSNP.build
Log Message:
Added zipping for src dist images
Index: MSNP.build
===================================================================
RCS file: /cvsroot/msnphelper/msnphelper/MSNP.build,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** MSNP.build 18 Mar 2002 05:13:51 -0000 1.2
--- MSNP.build 18 Mar 2002 05:31:45 -0000 1.3
***************
*** 42,45 ****
--- 42,50 ----
</fileset>
</copy>
+ <zip zipfile="${dist.dir}\msnphelper.zip">
+ <fileset basedir="${dist.dir}">
+ <includes name="**/*.*"/>
+ </fileset>
+ </zip>
</target>
|
|
From: Chad M. <cm...@us...> - 2002-03-18 05:13:54
|
Update of /cvsroot/msnphelper/msnphelper
In directory usw-pr-cvs1:/tmp/cvs-serv18742
Modified Files:
MSNP.build
Log Message:
Added a new "dist" target for creating release images
Index: MSNP.build
===================================================================
RCS file: /cvsroot/msnphelper/msnphelper/MSNP.build,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -d -r1.1.1.1 -r1.2
*** MSNP.build 15 Mar 2002 01:12:37 -0000 1.1.1.1
--- MSNP.build 18 Mar 2002 05:13:51 -0000 1.2
***************
*** 1,4 ****
--- 1,6 ----
<project name="MSNP" default="build">
<property name="build.dir" value=".\build"/>
+ <property name="dist.dir" value=".\dist"/>
+ <property name="dist.src.dir" value="${dist.dir}\src"/>
<property name="build.doc.dir" value="${build.dir}\doc"/>
<property name="build.doc.temp.dir" value="${build.dir}\doctemp"/>
***************
*** 10,13 ****
--- 12,20 ----
<mkdir dir="${build.doc.dir}"/>
<mkdir dir="${build.doc.temp.dir}"/>
+
+ <!-- Copy license and readme -->
+ <copy file="license.txt" todir="${build.dir}"/>
+ <copy file="readme.txt" todir="${build.dir}"/>
+
<csc target="library" output="${build.dir}\msnp.dll" doc="${build.dir}\msnp.xml">
<sources basedir="${src.dir}">
***************
*** 24,29 ****
</target>
<target name="clean">
! <delete dir="${build.dir}"/>
</target>
</project>
--- 31,50 ----
</target>
+ <target name="dist">
+ <mkdir dir="${dist.dir}"/>
+ <mkdir dir="${dist.src.dir}"/>
+ <copy file="license.txt" todir="${dist.dir}"/>
+ <copy file="readme.txt" todir="${dist.dir}"/>
+ <copy file="MSNP.build" todir="${dist.dir}"/>
+ <copy todir="${dist.src.dir}">
+ <fileset basedir="src">
+ <includes name="**/*.*"/>
+ </fileset>
+ </copy>
+ </target>
+
<target name="clean">
! <delete dir="${build.dir}" failonerror="false"/>
! <delete dir="${dist.dir}" failonerror="false"/>
</target>
</project>
|
|
From: Chad M. <cm...@us...> - 2002-03-18 05:03:38
|
Update of /cvsroot/msnphelper/msnphelper In directory usw-pr-cvs1:/tmp/cvs-serv17146 Added Files: license.txt readme.txt Log Message: Added a license details and a readme to help people compile --- NEW FILE: license.txt --- ÿþ/ --- NEW FILE: readme.txt --- ÿþM |
|
From: Chad M. <cm...@us...> - 2002-03-18 04:19:48
|
Update of /cvsroot/msnphelper/msnphelper/src
In directory usw-pr-cvs1:/tmp/cvs-serv10156/src
Modified Files:
Contact.cs NotificationConnectionHandler.cs
Log Message:
Remove some console printlns
Index: Contact.cs
===================================================================
RCS file: /cvsroot/msnphelper/msnphelper/src/Contact.cs,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** Contact.cs 18 Mar 2002 04:12:51 -0000 1.3
--- Contact.cs 18 Mar 2002 04:19:46 -0000 1.4
***************
*** 131,135 ****
internal void setState(String state)
{
- Console.WriteLine("setState for " + m_UserName + ": " + state);
if( state == ConnectionHandler.NLN )
m_State = "Online";
--- 131,134 ----
Index: NotificationConnectionHandler.cs
===================================================================
RCS file: /cvsroot/msnphelper/msnphelper/src/NotificationConnectionHandler.cs,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** NotificationConnectionHandler.cs 18 Mar 2002 03:50:45 -0000 1.5
--- NotificationConnectionHandler.cs 18 Mar 2002 04:19:46 -0000 1.6
***************
*** 495,499 ****
{
substate = response.Parameters[0];
- Console.WriteLine("substate: " + substate);
handle = response.Parameters[1];
friendlyName = response.Parameters[2];
--- 495,498 ----
|
|
From: Chad M. <cm...@us...> - 2002-03-18 04:12:54
|
Update of /cvsroot/msnphelper/msnphelper/src
In directory usw-pr-cvs1:/tmp/cvs-serv8997/src
Modified Files:
Contact.cs
Log Message:
Added some commenting
Index: Contact.cs
===================================================================
RCS file: /cvsroot/msnphelper/msnphelper/src/Contact.cs,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** Contact.cs 18 Mar 2002 03:50:45 -0000 1.2
--- Contact.cs 18 Mar 2002 04:12:51 -0000 1.3
***************
*** 51,54 ****
--- 51,58 ----
* Constructors
***************************************************************/
+ /// <summary>
+ /// Main constructor
+ /// </summary>
+ /// <param name="userName">The user handle (email address) for this user</param>
internal Contact(String userName)
{
***************
*** 58,61 ****
--- 62,70 ----
}
+ /// <summary>
+ /// Constructs a contact with a user handle and friendly name
+ /// </summary>
+ /// <param name="userName">The user handle (email address) for this user</param>
+ /// <param name="friendlyName">The friendly name of the user</param>
internal Contact(String userName, String friendlyName) :
this(userName)
|