forked from kerryjiang/SuperSocket
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDefaultProtoHandler.cs
More file actions
31 lines (29 loc) · 812 Bytes
/
Copy pathDefaultProtoHandler.cs
File metadata and controls
31 lines (29 loc) · 812 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
using System;
using System.Collections.Generic;
using System.Text;
namespace SuperSocket.ProtoBase
{
/// <summary>
/// Default implementation of ProtoHandler
/// </summary>
public class DefaultProtoHandler : ProtoHandlerBase
{
/// <summary>
/// Determines whether this instance can send.
/// </summary>
/// <returns></returns>
public override bool CanSend()
{
return true;
}
/// <summary>
/// Closes the specified channel.
/// </summary>
/// <param name="channel">The channel.</param>
/// <param name="reason">The reason.</param>
public override void Close(ICommunicationChannel channel, CloseReason reason)
{
channel.Close(reason);
}
}
}