⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 isocket.cs

📁 语音视频功能 里面实现了基本的QQ与语音对话
💻 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 + -