*
The moose likes Java in General and the fly likes JNI Over ATM Network Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "JNI Over ATM Network" Watch "JNI Over ATM Network" New topic
Author

JNI Over ATM Network

Siva Jagadeesan
Ranch Hand

Joined: Oct 31, 2000
Posts: 160
Hi everybody :
I am workin in a client server application over an ATM network using the Winsock 2 .
Is there any way i can use the .dll file and write my own java class which will interact with the ATM network .
Even if i use the JNI how can i keep track of the socket which i created with C++(winsock) ... Is there anyway i can have a reference to the C++ object (socket object which i created )
Pls let me know
I really want to use java

Thanx
Siva


Rgds<p>--Siva Jagadeesan<br /><a href="http://java2simple.blog-city.com" target="_blank" rel="nofollow">http://java2simple.blog-city.com</a><br />Sun Certified Java2 Programmer<br />Sun Certified Web Component Developer<br />BEA Certified Weblogic Server 7 Enterprise Developer
Jim Baiter
Ranch Hand

Joined: Jan 05, 2001
Posts: 532
You can write a dll that acts as a bridge between your Java app and the C++ dll. You can get a reference to your JNI class and call the native methods which are implemented in this new dll. There's a reasonable coverage of JNI in the Java Tutorial at http://java.sun.com/tutorial.
Siva Jagadeesan
Ranch Hand

Joined: Oct 31, 2000
Posts: 160
Originally posted by Jim Baiter:
You can write a dll that acts as a bridge between your Java app and the C++ dll. You can get a reference to your JNI class and call the native methods which are implemented in this new dll. There's a reasonable coverage of JNI in the Java Tutorial at http://java.sun.com/tutorial.

Dear Jim :
Thanx for replying to me . But I want to know whether i can have a C++ object SOCKET in my java program so i can use the native methods call on it . So i will have only one SOCKET object in my program .
Pls let me know if i am now clear
Thank u
Siva
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JNI Over ATM Network