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...
Type: Posts; User: Blick
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...
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!
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...
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?
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 (*)
Alright lets try this one more time.
Main:
import java.net.InetAddress;
import java.net.UnknownHostException;
import java.util.ArrayList;
public class Main {
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:
-...
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...
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.
...
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.
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...
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...
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.
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...
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...
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...
^Ah I didn't know. Want me to delete one?
Yeah that was me. I posted on both forums.
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...
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?
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...
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...
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...