directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Trustin Lee <trus...@gmail.com>
Subject Re: [mina] help with implementing a syslog server with mina
Date Fri, 13 Jan 2006 00:23:49 GMT
Hi,

2006/1/13, Kaspar Luethi <kaspar@humantools.ch>:
>
> >Does [mina] guaratee that it will always put a complete UDP message
> >in a buffer?
>
> i actually believe its guaranteed, but by UDP/IP, yes. i must really have
> mistunderstood the concept of UDP if this is wrong. the UDP packet is the
> ioSession is the message. that's why they require the packet being 1024
> bytes
> or smaller, so it does not have to be split into multiple UDP messages.
> which
> would give you the headache to figure out how to assemble which packets in
> which order...


Kaspar is right.  UDP packets are never splitted, so you don't need to wait
for the complete packet.  It's already complete.

Trustin
--
what we call human nature is actually human habit
--
http://gleamynode.net/
PGP Key ID: 0x854B996C

Mime
View raw message