Added NightAlert project for travel kit
This commit is contained in:
38
ThirdParty/EngineIoClientDotNet/Src/EngineIoClientDotNet.Tests.mono/ClientTests/Connection.cs
vendored
Normal file
38
ThirdParty/EngineIoClientDotNet/Src/EngineIoClientDotNet.Tests.mono/ClientTests/Connection.cs
vendored
Normal file
@@ -0,0 +1,38 @@
|
||||
using Quobject.EngineIoClientDotNet.Client;
|
||||
using Quobject.EngineIoClientDotNet.Modules;
|
||||
|
||||
namespace Quobject.EngineIoClientDotNet_Tests.ClientTests
|
||||
{
|
||||
public class Connection
|
||||
{
|
||||
static Connection()
|
||||
{
|
||||
LogManager.SetupLogManager();
|
||||
}
|
||||
|
||||
protected static Socket.Options CreateOptions()
|
||||
{
|
||||
var options = new Socket.Options
|
||||
{
|
||||
Port = ConnectionConstants.PORT,
|
||||
Hostname = ConnectionConstants.HOSTNAME
|
||||
};
|
||||
//log.Info("Please add to your hosts file: 127.0.0.1 " + options.Hostname);
|
||||
|
||||
return options;
|
||||
}
|
||||
|
||||
protected static Socket.Options CreateOptionsSecure()
|
||||
{
|
||||
var options = new Socket.Options
|
||||
{
|
||||
Port = ConnectionConstants.SSL_PORT,
|
||||
Hostname = ConnectionConstants.HOSTNAME,
|
||||
//log.Info("Please add to your hosts file: 127.0.0.1 " + options.Hostname);
|
||||
Secure = true,
|
||||
IgnoreServerCertificateValidation = true
|
||||
};
|
||||
return options;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user