We don't understand each other when speaking about datagram, I'm not using
"datagram based" communication, my camera (which I can't modify) send those
UDP "packets" if you prefer, which are transmitted in 1514 byte fragments ,
but this should be transparent to the program as those packets are
reassembled at the OS level.

There is nothing wrong with UDP for this kind of video streaming
application, the chance that you lose a datagram (or packet if you prefer)
is very unlikely on a LAN, and this is really not a problem if you lose one.

I'm pretty sure this 8192 limit comes from a mistake or misunderstanding on
my side of the way free pascal / synapse work, but not on the way the data
is sent over the network.

Rgds,


Clement

2013/5/24 Lukas Gebauer <gebyl...@mlp.cz>

> > Thanks Lukas for your answer, I tried with ansiString, I may have done
> > something wrong but the max size I was receiving was 8192 bytes. I
> > will give it another try tonight.
>
> It is because you are using datagram based communication! Each
> datagram have limited maximum size, 8kb in your case. So, you cannot
> receive larger datagram by one call of RecvPacket. It just read one
> pending datagram from the queue.
>
> Your protocol propably divide your bigger data into multiple UDP
> datagrams. It is not good idea, because:
>
> - delivery of UDP datagrams is unreliable. You can lost any datagram
> on the wires without any notification.
>
> - you can read datagrams in different order then they has been sent.
>
> In your case you must join multiple datagrams into your internal
> buffer/stream and then process it.
>
>
> --
> Lukas Gebauer.
>
> http://synapse.ararat.cz/ - Ararat Synapse - TCP/IP Lib.
> http://geoget.ararat.cz/ - Geocaching solution
>
>
>
> ------------------------------------------------------------------------------
> Try New Relic Now & We'll Send You this Cool Shirt
> New Relic is the only SaaS-based application performance monitoring service
> that delivers powerful full stack analytics. Optimize and monitor your
> browser, app, & servers with just a few lines of code. Try New Relic
> and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
> _______________________________________________
> synalist-public mailing list
> synalist-public@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/synalist-public
>
------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
_______________________________________________
synalist-public mailing list
synalist-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synalist-public

Reply via email to