thanks, ... the trick is

the tutorial uses a IoConnector connector = new NioDatagramConnector();
IoConnector.getSessionConfig() returns a IoSessionConfig => this Object has
no method setSendBufferSize

you have to use NioDatagramConnector connector = new NioDatagramConnector()
=> then you get the DatagramSessionConfig and are able to to the Buffer-size
modification.


thanks & cheers
sebastian

2009/9/14 Viktor Balazs <[email protected]>

> Hi,
>
> Try to use setReceiveBufferSize or setSendBufferSize in
> DatagramSessionConfig (
>
> http://mina.apache.org/report/trunk/apidocs/org/apache/mina/transport/socket/DatagramSessionConfig.html
> )
>
> Regards,
> CyB
>
> 2009/9/14 Sebastian Wagner <[email protected]>:
> > hi,
> >
> >
> > I would like to increase the writeBufferSize in my MINA-Client.
> >
> > Its an UDP Client similar to the one in the Tutorial (
> > http://mina.apache.org/udp-tutorial.html)
> >
> > Just that the byte[] message that I try to send is bigger than the buffer
> > size.
> >
> > I am using MINA-2.0 M6
> > How can increase the writeBufferSize.
> >
> > I see in the API docs this Method:
> >
> http://mina.apache.org/report/trunk/apidocs/org/apache/mina/filter/stream/AbstractStreamWriteFilter.html#setWriteBufferSize%28int%29
> >
> > but how do I get this Filter to my IoSession or
> > IoConnector-default-Session-Config?
> >
> > Do I have to overwrite an existing Filter or how does it work?
> >
> > Sorry but I cannot find any docu or mailing list entry to this problem
> which
> > is quite curieuse.
> >
> > thanks,
> > sebastian
> >
> > --
> > Sebastian Wagner
> > http://www.webbase-design.de
> > http://openmeetings.googlecode.com
> > http://www.laszlo-forum.de
> > [email protected]
> >
>



-- 
Sebastian Wagner
http://www.webbase-design.de
http://openmeetings.googlecode.com
http://www.laszlo-forum.de
[email protected]

Reply via email to