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 8209259
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T09:39:41+00:00 2026-06-07T09:39:41+00:00

I have implemented the NSStream delegate. I have implemented the same as Witap Application

  • 0

I have implemented the NSStream delegate. I have implemented the same as Witap Application

In that, I have implemented handleEvent delegate

- (void) stream:(NSStream *)stream handleEvent:(NSStreamEvent)eventCode{

  switch(eventCode) {

           case NSStreamEventOpenCompleted:
              {
                 [tcpServer release];
                 tcpServer = nil;               
                 break;
              }
          case NSStreamEventHasBytesAvailable:    
              {
                  //done my stuff here
              }
         case NSStreamEventErrorOccurred:    
              {


    UIAlertView *wifiLostAlert = [[UIAlertView alloc] initWithTitle:@"Wifi
 connection error" message:@"" delegate:nil cancelButtonTitle:@"Continue" otherButtonTitles:nil];
                     [wifiLostAlert show];
                     [wifiLostAlert release];
                      wifiLostAlert = nil;

              }

    }

In my client site, they reported an issue as

“Multiple time when we was either trying to send a message to the
learner or synching devices she got the following message: “Wifi
connection error.
Same happend at 2 different networks and it doesnot recover quickly
even if the network is pretty strong signal.”

Unfortunately, I am unable to reproduce this issue in my site and it’s working fine in another client site too!!.

Any clue’s regarding the issue. Any help on this is appreciated.

Thank you.

  • 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-06-07T09:39:45+00:00Added an answer on June 7, 2026 at 9:39 am

    I would recommend you supply the client with an updated version that displays more information about what error is actually occurring.

    You can get more information about the error using:

    NSError* error = [stream streamError];
    

    You can find more information about NSError at NSError Class Reference.

    Something like this might work in your case:

    NSString* errorMessage = [NSString stringWithFormat:@"%@ (Code = %d")",
                                       [error localizedDescription],
                                       [error code]];
    

    Then change your UIAlertView to this:

    UIAlertView *wifiLostAlert = [[UIAlertView alloc] 
                         initWithTitle:@"Stream Error" 
                               message:errorMessage
                              delegate:nil         
                     cancelButtonTitle:@"Continue" 
                     otherButtonTitles:nil];
    

    This won’t solve the problem but will give both you and your client more information about the root cause is.

    For example, you may find the error is “Connection refused.” which would point to a problem not with WiFi signal strength but in the server-side software.

    Good luck!

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

Sidebar

Related Questions

I have implemented correctly bump's api, and added this code: - (void) configureBump {
I have implemented Facebook into my app but now I find that whenever I
I have implemented a UISearchDisplayController that allows users to search a table. Currently the
I have implemented a simple entity ejb with a @version annotation. I expect that
I have implemented a client-server transferring from Windows desktop application to iPhone App. I
I have implemented ADFS authentication for an asp.net 4.0 application. I have hosted the
I have implemented SQL Server session mode for an asp.net application. <sessionState mode=SQLServer compressionEnabled=true
I have implemented language localization to an Android application. My questions are: I can't
I have implemented a simple appmod that handle WebSockets and echo back the messages.
I have implemented a ViewFlipper with 8 child view in my application as follows.

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.