How to close ServerSocket

2000-05-13 Thread Ashish
how to close server socket without throwing an exception?   if i call close then it throws exception which gets caught in catch 1 not in catch 2 can anybody explain   ServerSocket ss = new ServerSocket(iPort);   try {     ss.accept(); } catch(Exception e) /* 1 */ { /// }   try {     ss.clos

How to close ServerSocket

2000-05-13 Thread Ashish
  how to close server socket without throwing an exception?   if i call close then it throws exception which gets caught in catch 1 not in catch 2 can anybody explain   ServerSocket ss = new ServerSocket(iPort);   try {     ss.accept(); } catch(Exception e) /* 1 */ { /// }   try {     ss.c

RE: How can I connect to MySQL using JDBC

2000-05-13 Thread Hari O'Connell
Hope the code below helps. Also if you're using a new version of java (1.2 or above, I believe) make sure you're using the noopt version of the class files. try { Class.forName("twz1.jdbc.mysql.jdbcMysqlDriver").newInstance(); } catch(Exception e) { this.err

How can I connect to MySQL using JDBC

2000-05-13 Thread Rakesh Raveendran
Hi, I am using a type 4 driver for connecting to MySQL database.The Class file(driver file) is being detected, but I am not able to connect to the database.There are no exceptions being thrown stating that connection is not being created.Can any body send me some sample code as to how to connec

Re: iostream wrappers

2000-05-13 Thread Mo DeJong
Your best bet is to take a look at the Gnu Java project. They provide a Native C++ interface called CNI that would really help you out. http://sourceware.cygnus.com/java/ http://sourceware.cygnus.com/java/papers/cni/t1.html Mo Dejong Red Hat Inc. On Sat, 13 May 2000, Matthias Pfisterer wrote:

iostream wrappers

2000-05-13 Thread Matthias Pfisterer
Hi, I need to wrap C++ classes istream and ostream of the GNU libstc++ with Java classes, so that a C++ library can for example read from an istream that maps to an InputStream on the Java side. Has anybody done this before? Are there existing implementations? Thanks in advance, Matthias -- Ma

Re: high performance I/O?

2000-05-13 Thread Matt Welsh
Miles Sabin <[EMAIL PROTECTED]> writes: > Agreed. One big headache is the fact that asynchronous IO > (POSIX or otherwise) is typically going to require that buffers > be at fixed addresses, ... > I guess that in principle it ought to be possible to tweak > JVMs to special-case a priviledged clas