All Projects → forrestly → SSCore

forrestly / SSCore

Licence: MIT License
dotnet core version of SuperSocket

Programming Languages

C#
18002 projects

Projects that are alternatives of or similar to SSCore

hospitalrun-core
All elements shared between Frontend and Backend, including CouchDB design-documents and schemas.
Stars: ✭ 36 (-34.55%)
Mutual labels:  core
ui
Add right-to-left support to the NativeScript framework
Stars: ✭ 22 (-60%)
Mutual labels:  core
events
Event emitter with asynchronous events.
Stars: ✭ 12 (-78.18%)
Mutual labels:  core
zimagi
Zimagi - Modular Data Integration, Processing, and Distribution Platform
Stars: ✭ 15 (-72.73%)
Mutual labels:  core
server
Server/API for Vela (Target's official Pipeline Automation Framework)
Stars: ✭ 74 (+34.55%)
Mutual labels:  core
conf kgc2016 SuperSocket
KGC 2016 'SuperSocket' 관련 강연
Stars: ✭ 24 (-56.36%)
Mutual labels:  supersocket
worker
Worker for Vela (Target's official Pipeline Automation Framework)
Stars: ✭ 27 (-50.91%)
Mutual labels:  core
ormdb
ORM tool for .Net / .Net.Core
Stars: ✭ 14 (-74.55%)
Mutual labels:  core
core
Core Object Traits for Agile Toolkit
Stars: ✭ 19 (-65.45%)
Mutual labels:  core
OfficeDocs-DeployOffice
Office client deployment documentation
Stars: ✭ 109 (+98.18%)
Mutual labels:  core
Samples-NET.Core-MVC-CSharp
ASP.NET Core 2.0 MVC C# samples for Stimulsoft Reports.Web reporting tool.
Stars: ✭ 28 (-49.09%)
Mutual labels:  core
docker-horizon-core-web
🐳 Core and Web application service for Horizon by OpenNMS
Stars: ✭ 28 (-49.09%)
Mutual labels:  core
gdcdictionary
Data dictionary for the GDC
Stars: ✭ 43 (-21.82%)
Mutual labels:  core
CoreRemoting
RPC library with classic .NET Remoting flavour
Stars: ✭ 23 (-58.18%)
Mutual labels:  core
MFCoin
MFCoin source tree
Stars: ✭ 36 (-34.55%)
Mutual labels:  core
core-command
Downloads, installs, updates, and manages a WordPress installation.
Stars: ✭ 41 (-25.45%)
Mutual labels:  core
OfficeDocs-ProjectServer
Project Server documentation
Stars: ✭ 16 (-70.91%)
Mutual labels:  core
ASP.NET-Core-2-MVC-CRUD-datatables-jQuery-Plugin
Asp.Net Example implementation of datatables.net using Asp.Net Core 2 Mvc CRUD datatables jQuery Plugin
Stars: ✭ 25 (-54.55%)
Mutual labels:  core
towards5gs-helm
Open-source project providing Helm charts for deploying Free5GC and UERANSIM on a Kubernetes cluster
Stars: ✭ 53 (-3.64%)
Mutual labels:  core
core
🔥 Antares Core Implemenation. Most important project layer, this is the heart for your app. ACL, notifiter, console, geoip, areas, utils and many more...
Stars: ✭ 24 (-56.36%)
Mutual labels:  core

SSCore

dotnet core version of SuperSocket. Pick up socket communication logic from SuperSocket, and exclude command concept.

usage

  1. Create SocketServerBase object
  2. Add handler for new client connection.
  3. Start the socket server object.
  4. Implement the handler of new client connection.
  5. Add handler for receiving message.

Example

class Program
{
    static void Main(string[] args)
    {
        SocketServerBase server = new SocketServerBase();
        server.NewClientAccepted += Server_NewClientAccepted;
        server.Start();

        Console.WriteLine("enter any key to exit.");
        Console.ReadKey();
    }

    private static void Server_NewClientAccepted(Socket client, ISocketSession session)
    {
        Console.WriteLine("----- new client ------------");
        AsyncSocketSession ass = session as AsyncSocketSession;

        ass.SetReceiveHandler(arg =>
        {
            Console.WriteLine("----- new receive ------------");
            string received = System.Text.Encoding.UTF8.GetString(arg.Buffer, arg.Offset, arg.BytesTransferred);
            Console.WriteLine(received);

            ass.Send(received);
        });
    }
}
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].