Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
GCDAsyncUdpSocket and maxReceiveSize
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
AL1  
View profile  
 More options Feb 2, 1:01 pm
From: AL1 <aly.l...@gmail.com>
Date: Thu, 2 Feb 2012 10:01:45 -0800 (PST)
Local: Thurs, Feb 2 2012 1:01 pm
Subject: GCDAsyncUdpSocket and maxReceiveSize
Hello,

I am sending image to a multicast group using GCDAsyncUdpSocket.  In
the GCDAsyncUdpSocket.m file, the default max4ReceiveSize is 9216.  If
I change this to say 32768, it still can't receive any packet size
that is greater than 9216.

Anything else needed to be set in order to be able to receive packet
greater than 9216?

Thank you.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Robbie Hanson  
View profile  
 More options Feb 3, 1:06 pm
From: Robbie Hanson <robbiehan...@deusty.com>
Date: Fri, 3 Feb 2012 10:06:06 -0800
Local: Fri, Feb 3 2012 1:06 pm
Subject: Re: GCDAsyncUdpSocket and maxReceiveSize
Good question.

I believe what you're running into is SO_RCVBUF. This is the maximum size allowed by the socket within the kernel. You can try using setsockopt to increase this for your socket. So somthing like this:

[udpSocket performBlock:^{
    int socketFD = [updSocket socketFD];
    setsockopt(….);

}];

Also, do some googling for MTU, and MTU path discovery. If you're sending packets this big, they're likely getting fragmented as ethernet MTU may be 1500 bytes. Which may or may not be an issue.

-Robbie Hanson

On Feb 2, 2012, at 10:01 AM, AL1 wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
AL1  
View profile  
 More options Feb 4, 9:04 pm
From: AL1 <aly.l...@gmail.com>
Date: Sat, 4 Feb 2012 18:04:37 -0800 (PST)
Local: Sat, Feb 4 2012 9:04 pm
Subject: Re: GCDAsyncUdpSocket and maxReceiveSize
It looked like MS Windows' default is around 9k as well.  It seemed to
work well for all three OSes (iOS, Mac OS X and Windows) for what I am
trying to do.
Robbie, good job on the GCDAsyncUDPSocket.  It allows me to quickly
implement what I am doing.  Thank you for your info.

AL

On Feb 3, 12:06 pm, Robbie Hanson <robbiehan...@deusty.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »