Code Monkey home page Code Monkey logo

scs's People

Contributors

jamesboer avatar sudolife avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

scs's Issues

questions about the scs

Hello, I am trying to modify scstest.cpp to create multiple scs::clientPtrs within a single client application. Each of these clients class will have a different logic and protocol and will request different data from the server.

To make the question more specific, let's say that we want a client to send a string "String" in addition to the random data (as is the case in the current example) and receive the response "Answer" from the server every second. How can we implement this?

To start, I tried put the scs::clientPtr client inside an if(true){} statement, but the client stopped working

https://gist.github.com/yalov/1d73666029ca6e6fcaabacdef60db6cf

[feature request] A name for server and client classes, that will be used in all console output

scs-client.exe -p 4001 -a 127.0.0.1
Press ESC key to exit client test...

Logging addresses...
  IPv4: 127.0.0.1
Logging addresses...
  IPv4: 127.0.0.1
Logging addresses...
  IPv4: 127.0.0.1
Client established connection with server.
Client established connection with server.
Client failed to connect.

console output does not specify a client, if there are many.

something like

auto client = CreateClient(params);
client.name = "Cool Client";

and then use "Cool Client" for all output status messages would be helpful.

Also timestamp would be helpful.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.