kyy13 / udp-connect Goto Github PK
View Code? Open in Web Editor NEWA network abstraction layer for connection-based UDP
License: MIT License
A network abstraction layer for connection-based UDP
License: MIT License
bool TryBindIPv4(uint16_t port);
bool TryBindIPv6(uint16_t port);
where N,M from [0, max]
UdcServer* server = createServer();
while (udcProcessEvents(server, event))
{
UdcEventType eventType = udcGetEventType(event);
switch(eventType)
{
// ...
processConnectionEvent(event);
}
}
char* getNodeName(endpointId);
char* getServiceName(endpointId);
add option to force 2way connection before receiving messages in the event processor.
this means server doesn't need to store reliable states for unconnected clients.
also reliable state can be an int8_t
20 bytes
[16 bytes]
IPv6 address or
IPv4 address and 12 bytes padding
[2 bytes]
port number
[2 bytes]
address type
IPv4
IPv6
Configure UDPSocketReceiver{} to allow listening for IPv4, IPv6, or both for systems where the option is available.
Class should report which standards are allowed when connected.
e.g.
bool canReceiveIPv4() const;
bool canReceiveIPv6() const;
reliable
in_order_exactly_once
and
at_least_once
where at_least_once doesn't require receiver to store state
Create IPv4 and IPv6 formats that can be converted to/from string rather than supply a string to socket sender/receiver.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.