Fix wrong output in proxyConnectTimer_Elapsed. Signed-off-by: noisyfox <timemanager.rick@gmail.com>
41 lines
1020 B
C#
41 lines
1020 B
C#
using System;
|
|
using System.Net;
|
|
using System.Net.Sockets;
|
|
|
|
namespace Shadowsocks.Proxy
|
|
{
|
|
|
|
public interface IProxy
|
|
{
|
|
EndPoint LocalEndPoint { get; }
|
|
|
|
EndPoint ProxyEndPoint { get; }
|
|
|
|
string DestHost { get; }
|
|
|
|
int DestPort { get; }
|
|
|
|
void BeginConnectProxy(EndPoint remoteEP, AsyncCallback callback, object state);
|
|
|
|
void EndConnectProxy(IAsyncResult asyncResult);
|
|
|
|
void BeginConnectDest(string host, int port, AsyncCallback callback, object state);
|
|
|
|
void EndConnectDest(IAsyncResult asyncResult);
|
|
|
|
void BeginSend(byte[] buffer, int offset, int size, SocketFlags socketFlags, AsyncCallback callback,
|
|
object state);
|
|
|
|
int EndSend(IAsyncResult asyncResult);
|
|
|
|
void BeginReceive(byte[] buffer, int offset, int size, SocketFlags socketFlags, AsyncCallback callback,
|
|
object state);
|
|
|
|
int EndReceive(IAsyncResult asyncResult);
|
|
|
|
void Shutdown(SocketShutdown how);
|
|
|
|
void Close();
|
|
}
|
|
}
|