Hi,
I made a screensaver which loads a jvm, forks a thread running a java class, wait until user's action(i.e. mouse move/click keyboard input), then terminate the java thread.
However, I met a problem, How to terminate a running java thread from c++ code?
Here is my code, but it does not...
Hi,
I am implementing an B tree ADT. But I cannot figure out how to store an array of Pointers for the internal node of B tree.
I used a class called
template <class Object>
class OrderedList
to store the keys or records in a ORDERED LIST
But I cannot store pointers in a ORDERED LIST...
I know the reason now.
It is due to the process of message.
I am trying to establish peer to peer communication between two nodes.
In the process message of the RMI Server, after done, it will call the RMI Client remote method, which will block the thread from running until this RMI Call is...
Hi, all:
I met a problem while executing the following code.
I need to check the vector to see if it is empty, if yes, remove the first element and process it. else go to the loop again.
While(true){
if(myVec.isEmpty()==false){
myObject=(myObject)myVec.remove(0);
//next...
Hi,
I created a merge replication for two databases. I would like to drop a table(article) now. But it seems do not allow me to do so.
I also checked the stored procedures where I can only find sp_repladdcolumn and sp_repldropcolumn, but not how to drop tables, does anyone have any...
I need to create a table, in which there is a field called Description, i try to make it as VARCHAR2 size 10k, but the max length of VARCHAR2 is 2k, is there any other type that can have a size bigger than 2k?
How to define a string field whose size is bigger than 2k in Oracle?
Mollusk
Yes, I find the answer, Setsockopt can ONLY be used before bind, If after bind, the socket will not release the port after close.
I met a new problem here: when I compile the program, I find
the following error. What does it mean?
Undefined first referenced
symbol...
I used setsockopt() in the program, but it does not work either?
On the server side:
I used setsockopt before I bind() listenfd to the serversocket.
But after clients requested, then exit and the server responses, then exit. The socket still does not released.
Why is that happen?
Now I have another problem.
I run a server in an eternal loop.
I need to close the socket after I press ^c, so I use
signal(SIGTERM,cleanEXIT);
signal(SIGINT,cleanEXIT);
Then in the top of the program.
I use :
int listenfd;
void cleanEXIT()
{
close(listenfd);
/* clean up the garbage...
I run a sample http server in an eternal loop.
I need to close the socket after I press ^c, so I use
signal(SIGTERM,cleanEXIT);
signal(SIGINT,cleanEXIT);
Then in the top of the program.
I use :
int listenfd;
void cleanEXIT()
{
close(listenfd);
/* clean up the garbage processes*/...
Thanks Rbobbit.
I solved this problem using stat(), it not only can read the last update time but also last modified time and length.
Now I have another problem.
I run a server in an eternal loop.
I need to close the socket after I press ^c, so I use
signal(SIGTERM,cleanEXIT)...
My question is:
Is there a function in C, that can read the date(last modified, Last accessed, and last accessed) and length of a file.
I know length is easy, point the pointer to the end of the file and the return value is the length. But is there a function to realize this?
Thanks
Hi, everybody:
I used coldfusion for the website of my company since this August. Everything works fine, except one minor problem:
In my program, before I write anything into the database, every informaiton is stored in the session, including price, quantity, totalprice... And the...
Thanks, but when dns server return "bad ip address",
it means the machine with the name doesn't exist in the dns.
Suppose the machine with www.tek-tips.com is down, then I tracert return the same information as if I traced an ip that does not exist.
Is there any way to determin the...
hi:
The problem is that:
How do I find a machine I tracerouted is a
NON-EXISTANT machine or is just running down(not responding)?
Is there a way when I looked at the packets to see any difference between them?
thanks
Hi, everyone:
I am using sun solaris. I tried to use "arp" to read arp table information and find that each arp entry has a timeout value.
Is there a way that I can find the arp timeout value for each entry in my arp table of the local machine.
Thanks
I used OnValidate, and in my javasxript function, there is several alert messages.<br><br>But when I run the program, there is a default alert mesage.<br><br>I do not need this default message, how to disable it?<br><br><br>3ks in advance
any ideas? about how to validate URL: <br>for example: <A HREF="http://www.abc.com" TARGET="_new">http://www.abc.com</A><br><br>One more question:<br><br> How to enable both my own Javascript form validation and Coldfusion form validation at the same time when submit a form?<br><br>Thanx in...
sorry, the wrong address, it should be:<br><A HREF="http://www.intermedia.net/support/coldfusion/cfdocs4/dochome.htm" TARGET="_new">http://www.intermedia.net/support/coldfusion/cfdocs4/dochome.htm</A><br><br>
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.