代码拉取完成,页面将自动刷新
/*****************************
* Author: YanNI
* Create:2018/3/7 14:26:32
* Email: admin@ircove.com
* QQ: 401608886
* TEl: 13520446271
****************************/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading.Tasks;
namespace VFPush
{
/// <summary>
/// Represents a client socket.
/// </summary>
public interface ISimplSocketClient : IDisposable
{
/// <summary>
/// Connects to an endpoint. Once this is called, you must call Close before calling Connect again.
/// </summary>
/// <param name="endPoint">The endpoint.</param>
/// <returns>true if connection is successful, false otherwise.</returns>
bool Connect(EndPoint endPoint);
/// <summary>
/// Sends a message to the server without waiting for a response (one-way communication).
/// </summary>
/// <param name="message">The message to send.</param>
void Send(byte[] message);
/// <summary>
/// Sends a message to the server and then waits for the response to that message.
/// </summary>
/// <param name="message">The message to send.</param>
/// <returns>The response message.</returns>
byte[] SendReceive(byte[] message);
/// <summary>
/// Closes the connection. Once this is called, you can call Connect again to start a new client connection.
/// </summary>
void Close();
/// <summary>
/// An event that is fired whenever a message is received. Hook into this to process messages and potentially call Reply to send a response.
/// </summary>
/// event EventHandler<MessageReceivedArgs> MessageReceived;
/// <summary>
/// An event that is fired whenever a socket communication error occurs. Hook into this to do something when communication errors happen.
/// </summary>
/// event EventHandler<SocketErrorArgs> Error;
}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。