Navigation Menu

Skip to content

Commit

Permalink
Entire protocol is now internal.
Browse files Browse the repository at this point in the history
  • Loading branch information
lanwin committed Jun 12, 2010
1 parent 251ff15 commit 5ac0b8c
Show file tree
Hide file tree
Showing 14 changed files with 25 additions and 25 deletions.
Expand Up @@ -24,7 +24,7 @@ private void WriteBadMessage(Connection conn)
writer.Write((byte)0);
}

protected QueryMessage GenerateQueryMessage()
private QueryMessage GenerateQueryMessage()
{
var qdoc = new Document {{"listDatabases", 1.0}};
//QueryMessage qmsg = new QueryMessage(qdoc,"system.namespaces");
Expand Down
2 changes: 1 addition & 1 deletion source/MongoDB/Protocol/DeleteMessage.cs
Expand Up @@ -14,7 +14,7 @@ namespace MongoDB.Protocol
/// BSON selector; // query object. See below for details.
/// }
/// </remarks>
public class DeleteMessage : RequestMessageBase
internal class DeleteMessage : RequestMessageBase
{
/// <summary>
/// Initializes a new instance of the <see cref="DeleteMessage"/> class.
Expand Down
2 changes: 1 addition & 1 deletion source/MongoDB/Protocol/GetMoreMessage.cs
Expand Up @@ -14,7 +14,7 @@ namespace MongoDB.Protocol
/// int64 cursorID; // cursorID from the OP_REPLY
/// }
/// </remarks>
public class GetMoreMessage : RequestMessageBase
internal class GetMoreMessage : RequestMessageBase
{
/// <summary>
/// Initializes a new instance of the <see cref="GetMoreMessage"/> class.
Expand Down
2 changes: 1 addition & 1 deletion source/MongoDB/Protocol/IRequestMessage.cs
Expand Up @@ -5,7 +5,7 @@ namespace MongoDB.Protocol
/// <summary>
/// A Message that is to be written to the database.
/// </summary>
public interface IRequestMessage
internal interface IRequestMessage
{
/// <summary>
/// Writes the specified stream.
Expand Down
2 changes: 1 addition & 1 deletion source/MongoDB/Protocol/InsertMessage.cs
Expand Up @@ -16,7 +16,7 @@ namespace MongoDB.Protocol
/// BSON[] documents; // one or more documents to insert into the collection
/// }
/// </remarks>
public class InsertMessage : MessageBase, IRequestMessage
internal class InsertMessage : MessageBase, IRequestMessage
{
private readonly BsonWriterSettings _bsonWriterSettings;
private readonly List<MessageChunk> _chunks = new List<MessageChunk>();
Expand Down
2 changes: 1 addition & 1 deletion source/MongoDB/Protocol/KillCursorsMessage.cs
Expand Up @@ -15,7 +15,7 @@ namespace MongoDB.Protocol
/// int64[] cursorIDs; // array of cursorIDs to close
/// }
/// </remarks>
public class KillCursorsMessage : RequestMessageBase
internal class KillCursorsMessage : RequestMessageBase
{
/// <summary>
/// Initializes a new instance of the <see cref="KillCursorsMessage"/> class.
Expand Down
2 changes: 1 addition & 1 deletion source/MongoDB/Protocol/MessageBase.cs
Expand Up @@ -3,7 +3,7 @@ namespace MongoDB.Protocol
/// <summary>
/// Base class for all raw messages
/// </summary>
public abstract class MessageBase
internal abstract class MessageBase
{
/// <summary>
///
Expand Down
2 changes: 1 addition & 1 deletion source/MongoDB/Protocol/MessageHeader.cs
Expand Up @@ -14,7 +14,7 @@ namespace MongoDB.Protocol
/// int32 opCode; // request type - see table below
/// }
/// </remarks>
public class MessageHeader
internal class MessageHeader
{
/// <summary>
/// Initializes a new instance of the <see cref="MessageHeader"/> class.
Expand Down
2 changes: 1 addition & 1 deletion source/MongoDB/Protocol/MsgMessage.cs
Expand Up @@ -12,7 +12,7 @@ namespace MongoDB.Protocol
/// cstring message; // message for the database
/// }
/// </remarks>
public class MsgMessage : RequestMessageBase
internal class MsgMessage : RequestMessageBase
{
/// <summary>
/// Initializes a new instance of the <see cref="MsgMessage"/> class.
Expand Down
24 changes: 12 additions & 12 deletions source/MongoDB/Protocol/OpCode.cs
@@ -1,44 +1,44 @@
namespace MongoDB.Protocol
{
/// <summary>
///
/// </summary>
public enum OpCode{
internal enum OpCode
{
/// <summary>
/// Reply to a client request. responseTo is set.
/// Reply to a client request. responseTo is set.
/// </summary>
Reply = 1,
/// <summary>
/// Generic msg command followed by a string.
/// Generic msg command followed by a string.
/// </summary>
Msg = 1000,
/// <summary>
/// update document
/// update document
/// </summary>
Update = 2001,
/// <summary>
/// insert new document
/// insert new document
/// </summary>
Insert = 2002,
/// <summary>
/// is this used?
/// is this used?
/// </summary>
GetByOid = 2003,
/// <summary>
/// query a collection
/// query a collection
/// </summary>
Query = 2004,
/// <summary>
/// Get more data from a query. See Cursors.
/// Get more data from a query. See Cursors.
/// </summary>
GetMore = 2005,
/// <summary>
/// Delete documents
/// Delete documents
/// </summary>
Delete = 2006,
/// <summary>
/// Tell database client is done with a cursor.
/// Tell database client is done with a cursor.
/// </summary>
KillCursors = 2007
KillCursors = 2007
}
}
2 changes: 1 addition & 1 deletion source/MongoDB/Protocol/QueryMessage.cs
Expand Up @@ -17,7 +17,7 @@ namespace MongoDB.Protocol
/// [ BSON returnFieldSelector; ] // OPTIONAL : selector indicating the fields to return. See below for details.
/// }
/// </remarks>
public class QueryMessage : RequestMessageBase
internal class QueryMessage : RequestMessageBase
{
/// <summary>
/// Initializes a new instance of the <see cref="QueryMessage"/> class.
Expand Down
2 changes: 1 addition & 1 deletion source/MongoDB/Protocol/ReplyMessage.cs
Expand Up @@ -19,7 +19,7 @@ namespace MongoDB.Protocol
/// BSON[] documents; // documents
/// }
/// </remarks>
public class ReplyMessage<T> : MessageBase where T : class
internal class ReplyMessage<T> : MessageBase where T : class
{
private readonly BsonReaderSettings _readerSettings;

Expand Down
2 changes: 1 addition & 1 deletion source/MongoDB/Protocol/RequestMessageBase.cs
Expand Up @@ -7,7 +7,7 @@ namespace MongoDB.Protocol
/// <summary>
/// Description of Message.
/// </summary>
public abstract class RequestMessageBase : MessageBase, IRequestMessage
internal abstract class RequestMessageBase : MessageBase, IRequestMessage
{
private readonly BsonWriterSettings _bsonWriterSettings;

Expand Down
2 changes: 1 addition & 1 deletion source/MongoDB/Protocol/UpdateMessage.cs
Expand Up @@ -15,7 +15,7 @@ namespace MongoDB.Protocol
/// BSON document; // the document data to update with or insert
/// }
/// </remarks>
public class UpdateMessage : RequestMessageBase
internal class UpdateMessage : RequestMessageBase
{
/// <summary>
/// Initializes a new instance of the <see cref="UpdateMessage"/> class.
Expand Down

0 comments on commit 5ac0b8c

Please sign in to comment.