Hi.
I'm writing local message queue library which uses the unix domain
socket(PF_LOCAL, SOCK_DGRAM).
By experimental, on my gentoo linux system (kernel 2.6.15, glibc
2.3.5),
the maximum size of a unix-domain datagram packet is 65536(0x10000)
bytes.
Is there a named macro for this size?
If not, does it fixed value across most systems?
Or, Is there an easy way to determine the maximum size on run-time?
Thanks for advance.
|
|
0
|
|
|
|
Reply
|
cinsky (25)
|
3/20/2006 10:44:57 PM |
|
<cinsky@gmail.com> wrote in message
news:1142894697.784818.141710@u72g2000cwu.googlegroups.com...
> Hi.
>
> I'm writing local message queue library which uses the unix domain
> socket(PF_LOCAL, SOCK_DGRAM).
>
> By experimental, on my gentoo linux system (kernel 2.6.15, glibc
> 2.3.5),
> the maximum size of a unix-domain datagram packet is 65536(0x10000)
> bytes.
>
> Is there a named macro for this size?
No that I know of.
> If not, does it fixed value across most systems?
It is fixed.
> Or, Is there an easy way to determine the maximum size on run-time?
>
> Thanks for advance.
It is 65,536, it will always be 65,536. That is the maximum datagram
size that the UDP protocol can support.
DS
|
|
0
|
|
|
|
Reply
|
David
|
3/21/2006 6:17:12 AM
|
|
On 2006-03-21, David Schwartz <davids@webmaster.com> wrote:
>
> <cinsky@gmail.com> wrote in message
> news:1142894697.784818.141710@u72g2000cwu.googlegroups.com...
>> Hi.
>>
>> I'm writing local message queue library which uses the unix domain
>> socket(PF_LOCAL, SOCK_DGRAM).
>>
>> By experimental, on my gentoo linux system (kernel 2.6.15, glibc
>> 2.3.5),
>> the maximum size of a unix-domain datagram packet is 65536(0x10000)
>> bytes.
>>
>> Is there a named macro for this size?
>
> No that I know of.
>
>> If not, does it fixed value across most systems?
>
> It is fixed.
>
>> Or, Is there an easy way to determine the maximum size on run-time?
>>
>> Thanks for advance.
>
> It is 65,536, it will always be 65,536. That is the maximum datagram
> size that the UDP protocol can support.
UDP is the protocol used for INET datagrams, i didn't think it applied
necessarily to LOCAL ones
|
|
0
|
|
|
|
Reply
|
Jordan
|
3/21/2006 6:24:18 AM
|
|
On 20 Mar 2006 14:44:57 -0800, cinsky@gmail.com wrote:
>Hi.
>
>I'm writing local message queue library which uses the unix domain
>socket(PF_LOCAL, SOCK_DGRAM).
>
>By experimental, on my gentoo linux system (kernel 2.6.15, glibc
>2.3.5),
>the maximum size of a unix-domain datagram packet is 65536(0x10000)
>bytes.
>
>Is there a named macro for this size?
>If not, does it fixed value across most systems?
No, and there is quite some variation in this value across systems.
>Or, Is there an easy way to determine the maximum size on run-time?
For Linux, have a look at the descriptions of SO_SNDBUF and SO_RCVBUF
in the socket(7) manual page. These values affect the maximum Unix
domain datagram size.
Cheers,
Michael
|
|
0
|
|
|
|
Reply
|
Michael
|
3/21/2006 7:09:01 PM
|
|
Sorry, somehow I thought this was UDP. You are right.
DS
|
|
0
|
|
|
|
Reply
|
davids
|
3/22/2006 1:56:58 AM
|
|
Sorry, somehow I thought this was UDP. You are right.
DS
|
|
0
|
|
|
|
Reply
|
davids
|
3/22/2006 1:57:02 AM
|
|
|
5 Replies
593 Views
(page loaded in 0.083 seconds)
Similiar Articles: determine the size of the unix socket packet. - comp.unix ...Hi. I'm writing local message queue library which uses the unix domain socket(PF_LOCAL, SOCK_DGRAM). By experimental, on my gentoo linux system (ker... Incorrect IP header data in RAW Sockets - comp.unix.solaris ...How to indicate EOF while writing data in socket? - comp.unix ... determine the size of the unix socket packet. - comp.unix ... I'm writing local message queue library ... Network Packet size (netstat command) - comp.unix.solaris ...Network Packet size (netstat command) - comp.unix.solaris ... Increasing TCP buffer and window for more ... determine the size of the unix socket packet ... netstat ... Max UDP message size - comp.unix.solarisMax lenght of UNIX NIS group - comp.unix.admin determine the size of the unix socket packet. - comp.unix ... Max UDP message size - comp.unix.solaris No; the maximum size ... TCP/IP seq number gone, socket raw, C - comp.unix.programmer ...... IP seq number gone, socket raw, C - comp.unix.programmer ... It simply lets the user to send a packet from localhost:33000 to ... determine the size of the unix socket ... Variable Length Packets - comp.unix.programmer> Bytes_received += read(client_socket, (rbuffer+2), (Size_of_packet-2 ... How does the application determine packet boundaries ... comp.unix.programmer 10544 articles. 53 ... Message queue sizing on Linux - comp.databases.ibm-db2You cannot set this to the MAX size as you might exhaust kernel ... comp.databases.ibm-db2 Efficiency of shared memory - comp.unix.programmer System call to get size of ... packet loss on loopback interface!? - comp.unix.solarisNetwork Packet size (netstat command) - comp.unix.solaris ... ... comp.unix.solaris packet loss on loopback interface!? - comp.unix.solaris... datagrams, possibly a socket ... Socket SO_RCVBUF information. - comp.unix.programmerTCP receive buffer size for NFS - comp.unix.solaris Socket SO_RCVBUF information. - comp.unix.programmer Socket SO_RCVBUF information. - comp.unix.programmer packet, read ... recvfrom returns with an error code of 14, EFAULT "Bad Address ...What it does it takes the packet off the socket and places ... at the number thinking it was the size of the packet ... unicast and broadcast on same socket - comp.unix ... determine the size of the unix socket packet. - comp.unix ...Hi. I'm writing local message queue library which uses the unix domain socket(PF_LOCAL, SOCK_DGRAM). By experimental, on my gentoo linux system (ker... Unix & Linux: determine the size of the unix socket packet ...programming.itags.org: Unix & Linux question: determine the size of the unix socket packet., created at:Wed, 07 May 2008 11:46:00 GMT with 474 bytes, last updated ... 7/24/2012 5:03:54 AM
|