You Are Here:

Community: Developer Discussion Boards

#1 Old Disconnecting a data call from a Personal Java application - 2002-06-18, 02:23

Join Date: Mar 2003
Posts: 124
ask_expert
Offline
Regular Contributor
How to close (hang up) a data call that has opened from a Personal Java application? Closing a socket is not sufficient: It does not disconnect the data call, or it is closed only after a connection timeout.

#2 Old RE: Disconnecting a data call from a Personal Java application - 2002-06-18, 02:28

Join Date: Mar 2003
Posts: 194
iswara
Offline
Regular Contributor
It is not possible to disconnect a data call connection directly from a Java application. However, the workaround is to use a JNI wrapper for a NIFMAN (network interface manager) C++ API.

NIFMAN provides a monitoring API which allows applications to monitor the status of the network connection, and display it to their users.

First close the socket normally. If there are no other application sockets currently connected, the following simple C++ code will cause the connection to be immediately closed:

---CLIP---

#include <nifman.h> // for RNif (nifman.lib)

RNif nif;
if (nif.Open() == KErrNone)
{
nif.Stop();
nif.Close();
}

---CLIP---

Please see the documentation and examples from Nokia 9200-series SDK for Java on how to use JNI.

10765
  « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Forum Jump

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia 
RDF Facets: qdcZidentifierQSxhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomE2fforumE2fshowthreadE2ephpE3ftE3d5632X qdcZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qdcZtypeQUqfntypeZCommunityContentQ qdcZtypeQUqfntypeZE44iscussionQ qdcZtypeQUqfntypeZE44iscussionContentQ qdcZtypeQUqfntypeZE52esourceQ qdcZtypeQUqfntypeZWebpageQ qdcZtypeQUqmarsZManagedE52esourceQ qdcZtypeQUqwebZInformationE52esourceQ qdcZtypeQUqwebZPageQ qdcZtypeQUqwebZE52esourceQ qdcZtypeQUqrdfsZE52esourceQ qfnZtopicQUqfnTopicZjavaQ qfnZtypeQUqfntypeZCommunityContentQ qfnZtypeQUqfntypeZE44iscussionQ qfnZtypeQUqfntypeZE44iscussionContentQ qfnZtypeQUqfntypeZE52esourceQ qfnZtypeQUqfntypeZWebpageQ qfnZuserE5ftagQSxjavaX qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX qrdfZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qrdfZtypeQUqfntypeZCommunityContentQ qrdfZtypeQUqfntypeZE44iscussionQ qrdfZtypeQUqfntypeZE44iscussionContentQ qrdfZtypeQUqfntypeZE52esourceQ qrdfZtypeQUqfntypeZWebpageQ qrdfZtypeQUqmarsZManagedE52esourceQ qrdfZtypeQUqwebZInformationE52esourceQ qrdfZtypeQUqwebZPageQ qrdfZtypeQUqwebZE52esourceQ qrdfZtypeQUqrdfsZE52esourceQ