Jump to content

[Solved] Client must wait until it receives a packet from server?


AXELTOPOLINO

Recommended Posts

Hello guys,

my problem is: the client, which has just connected to the remote server, must waiting in the "Download Terrain" screen until it gets a custom packet from the server.

 

I need this because client must use the data sent by the server before loading items and entities.

 

I think I can't use Thread.wait() or Thread.sleep() as the client can't stop totally as it needs to get and read the packet.

Any idea will be much appreciated,

Thanks,

Axel

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.