Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. wminghao

    help on JNI calling java as a seperate thread.

    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...
  2. wminghao

    Array of Pointers in B Tree

    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...
  3. wminghao

    add a time period of delay in main thread.

    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...
  4. wminghao

    add a time period of delay in main thread.

    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...
  5. wminghao

    Replication Drop table

    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...
  6. wminghao

    How to define a string field that is bigger than 2k?

    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
  7. wminghao

    Network Programming in C

    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...
  8. wminghao

    Network Programming in C

    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?
  9. wminghao

    Here is my tcp/ip socket problem

    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...
  10. wminghao

    I have a problem with socket programming

    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*/...
  11. wminghao

    Network Programming in C

    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)...
  12. wminghao

    Network Programming in C

    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
  13. wminghao

    Big Problem, about Coldfusion. Any one has met before

    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...
  14. wminghao

    how to find the arp timeout value?

    I know the answer now, by using >ndd -get /etc/arp arp_cleanup_timeout then I can see the value 300000 msec for my unix setting
  15. wminghao

    traceroute problem

    Thanks, but when dns server return &quot;bad ip address&quot;, 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...
  16. wminghao

    traceroute problem

    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
  17. wminghao

    how to find the arp timeout value?

    Hi, everyone: I am using sun solaris. I tried to use &quot;arp&quot; 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
  18. wminghao

    How to validate URL in a form input?

    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
  19. wminghao

    How to validate URL in a form input?

    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>&nbsp;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...
  20. wminghao

    Starting using ColdFusion

    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>

Part and Inventory Search

Back
Top