Comments (1)
This line right here is the problem:
var message = Message.Create(MessageSendMode.reliable, 5);
because it creates a message with a header and ID, both of which are then included in the actual connect message and considered part of the payload. The receiving end will then interpret those extra bytes as the bytes containing the length of the string, but that's obviously not what they are, so it ends up being completely incorrect. Then it tries to retrieve the string itself, but because it's expecting there to be more bytes than there actually are, you get that error.
The client.Connect
method expects a message with nothing in it other than the data you want to send, and you can get an empty message instance like so:
var message = Message.Create();
from riptide.
Related Issues (20)
- Feature Request | Simulating Fake Ping HOT 3
- Unhandled SocketException while Client with no Internet Connection tries to connect to the server. HOT 2
- Feature Request | Message.Reserve & Message.Insert methods HOT 5
- Client instance getting timed out after reconnecting
- Limit the amount of players HOT 3
- Character Selection Info HOT 1
- NullReferenceException at Riptide.Connection.ResetTimeout() HOT 2
- Feature Request | Additional MessageSendModes HOT 7
- Infinite Loop
- Server.MessageReceived dont work HOT 3
- Message only contains 62032 unread bytes, which is not enough to retrieve 127568 bytes HOT 1
- NullReferenceException when trying to get a server's currently connected clients.
- Can't use riptidenetworking namespace.
- ios device as clients cannot connect a PC as server HOT 3
- How can we transfer picture type message between server and client? HOT 5
- TCP sending data, receiving less than added
- Not ticking/Updating while not focused HOT 1
- Feature request | Packet Flooding Countermeasures HOT 2
- Monitoring Socket Buffer Usage HOT 2
- Timeout Time For Individual Connections 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 riptide.