RUI CHEN

Greenhorn
+ Follow
since Nov 16, 2002
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by RUI CHEN

Hi guys,
I am doing a video conference project that is in Java. One Server and mulitiple clients.
Any client could send continuous video data captured from its webcam to the server, the server should be able to deliver this video to all other listening clients, so that the other listening clients could rend to their screesn.
In my plan,I think Server would be possible to catch the incoming stream from the client that are sending data. Then it clone the stream it get and feed to mulitiple processors that are ued send data to other listening clients.
Is this possible in JMF? Thanks very much for your suggestion.
BTW,it would be very very nice of you if similiar codes could be supplied to help me.
Sincerely yours
Rui
21 years ago
Hi Michael,
It is still the old question I posted a week ago. The Server receive request, and carry our in Unix, then foward the result to client.
And I want the user at the Client could operate on the remote Unix freely. Like, cd any directory and list files.
I don't exactly know what you mean by write something like "cd /usr/bin".
Anyway, is it possible that the program continues to run correctly after it changes directory many times?
Thanks very much!
Yours
Rui
21 years ago
Hi guys,
It is too bad to find that the exec() method in class Porcess can not do a lot of things.
For example, if the program is currently running in directory "A", and I want to enter directory "B" and list the files in "B". The "cd" command the program will executed first won't affect the later command "ls". The "ls" will still list the files in directory "A".
Is there any way to do what I want?
Thanks very much!
Yours
Rui
21 years ago
Hi everybody,
Yeah, Runtime.exec() is what I am lookin for!
All your guys are so kind to me, especially Michael and Cindy.
Your kind help is deeply apprecaited!
Thanks so much!!!

Sincerely yours
Rui
21 years ago
Hi Cindy,
Thanks for your reply!
I want the program to work in client/server style. Particullary, the server part works on Unix and will carry out the unix commands the client sends. It returns the result to the client, so the users on the client seems that they could interact with the remote unix machine.
So,in my opinion,the most important thing is how to make the server part acrry out the commands on that remote machine, which it resides on.
If we request "ls", it may be easy to list the file and folders on the remote machine, and return the result. However, if the request is things like "whoami", then, Java certainly does not provide any methods to carry out this kind of unix commands.
21 years ago
RMI may not the thing I am looking for. I need be familiar with native methods.
I think i should find out a telent program written in Java, then I could learn from it.
21 years ago
Hi guys,
Sorry for my poor expression.
It should have one part running in the server, and one part running in a client computer. The server response to the client.
Users would be able to run command on the remote machine, on which the server part resides. And server sends back the result to the client.
From the point of view of the users, they are running a telnet.
So, in my opinion, the server part should invoke native method. That's the part I am not familiar.
As to the Mr Liu, could you please tell me where to find that part of API? i checked the documentation, but found nothing
Thanks all you guys, looking to learn more from you!
Rui
21 years ago
Hi there,
I wanna know how to write a program which can execute command for me on remote computer, and then return the result.
For example, on the local machine, I start the program and it connects to the remote unix machine. then, i could type "whoami", and the program will execute the same command in the remote computer, return the result to me.
Thank you very much!
21 years ago
Thank you so much, Shishio,Barry and Roan!!!
I will remember it, "constructor chaining".
Like:
class par{
par(int i){}
}
class chi extends par{
chi(){}
}
the program will fail when compiling and says a "cannot resolve symbol constructor par()".
i know that there won't be a default non arugement constructor created for chi in this case. however, why such a strange thing will happen even i created one constrcutor for the chi?
besides, no matter the function chi() has argument or not, the compiler all works like that.
.........who could tell me why?
hi,I want to know whether this "a" is initialized?
Anyclassname a=this;
thanks!
21 years ago