Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    May 2009

    Socket bind failed on the second binding

    Hi all,

    I have the problem about the socket. This socket set some parameters from SSL. It worked fine for the first time binding. Then, I restarted the application, and the socket cannot bind anymore and throw an errno 142.

    When running it on FP1 device, it works perfectly. But on FP2 device (E72), it failed on the second binding even though I restarted the application. E72 device is using the latest firmware. Is this the FP2 device problem?

    Below is the brief of my code:

    Initialize and binding code
    m_socket = socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP);
    if(bind(m_socket, (struct sockaddr*)&bindaddr, sizeof(bindaddr)) < 0)
    	// Print the errno;
    while (connect(m_socket, (struct sockaddr*)&sockaddr, sizeof(struct sockaddr_in)) < 0) {
            // return if error;
    Release code
    shutdown(m_socket, 2);
    I have been stuck in this for a long time. Please help me.

    Thanks a lot

  2. #2
    Registered User
    Join Date
    Aug 2012

    Re: Socket bind failed on the second binding

    we have a similar problem and it started with new E72 firmware released last year. The problem is also on newer E5 firmware (also FP2).

Similar Threads

  1. Socket Binding Problem on S60 3rd FP2 (works on FP1)
    By tbraeuer in forum Symbian Networking & Messaging (Closed)
    Replies: 4
    Last Post: 2009-10-20, 17:39
  2. Socket binding error..
    By kannabiran.krish in forum Symbian
    Replies: 5
    Last Post: 2007-09-24, 10:01
  3. binding socket problem
    By galaktico in forum Symbian
    Replies: 0
    Last Post: 2006-11-06, 12:55
  4. UDP socket Bind problem
    By inguvaseshu in forum Symbian Networking & Messaging (Closed)
    Replies: 4
    Last Post: 2006-06-21, 13:32
  5. Problem regarding binding of Socket..
    By Amit Mahajan in forum Symbian
    Replies: 7
    Last Post: 2006-04-26, 11:16

Posting Permissions

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