Search:

Type: Posts; User: Blick

Search: Search took 0.11 seconds.

  1. [SOLVED] Dragging Undercoated Window Causes Glitching

    Hey could use a little help on a Post-It-Note project I'm just finishing up. It's a small program that only has one other class than Main.

    The PostIt class creates a new Undercoated JavaFX Stage...
  2. Replies
    25
    Views
    1,514

    Re: Threads and Sockets

    Yeah I just didn't have the server running at the time so all the ports where closed.

    I'm working on the handshake now. Thanks for the help!
  3. Replies
    25
    Views
    1,514

    Re: Threads and Sockets

    Don't worry I fixed it myself:


    "C:\Program Files\Java\jdk1.8.0_211\bin\java.exe" "-javaagent:C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2019.1.3\lib\idea_rt.jar=55502:C:\Program...
  4. Replies
    25
    Views
    1,514

    Re: Threads and Sockets

    I don't understand what you want to print out. Do you want to print out the IP, Port and Socket variables?

    Did you make any progress with the broken while loop?
  5. Replies
    25
    Views
    1,514

    Re: Threads and Sockets

    Yeah I have no idea what's wrong with it. Let me know if you manager to find the problem.

    Thanks for helping out BTW (*)
  6. Replies
    25
    Views
    1,514

    Re: Threads and Sockets

    Alright lets try this one more time.

    Main:


    import java.net.InetAddress;
    import java.net.UnknownHostException;
    import java.util.ArrayList;

    public class Main {
  7. Replies
    25
    Views
    1,514

    Re: Threads and Sockets

    The program right now is not doing anything but trying to open a socket in each thread. Other than that its not sending any information to the server.

    Let me be sure of everything you want:

    -...
  8. Replies
    25
    Views
    1,514

    Re: Threads and Sockets

    I just finished a quick Server and Client program.

    Here is the server:


    import java.io.IOException;
    import java.net.InetAddress;
    import java.net.InetSocketAddress;
    import...
  9. Replies
    25
    Views
    1,514

    Re: Threads and Sockets

    Just so the socket connects? I not really in the mood to write a server for the whole Bittorrent protocol right now. I can add to it later. Just want to get this while loop fixed so I can move on.
    ...
  10. Replies
    25
    Views
    1,514

    Re: Threads and Sockets

    Erm Google? I have no idea where to get a list of testing IPs. I have just been using the live ones.

    This is the first time I have programmed any network stuff.
  11. Replies
    25
    Views
    1,514

    Re: Threads and Sockets

    So that's a list I just pulled down from the servers for one torrent. Peers will connect and disconnect form the pool as time goes on so not all of them will work forever. I think though that torrent...
  12. Replies
    25
    Views
    1,514

    Re: Threads and Sockets

    Here is the PeerManager, PeerConnect and temp Main code. I think there are a few long tearm seeds in that peer list so it should be good for a while. If all the seeds expire just let me know and I...
  13. Replies
    25
    Views
    1,514

    Re: Threads and Sockets

    For main to run you would need a bunch of other classes. You want me to post them all? I would need to post basically the whole package.
  14. Replies
    25
    Views
    1,514

    Re: Threads and Sockets

    Ok so I know now that whats going on is all the thread are running in parallel. So the connected sockets are not the first to be created they are the first to return for creating the socket as they...
  15. Replies
    25
    Views
    1,514

    Threads and Sockets

    Hey I could use some help again.

    I'm working with some threads and sockets for my Torrent Client over TCP.

    I have a main Thread Class (PeerManager) that is creating an ArrayList of a second...
  16. Passing Value to use as Member Veritable Array Dimension.

    Hey, is there any way to pass a value to a object and then use it as the dimension for a Member Variable Array.

    Basically I want to be able to pass a integer to a object on its creation, and then...
  17. Replies
    6
    Views
    2,508

    Re: JavaFX - Main Program Loop

    ^Ah I didn't know. Want me to delete one?
  18. Replies
    6
    Views
    2,508

    Re: JavaFX - Main Program Loop

    Yeah that was me. I posted on both forums.
  19. Replies
    6
    Views
    2,508

    JavaFX - Main Program Loop

    Hey, I'm working on my first JavaFX GUI for a Torrent Client I'm working on. I'm a little confused by the program flow.

    In the code bellow you can see what I tried to do in the block for the File...
  20. Re: Converting Hex values to IP and Port Number - IP format

    Thanks that was it...

    What about the port number. Its two bytes long. Would I just convert the two bytes together or bit by bit like the IP?
  21. Re: Converting Hex values to IP and Port Number - IP format

    Thanks for the reply...

    I have double checked the data from the UDP reply and it seems to be fine.

    Here is the code anyway.

    The reply Byte Array goes through a Display method that converts...
  22. Converting Hex values to IP and Port Number - IP format

    Could use some help,

    I working on decoding some data from a UDP server. In the response I get a list of IP addresses and Port numbers as a byte array. I then converted them to hex strings.

    I'm...
  23. Reading Bytes from the Middle of a Character File

    Hey I could use some help.

    I'm extracting data from a file that uses Bencoding. Its a Metainfo .torrent file for a Torrent Client I'm working on. I'm reading it char by char using an...
Results 1 to 23 of 23