Skip to content
This repository has been archived by the owner on Aug 16, 2023. It is now read-only.

Groophy-Inc/Groophy.Packages

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

Packages(Share local data)


development phase suspended


NuGet version (Groophy.Packages)

Source Code

Usage

Server Side

Package p = new Package();

//http://localhost:5000/
Web w = new Web();

w.run(new Configure
{
    Port = 5000
});
w.onData += w_onData;
static void w_onData(Web sender, User e)
{
    if (e.Query["Groophy"] == "Lifefor")
    {
        e.Response("Welcome");
    }
    else
    {
        e.Response("Access Denied");
    }

    e.Kill();
}

Client Side

Web c = new Web();

c.Client(new ConfigureClient
{
    Port=5000,
    param = new paramst[] { new paramst()
    {
        var = "Groophy", val="Lifefor"
    }},
});
c.onClient += c_onClient;
static void c_onClient(Web sender, System.Net.Http.HttpResponseMessage Context, string response)
{
    Console.WriteLine("Reponse: " + response);
}

Tests

rndm

true

~Groophy Lifefor

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages