Comments (15)
@gafferongames I'm happy to write one if that would be helpful. What's the minimal/best place to see how to set up an end-to-end demo?
from netcode.
It has indeed been a while. Lost to the ages I'm afraid. :)
from netcode.
Good point, there isn't yet, but there should be.
cheers
from netcode.
Thanks. This would be really helpful. So far the best documentation is kindof in the unit tests, and the soak test. Also, looking at netcode.h, the header there is actually only I think 20 functions?
from netcode.
Actually, to be fair, the best examples are in client.c and server.c
from netcode.
or maybe even client_server.c for sort of a top-down view of both sides
from netcode.
hmm, alright. I guess probably what makes sense is for me to look at the those 3 files and try to set up an integration from scratch. Where's the best place to pester people with questions that come up as I go through it? this github issue/slack/gitter?
from netcode.
Yeah, you could just pester me here, I don't mind.
from netcode.
I've looked over client.c
, server.c
, and client_server.c
. I think I have a reasonable idea of how to set this up. 3 questions that come to mind right now:
-
In the README, the 1st listed feature is "connection oriented". But in the netcode 1.0.1 standard, it seems that the whole thing is implemented over UDP, which is connectionless. Am I just getting tripped up on nomenclature here?
-
Is netcode's goal solely handling the matchmaking and encryption aspects of the transport? I'm assuming that whatever game/simulation one builds would likely us yojimbo on top of this for all the higher level sending capabilities?
-
for the browser plugin, why expose netcode's interface, rather than the higher level abstractions that something like yojimbo provides? It seems like the very next thing someone who gets netcode.io working in their web game would want to do would be to have access to message channels, etc.
from netcode.
@gafferongames an initial stab at a usage guide:
https://gist.github.com/mreinstein/0284fbab6955c246d54224db5f402a24
I took the approach of using c/pseudocode and commenting on the critical code blocks that set up server and client instances.
I know this is super rough but hopefully it's a starting point. Would love some feedback/ideas on how to refine this.
One area that would be great is explaining how to handle multiple servers which I think I saw elsewhere but wasn't sure how to set up.
from netcode.
I'd like to reiterate that the above is just a 1st pass. If this looks promising I'm happy to collect (hopefully constructive) feedback and make the 2nd pass on this.
from netcode.
Hi Mike, sorry I've just been super busy and haven't had a chance to check out your work yet. Thanks for helping with this. I appreciate it.
from netcode.
no worries, I just wanted to ensure any concerned parties this is not anywhere near the final quality/end result. I'm a big believer in rapid iteration and sharing things early to get feedback. When anyone gets a chance to take a look and give notes I'll make another improvement round. :)
from netcode.
I haven't forgotten about this, still planning to do another update today or tomorrow after I un-bury myself from current work. :)
from netcode.
@gafferongames an initial stab at a usage guide:
https://gist.github.com/mreinstein/0284fbab6955c246d54224db5f402a24
I took the approach of using c/pseudocode and commenting on the critical code blocks that set up server and client instances.
I know this is super rough but hopefully it's a starting point. Would love some feedback/ideas on how to refine this.
One area that would be great is explaining how to handle multiple servers which I think I saw elsewhere but wasn't sure how to set up.
Hi mreinstein, I know its been a while, the github url didn't work, is this removed?
from netcode.
Related Issues (20)
- Why is the browser plugin archived? HOT 2
- [Question] Connect Token private part HOT 1
- [Question] Is it possible to handle direct IP connections without a matchmaker service? HOT 1
- Assert on NULL user_data in netcode_generate_connect_token() HOT 1
- Up-to-date rust implementation of netcode HOT 1
- Windows: Connecting to server is delayed if some previous clients do not shutdown by the right way HOT 25
- Wait upon certain time for incoming packets HOT 1
- Embed the `client index` to `connection payload packet` and `connection disconnect packet` HOT 5
- MinGW build issues HOT 10
- Question: Connect Token Design HOT 5
- Connect Token Sniffing HOT 11
- DoS by Abusing Replay Protection HOT 5
- netcode.io support x32? HOT 1
- Settings #define's HOT 14
- MinGW linker error introduced in #66 HOT 1
- Fiy, found Socketify https://socketify.net/
- Switching between carrier and wifi when a connection has been established HOT 2
- netcode.io connect tokens fail when letting the system assign a server port. HOT 2
- Reporting security vulnerabilities HOT 1
- Single project c file HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from netcode.