alec1o / Byter

Byter: C# library for serializing and deserializing data to and from bytes, supporting unlimited complexity and depth.⚡
MIT License
6 stars 2 forks source link

NotImplementedException: Netly Message framing prefix not found. #33

Open gbradburn opened 4 months ago

gbradburn commented 4 months ago

I'm getting this error when opening a TCP connection. What am I missing? Also, it looks like Host can only take an IP address not a named address (e.g. someaddr.com). Is that correct?

alec1o commented 4 months ago

Hi, thanks for wait and related this error, can please give me full output log (about the exception error)

alec1o commented 4 months ago

The host use ip only, but I'm thinked about implement a way to find host from domain name, but I discard this solution

alec1o commented 4 months ago

https://github.com/alec1o/Netly/issues/37

alec1o commented 4 months ago

Yes it's correct because Host only accept ip address, I think about implement that but I discard this ideia because is more good to netly make focus on ip address, the reason was: then you find domain first you need network, 2nd you must process this domain on background,

what dns netly will choose IPv4 or IPv6 ip? If you have more than one IP what choose? First or Last? Is example of things that you must config, implement this should make complex host usage.

But is must fast found ip from a domain in c# and pas this address and ip to netly.

var url = "http://oldschool.runescape.com/game?world=321";
Uri myUri = new Uri(url);
var ip = Dns.GetHostAddresses(myUri.Host)[0];

Host host = new Host(ip, $port)