blob: dd32b2058e3a7c909b2c98e2177c1d1b6a30afa6 (
plain)
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
32
33
34
35
36
37
|
using System;
using System.Collections.Specialized;
using System.Text;
using System.Net;
using System.Net.Sockets;
using System.IO;
namespace IvyBus
{
abstract class IvyTCPStream : IvyProtocolInterface
{
protected NetworkStream stream;
public IvyTCPStream(Socket socket)
{
stream = new NetworkStream(socket, true);
}
internal void Close()
{
stream.Close();
}
abstract internal bool receiveMsg();
abstract internal void TokenStartRegexp(ushort port, string appName);
abstract internal void TokenEndRegexp();
abstract internal void TokenApplicationId(ushort priority, string appId);
abstract internal void TokenAddBinding(IvyBindingBase bind);
abstract internal void TokenDelBinding(ushort id);
abstract internal void TokenDirectMsg(ushort id, string message);
abstract internal void TokenPong(string s);
abstract internal void TokenPing(string s);
abstract internal void TokenBye(ushort id, string message);
abstract internal void TokenDie(ushort id, string message);
abstract internal void TokenMsg(ushort key, string[] args);
abstract internal void TokenError(ushort key, string arg);
}
}
|