forked from Timoms/LibICAP
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ICAP.cs
25 lines (24 loc) · 772 Bytes
/
ICAP.cs
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
using LibICAP.Utilities;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading;
namespace LibICAP
{
public class ICAP
{
/// <summary>
/// Constructs a new ICAP Server instance handling all the logic.
/// </summary>
/// <param name="ip">IP Address for binding</param>
/// <param name="port">Port to bind</param>
/// <param name="buffer">Length of the buffer used in receiving data. Should be at least 1024-20000. Default: 2048.</param>
public ICAP(string ip, int port, int buffer)
{
Thread workerThread = new Thread(() => {
new Server(ip, port, buffer);
});
workerThread.Start();
}
}
}