striped socks

but only half a pair
This commit is contained in:
Malloc of Kuzkycyziklistan 2017-04-25 16:01:41 -05:00
parent 6d341074d6
commit 632dfc1929
9 changed files with 57 additions and 29 deletions

View file

@ -9,8 +9,6 @@ namespace CircleScape {
class ActiveConnection : Websocket.Connection { class ActiveConnection : Websocket.Connection {
public ActiveConnection(TcpClient sock) : base(sock) { } public ActiveConnection(TcpClient sock) : base(sock) { }
public ActiveConnection(PendingConnection conn) : base(conn) { public ActiveConnection(PendingConnection conn) : base(conn) { }
}
} }
} }

View file

@ -56,12 +56,18 @@
<Reference Include="System.Xml" /> <Reference Include="System.Xml" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<Compile Include="ActiveConnection.cs" />
<Compile Include="Database\Database.cs" />
<Compile Include="Database\Query.cs" />
<Compile Include="Database\Table.cs" />
<Compile Include="Entrypoint.cs" /> <Compile Include="Entrypoint.cs" />
<Compile Include="PendingConnection.cs" />
<Compile Include="PoolManager.cs" /> <Compile Include="PoolManager.cs" />
<Compile Include="Properties\AssemblyInfo.cs" /> <Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Utilities.cs" /> <Compile Include="Utilities.cs" />
<Compile Include="Websocket\Connection.cs" /> <Compile Include="Websocket\Connection.cs" />
<Compile Include="Websocket\Frame.cs" /> <Compile Include="Websocket\Frame.cs" />
<Compile Include="Websocket\Handshake.cs" />
<Compile Include="Websocket\Pool.cs" /> <Compile Include="Websocket\Pool.cs" />
<Compile Include="Websocket\Server.cs" /> <Compile Include="Websocket\Server.cs" />
<Compile Include="Websocket\Stack.cs" /> <Compile Include="Websocket\Stack.cs" />

View file

@ -0,0 +1,10 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CircleScape.Database {
class Database {
}
}

10
server/Database/Query.cs Normal file
View file

@ -0,0 +1,10 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CircleScape.Database {
class Query {
}
}

10
server/Database/Table.cs Normal file
View file

@ -0,0 +1,10 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CircleScape.Database {
class Table {
}
}

View file

@ -1,24 +1,9 @@
/***************************************/using using System;
System ;using using System.Collections.Generic;
/***************************************/ using System.Data.SQLite;
System . using System.Linq;
Collections . using System.Text;
Generic ;using using System.Threading.Tasks;
/***************************************/
System .
Linq ;using
/***************************************/
System .
Text ;using
/***************************************/
System .
Threading .
Tasks ;using
/***************************************/
System .
Data .
SQLite ;
/***************************************/
namespace CircleScape { namespace CircleScape {
class Entrypoint { class Entrypoint {

View file

@ -21,11 +21,6 @@ namespace CircleScape {
}; };
ActiveConnectionsPool = new Pool<ActiveConnection>(); ActiveConnectionsPool = new Pool<ActiveConnection>();
var test = new PendingConnection(new TcpClient());
var teste = test as ActiveConnection;
} }
} }
} }

View file

@ -6,6 +6,20 @@ using System.Threading.Tasks;
namespace CircleScape.Websocket { namespace CircleScape.Websocket {
class Frame { class Frame {
public enum kOpcode {
Continuation = 0x0,
TextFrame = 0x1,
BinaryFrame = 0x2,
Close = 0x8,
Ping = 0x9,
Pong = 0xA
};
public kOpcode Opcode { get; private set; }
public bool IsFinal { get; private set; }
public bool IsMasked { get; private set; }
public byte[] Mask { get; private set; }
public byte Reserved { get; private set; }
} }
} }

Binary file not shown.