Jump to content
View in the app

A better way to browse. Learn more.

OSBot :: 2007 OSRS Botting

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Making thread to a server socket

Featured Replies

So i was using this tutorial from dreameo that i found on a forum but i dont know how to implement thread into it.

My script just accepts one request and then just ignores new listener when it comes to it. Can someone help?

4 hours ago, Tikvesa said:

So i was using this tutorial from dreameo that i found on a forum but i dont know how to implement thread into it.

My script just accepts one request and then just ignores new listener when it comes to it. Can someone help?

Need a better description of the issue you're having

  • Author
7 hours ago, Gunman said:

Need a better description of the issue you're having

So i implemented this into my script (its part of the script that runes in loop):

public class Test {

    public static void main(String[] args) throws InterruptedException {
        Server server = new Server(50000);
        server.listen();

        server.write("Hello peasant");
    }
}

And it works as intended for the first request. Then it goes to the rest of the script but when it comes back to that part and when it need to listen for a new request again it just ignores whole thing and it doesnt listen for a new request.

I found on a web to add thread into all this but i tried all day today and i dont know how

Edited by Tikvesa

19 hours ago, Tikvesa said:

So i implemented this into my script (its part of the script that runes in loop):

public class Test {

    public static void main(String[] args) throws InterruptedException {
        Server server = new Server(50000);
        server.listen();

        server.write("Hello peasant");
    }
}

And it works as intended for the first request. Then it goes to the rest of the script but when it comes back to that part and when it need to listen for a new request again it just ignores whole thing and it doesnt listen for a new request.

I found on a web to add thread into all this but i tried all day today and i dont know how

You need to look up a simple java client and server socket tutorial and then look up multithreading for it as well

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.