上传遗漏的文件

This commit is contained in:
SpringHgui 2019-12-21 13:43:28 +08:00
parent b5ea76eac7
commit 299b8a2eea
7 changed files with 100 additions and 0 deletions

4
.gitignore vendored
View File

@ -1,3 +1,7 @@
bin
obj
.vs
/FastTunnel.Client/*.user
/FastTunnel.Server/*.user
/FastTunnel.Client/Properties/PublishProfiles/*.user
/FastTunnel.Server/Properties/PublishProfiles/*.user

View File

@ -0,0 +1,13 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace FastTunnel.Core.Models
{
public class NewSSHRequest
{
public string MsgId { get; set; }
public SSHConfig SSHConfig { get; set; }
}
}

View File

@ -0,0 +1,11 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace FastTunnel.Core.Models
{
public enum Protocol
{
TCP = 0,
}
}

View File

@ -0,0 +1,29 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace FastTunnel.Core.Models
{
public class SSHConfig
{
/// <summary>
/// 协议
/// </summary>
public Protocol Protocol { get; set; }
/// <summary>
/// 局域网IP地址
/// </summary>
public string LocalIp { get; set; }
/// <summary>
/// 局域网ssh端口号
/// </summary>
public int LocalPort { get; set; } = 22;
/// <summary>
/// 服务端监听的端口号 1~65535
/// </summary>
public int RemotePort { get; set; }
}
}

View File

@ -0,0 +1,13 @@
using System;
using System.Collections.Generic;
using System.Net.Sockets;
using System.Text;
namespace FastTunnel.Core.Models
{
public class SSHHandlerArg
{
public SSHConfig SSHConfig { get; internal set; }
public Socket LocalClient { get; internal set; }
}
}

View File

@ -0,0 +1,16 @@
using System;
using System.Collections.Generic;
using System.Net.Sockets;
using System.Text;
namespace FastTunnel.Core.Models
{
public class SSHInfo<T>
{
public Socket Socket { get; set; }
public SSHConfig SSHConfig { get; set; }
public Listener<T> Listener { get; set; }
}
}

View File

@ -0,0 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
https://go.microsoft.com/fwlink/?LinkID=208121.
-->
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<PublishProtocol>FileSystem</PublishProtocol>
<Configuration>Release</Configuration>
<Platform>Any CPU</Platform>
<TargetFramework>netcoreapp3.1</TargetFramework>
<PublishDir>bin\Release\netcoreapp3.1\publish\</PublishDir>
<SelfContained>false</SelfContained>
</PropertyGroup>
</Project>