📄 isocket.cs
字号:
using System;
using System.Net;
using System.Net.Sockets;
namespace gowk.net.Sockets
{
/// <summary>
/// ISocket 的摘要说明。
/// </summary>
public interface ISocket
{
int Send(byte[] buffer);
int SendTo(byte[] buffer, EndPoint remoteEP);
int Receive(byte[] buffer);
int ReceiveFrom(byte[] buffer, ref EndPoint remoteEP);
void Close();
void Connect(string host,int port);
void SetSocketOption(SocketOptionLevel optionLevel, SocketOptionName optionName, int optionValue);
void Bind(EndPoint ep);
Proxy Proxy{get;set;}
void LoginProxy();
void Negotiation(string host,int port);
void AsyncInvoke(AsyncCallback callback);
System.IO.Stream GetStream();
bool Connected{get;}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -