boonkerz / teamscreen

It should be an Teamviewer/Vnc/Something replacement
GNU General Public License v3.0
137 stars 57 forks source link

Fail update the latest litenetlib #7

Open gejuking opened 2 years ago

gejuking commented 2 years ago

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

gejuking commented 2 years ago

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 commented 4 months ago

Can anybody help out in setting up this project?