Skip to content

Commit

Permalink
commit master branch
Browse files Browse the repository at this point in the history
  • Loading branch information
kerryjiang committed Aug 7, 2012
1 parent 0df5960 commit c9c14e0
Show file tree
Hide file tree
Showing 336 changed files with 73,304 additions and 0 deletions.
23 changes: 23 additions & 0 deletions Build.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
@echo off

set fdir=%WINDIR%\Microsoft.NET\Framework64

if not exist %fdir% (
set fdir=%WINDIR%\Microsoft.NET\Framework
)

set msbuild=%fdir%\v4.0.30319\msbuild.exe

%msbuild% SuperSocket.2010.sln /p:Configuration=Debug /t:Rebuild /p:OutputPath=..\bin\Net40\Debug
FOR /F "tokens=*" %%G IN ('DIR /B /AD /S obj') DO RMDIR /S /Q "%%G"

%msbuild% SuperSocket.2010.sln /p:Configuration=Release /t:Rebuild /p:OutputPath=..\bin\Net40\Release
FOR /F "tokens=*" %%G IN ('DIR /B /AD /S obj') DO RMDIR /S /Q "%%G"

%msbuild% SuperSocket.2010.NET35.sln /p:Configuration=Debug /t:Rebuild /p:OutputPath=..\bin\Net35\Debug
FOR /F "tokens=*" %%G IN ('DIR /B /AD /S obj') DO RMDIR /S /Q "%%G"

%msbuild% SuperSocket.2010.NET35.sln /p:Configuration=Release /t:Rebuild /p:OutputPath=..\bin\Net35\Release
FOR /F "tokens=*" %%G IN ('DIR /B /AD /S obj') DO RMDIR /S /Q "%%G"

pause
12 changes: 12 additions & 0 deletions BuildQuickStart.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
@echo off

set fdir=%WINDIR%\Microsoft.NET\Framework64

if not exist %fdir% (
set fdir=%WINDIR%\Microsoft.NET\Framework
)

set msbuild=%fdir%\v4.0.30319\msbuild.exe

%msbuild% QuickStart\QuickStart.sln /p:Configuration=Debug /t:Rebuild
pause
35 changes: 35 additions & 0 deletions Common/ArraySegmentEx.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SuperSocket.Common
{
class ArraySegmentEx<T>
{
public ArraySegmentEx(T[] array, int offset, int count)
{
Array = array;
Offset = offset;
Count = count;
}
/// <summary>
/// Gets the array.
/// </summary>
public T[] Array { get; private set; }

/// <summary>
/// Gets the count.
/// </summary>
public int Count { get; private set; }

/// <summary>
/// Gets the offset.
/// </summary>
public int Offset { get; private set; }

public int From { get; set; }

public int To { get; set; }
}
}
Loading

0 comments on commit c9c14e0

Please sign in to comment.