Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fail update the latest litenetlib #7

Open
gejuking opened this issue Mar 15, 2022 · 2 comments
Open

Fail update the latest litenetlib #7

gejuking opened this issue Mar 15, 2022 · 2 comments

Comments

@gejuking
Copy link

hello,
would u update to new version of litenetlib, i have try, but i fail. can not connect each other.

@gejuking
Copy link
Author

litenetlib has change INetEventListener from 0.7.7.3 to 0.9.5.2

it lead teamscreen on network/BaseListener

in previous BaseListener

public event EventHandler<NetDataReader> OnReceive;
...
public virtual void OnNetworkReceive(NetPeer peer, NetDataReader reader)
{
if (OnReceive != null)
OnReceive(this, reader);
}

Now to code forced to

public event EventHandler<NetPacketReader > OnReceive;
....
public virtual void OnNetworkReceive(NetPeer peer, NetPacketReader reader, DeliveryMethod deliveryMethod)
{
if (OnReceive != null)
OnReceive(this, reader);
}
public void OnConnectionRequest(ConnectionRequest request)
{
request.AcceptIfKey("somekey");
}
}
i stuck here, they changes NetDataReader to NetPacketReader .
i dont know how to solve this. it makes client cant connect to host.

@MSaqib-Rocket
Copy link

Can anybody help out in setting up this project?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants