Search Results

Showing results 1 to 40 of 97
Search took 0.01 seconds.
Search: Posts Made By: neutralfox ; Forum: Java and child forums
Forum: Java May 23rd, 2009
Replies: 6
Views: 455
Posted By neutralfox
Thanks tuse.

@ Salem, in the link you send me:

Mention that:

"CCP Registered ports SHOULD NOT be used without IANA registration.
The registration procedure is defined in [RFC4340],...
Forum: Java May 23rd, 2009
Replies: 6
Views: 455
Posted By neutralfox
Thanks for the answer guys! To Salem, you suggest me to allow the user to configure or set the port himself? OK, but will it make my program less user friendly ?

I understand you but how MSN works...
Forum: Java May 23rd, 2009
Replies: 6
Views: 455
Posted By neutralfox
Hello friends,
As usual .. when i have a problem ... daniweb.com is here ;). So I need some information from you. Ok, let me explain ... I am currently developing a chat application ! Ok ......
Forum: Java May 20th, 2009
Replies: 5
Views: 1,011
Posted By neutralfox
Okie, thanks dude , its working.

The problem was with the link, I ve changed it to

http://whatismyip.com/automation/n09230945.asp

Now can you help me to set the timeout please.
Forum: Java May 20th, 2009
Replies: 5
Views: 1,011
Posted By neutralfox
Hello,
I've modified the code and no more errors, but still I didn't get the IP, the program keeps running and nothing appears.

import java.net.*;
import java.io.*;
import...
Forum: Java May 20th, 2009
Replies: 5
Views: 1,011
Posted By neutralfox
Hello, thanks for the link, I have tried to run the code but I've got the following error:


Error:
C:\GetIP.java:8: cannot find symbol
symbol : class HttpURLConnection
location: class GetIP
...
Forum: Java May 20th, 2009
Replies: 5
Views: 1,011
Posted By neutralfox
Hello friends,
I am having a small problem, i have already designed a chat application, the chat works fine over a local network but now I want to use it over the internet. Logically the...
Forum: Java May 9th, 2009
Replies: 8
Views: 2,481
Posted By neutralfox
WoW, thanks a lot for the answers guys. But I am having another problem, I want the user to input a string that can be used as the key but its not working.

byte[] raw = "thekey".getBytes();
...
Forum: Java May 8th, 2009
Replies: 8
Views: 2,481
Posted By neutralfox
Hello everyone,
I got a small question on encryption, actually I am trying to learn the various techniques to encrypt a message. Now I am trying AES, using the built in security package in...
Forum: Java Apr 17th, 2009
Replies: 9
Views: 560
Posted By neutralfox
Okie , thanks for the fast reply. I will try it. Thanks a lot.
Forum: Java Apr 17th, 2009
Replies: 9
Views: 560
Posted By neutralfox
Hello, thanks for the reply but:

They both have been initialized.

byte[] buffer=new byte[1024];
int bytes=0;
Forum: Java Apr 17th, 2009
Replies: 9
Views: 560
Posted By neutralfox
Yes ... the full code is in the attachement. I removed it from the code cause I am not dealing with this part yet.

The connectToServer is call as I saw the message in this method.
Forum: Java Apr 17th, 2009
Replies: 9
Views: 560
Posted By neutralfox
Hello,
I am having a null pointer error, don't know where it came out. Can someone check this code for me please:

The error is in the sendBytes methods, I have put a comment over there,...
Forum: Java Apr 16th, 2009
Replies: 4
Views: 477
Posted By neutralfox
Sorry ... I declared done at the top as a boolean value and set to true.

boolean done = true

Yes .. I compiled it,no errors, the program run ... but its seems to work but the program does...
Forum: Java Apr 16th, 2009
Replies: 4
Views: 477
Posted By neutralfox
Hello,
I have changed the code, still not working, can you please check if its the right way to write to a file. Thanks a lot.

//read and write file
public void run(){

try{
...
Forum: Java Apr 16th, 2009
Replies: 4
Views: 477
Posted By neutralfox
Hello,
I have just finished writing the code for my FTP application but according to my code, everything should work fine. But when I run my application, the file is not transfer to the...
Forum: Java Apr 16th, 2009
Replies: 8
Views: 401
Posted By neutralfox
For the chat section ... I will post the code later on. I don't want other students to copy my code. But for the FTP, Encryption I can, because lecturers will marked only the chat section, which I...
Forum: Java Apr 16th, 2009
Replies: 8
Views: 401
Posted By neutralfox
I have completed the chat section. The chat section works perfectly, with hard work and with your help(thanks a lot). Now, I want to integrate FTP in it and also encryption of message.. I am coding...
Forum: Java Apr 16th, 2009
Replies: 8
Views: 401
Posted By neutralfox
Yes ... I have already read these links before posting. For example in my chat application, which design pattern I must use(if any), just an example please. Because I have read some of the design...
Forum: Java Apr 16th, 2009
Replies: 8
Views: 401
Posted By neutralfox
Hello everyone,
I just fall on an article on design patterns. They said that if you want to become a good programmer, you must follow design patterns. But till now I have never follow...
Forum: Java Apr 16th, 2009
Replies: 26
Solved: Thread problem
Views: 1,083
Posted By neutralfox
Yeppp, we never stop to learn. Thanks a lot for all your help ... GMT+4 and you.
Forum: Java Apr 15th, 2009
Replies: 26
Solved: Thread problem
Views: 1,083
Posted By neutralfox
Thanks a lot James, I followed your instructions and its working fine. I've just separated the user interface from the business logic. But still can't understand the logic, I will not mark this...
Forum: Java Apr 15th, 2009
Replies: 26
Solved: Thread problem
Views: 1,083
Posted By neutralfox
Okie .. thanks for the answers James, I will work it out and let you know if I am having any problems, thanks for the info BJSJC. ;)
Forum: Java Apr 15th, 2009
Replies: 26
Solved: Thread problem
Views: 1,083
Posted By neutralfox
Thanks for the info, but my problem is still unsolved.. can't get it to work.
Forum: Java Apr 14th, 2009
Replies: 26
Solved: Thread problem
Views: 1,083
Posted By neutralfox
Its OK ... thanks.
Forum: Java Apr 14th, 2009
Replies: 26
Solved: Thread problem
Views: 1,083
Posted By neutralfox
Thanks for the answer but where James. You mean here:

public FTPServer() {
initComponents();
new Thread (this).start();
}


should be like this:
Forum: Java Apr 14th, 2009
Replies: 26
Solved: Thread problem
Views: 1,083
Posted By neutralfox
Hello,
I am sending you the modified one, please put a comment for me to understand this.

Thanks in advance.



package ignisftpv20;

import javax.swing.JFileChooser;
Forum: Java Apr 14th, 2009
Replies: 26
Solved: Thread problem
Views: 1,083
Posted By neutralfox
Hello ... thanks for the answer, i read it but still can't solve the problem, its not working when I removed the tread from the constructor.

The message "OK Houston" does not appears which means...
Forum: Java Apr 13th, 2009
Replies: 26
Solved: Thread problem
Views: 1,083
Posted By neutralfox
Yes,in the waitForConnection, it was a mistake.

But " start the server on the Swing event thread", you mean on the button?
Forum: Java Apr 13th, 2009
Replies: 26
Solved: Thread problem
Views: 1,083
Posted By neutralfox
This is the server class:


package ignisftpv20;

import java.net.*;
import java.io.*;
import javax.swing.JOptionPane;
Forum: Java Apr 13th, 2009
Replies: 26
Solved: Thread problem
Views: 1,083
Posted By neutralfox
Hello,
Thanks for the answer. I am having another problem. My application freeze. I have done a similar application, chat and it was working, now i applied the same logic for the ftp and its...
Forum: Java Apr 13th, 2009
Replies: 26
Solved: Thread problem
Views: 1,083
Posted By neutralfox
Hello everyone,
Actually I want to learn more about thread, can we have more than one "run" for thread in a program ?



package ignisftpv20;

import javax.swing.JFileChooser;
import...
Forum: Java Apr 12th, 2009
Replies: 20
Views: 614
Posted By neutralfox
OK ... I will go for OBJECT then. As you said, I will have to differentiate between the two headers and launch one in another thread... I am working on it.

I will let you know if i am having some...
Forum: Java Apr 12th, 2009
Replies: 20
Views: 614
Posted By neutralfox
Yep , I've got your point BJSJC. I am a bit confused, you see, I want to find a good solution, before starting, thanks for the answer dude.
Forum: Java Apr 12th, 2009
Replies: 20
Views: 614
Posted By neutralfox
It will change the whole structure of my program. I don't want to touch the chat again.... its working fine. I just want to implement the FTP part smoothly. Can I use different streams on one socket...
Forum: Java Apr 12th, 2009
Replies: 20
Views: 614
Posted By neutralfox
Hello ,
I just think of something... If I used your method James



out.writeUTF("Chat");
out.writeUTF(message);
out.writeUTF("Data");
out.writeObject(myData);
...
Forum: Java Apr 12th, 2009
Replies: 20
Views: 614
Posted By neutralfox
James , I read something about BufferedReader and PrintWriter thats its good to use when dealing with transfer of information as the data is buffered(takes time to travel over network). I don't...
Forum: Java Apr 12th, 2009
Replies: 20
Views: 614
Posted By neutralfox
Yep ,thanks for the answer but James, you mean that I should use the OBJECT then?

And how to change the headers, thanks for the answer.
Forum: Java Apr 12th, 2009
Replies: 8
Views: 2,721
Posted By neutralfox
Forum: Java Apr 12th, 2009
Replies: 20
Views: 614
Posted By neutralfox
Hello guys,
I am a bit confused, what should I do, use the same socket or create a different, which will be more easier and more efficient.

Btw, what the difference between...
Showing results 1 to 40 of 97

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC