30 lines
754 B
C#
30 lines
754 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using UIStandardWebApi.Entity;
|
|
|
|
namespace UIStandardWebApi.IService
|
|
{
|
|
/// <summary>
|
|
/// Socket通信连接接口
|
|
/// </summary>
|
|
public interface ISocketConnectionService : IBaseService
|
|
{
|
|
/// <summary>
|
|
/// 获取通信连接的ip及端口号
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
public Sys_Socket ObtainAddress();
|
|
|
|
/// <summary>
|
|
/// 新增通信ip及端口号
|
|
/// </summary>
|
|
/// <param name="ip"></param>
|
|
/// <param name="port"></param>
|
|
/// <returns></returns>
|
|
public int InserAddress(string ip, string port);
|
|
}
|
|
}
|