Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 809519
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T00:44:31+00:00 2026-05-15T00:44:31+00:00

I am having a few issues with sockets within my Java SIP client. When

  • 0

I am having a few issues with sockets within my Java SIP client. When I bind to an address and port, if something goes wrong I have to attempt to reconnect, usually after I’ve stopped and restarted the process. Problem with that is then the port is bound and I am forced to increment the local port.

How can I remove the binding to the port I am targeting before binding to it?

If that isnt possible, then how can I trap the process just before it ends so that I can locate the socket binding and close it manually?

@Jason – Jason, but in this case I am writing the Client and have no access to the server, the port I am referring to is on the client and is local. Is there a way to flush the port binding before attempting to connect? If not is there a way to trap the process interrupt, as in perl there is a way to trap a ‘die’ signal and do some post processing, does Java have this? If so I could call close() on the socket connection

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T00:44:32+00:00Added an answer on May 15, 2026 at 12:44 am

    Ok – I found a way to trap Java signals by reading this tutorial online – http://www.ibm.com/developerworks/java/library/i-signalhandling/

    This way one can trap the die signal and close the connection.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm having a few issues with a client's website not displaying properly in IE.
I'm having a few issues with Android/Eclipse with using Android Market Billing. I have
I'm having a few integration issues. I have 2 models which need to be
I have been having a few issues using the quadrature function in python 2.7
I have just downloaded a PHP blog script and am having a few issues
I am new to Capybara testing and am having a few issues. I have
I'm having a few issues with creating an object within an object, it's syntax
Having a few issues trying to think of a good way to have a
I'm just upgrading to Struts 2.3.1.2, and having a few issues with JUnit tests.
I've been having a few problems running PHP-based utilities within the command line ever

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.