Hello again everyone,
Maybe using two senders/receivers would help. The control protocol,
which can use XML or JSON, or whatever, would identify the files by
their md5 sum? The file transfert protocol would detect the header of
each file to separate them.

a

gary clark wrote:
> There are probably several way to accomplish this I just needed to think 
> about it a wee bit longer. One way would be to prepend an identifier to the 
> file,strip the header from the raw data on reception and then save the image. 
> I dont think its complicated. I may need a seperate server to handle the 
> files though.
> 
> Thanks,
> Garyc
> 
> --- On Sat, 2/13/10, Maarten ter Huurne <maar...@treewalker.org> wrote:
> 
>> From: Maarten ter Huurne <maar...@treewalker.org>
>> Subject: Re: [Twisted-Python] Sending jpeg data over TCP/IP
>> To: "Twisted general discussion" <twisted-python@twistedmatrix.com>
>> Date: Saturday, February 13, 2010, 6:07 PM
>> On Sunday 14 February 2010, Alexandre
>> Quessy wrote:
>>
>>> This said, sending them using a programmer's solution
>> - not a sysadmin
>>> solution - would be closer to my own skills, so I am
>> interested in
>>> knowing if this could be suitable. I think, though,
>> that it would be
>>> faster to use a transfert protocol that would be
>> implemented in C, not
>>> Python. Am I wrong?
>> I would suggest to implement it in Python first and then
>> benchmark it. Maybe 
>> the simplest implementation is already fast enough. Maybe
>> the bottleneck is 
>> the network or the disk you're writing to; in that case you
>> would be better 
>> off upgrading your switches or buying an SSD instead of
>> writing C code.
>>
>> Bye,
>>         Maarten
>>
>> _______________________________________________
>> Twisted-Python mailing list
>> Twisted-Python@twistedmatrix.com
>> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
>>
> 
> 
> _______________________________________________
> Twisted-Python mailing list
> Twisted-Python@twistedmatrix.com
> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
> 

_______________________________________________
Twisted-Python mailing list
Twisted-Python@twistedmatrix.com
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Reply via email to