[Twisted-Python] Weekly Bug Summary

2010-02-13 Thread exarkun
Bug summary __ Summary for 2010-02-07 through 2010-02-14 Bugs opened: 16Bugs closed: 12 Total open bugs: 1229 (+4) |== Type Changes |== Priority Changes |== Component Changes |Defect: +2 |Highest: +1 |Conch: -1 |Enhancement: +2 |H

Re: [Twisted-Python] Streaming File Transfer Protocol?

2010-02-13 Thread David Bolen
Darren Govoni writes: > I spoke too fast. But pardon my noobiness. > > Ok, so I am using a simple protocol that is listening on a TCP port. > > One the client side, I write 4096 bytes using > self.transport.write(bytes) > > on dataReceived side, I get only 1448. Quite possible, and even likely

Re: [Twisted-Python] Sending jpeg data over TCP/IP

2010-02-13 Thread Maarten ter Huurne
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 proto

Re: [Twisted-Python] Sending jpeg data over TCP/IP

2010-02-13 Thread Maarten ter Huurne
On Sunday 14 February 2010, gary clark wrote: > I want to send raw binary data but also text in the message. I am > currently sending ascii data to the twisted server via open-ssl. Its > great and twisted is cool. However I want to send a name of document and > then the raw data in the same messag

Re: [Twisted-Python] Sending jpeg data over TCP/IP

2010-02-13 Thread Alexandre Quessy
Hello, I have the same kind of task to do, and for now, I am thinking about using some kind of file sharing utility, such as Samba, to do so. It's probably a lot more efficient, since they are used to sharing files ! I would just send the file name, not the data itself. This said, sending them usi

Re: [Twisted-Python] Streaming File Transfer Protocol?

2010-02-13 Thread Darren Govoni
Thanks. I'm a shameless noob On Sun, 2010-02-14 at 10:08 +1100, Andrew Bennetts wrote: > Darren Govoni wrote: > [...] > >2) Can I force twisted to send ALL the bytes I issue in the write without > >re-thinking TCP or forcing me to re-implement TCP? > > Also, >

[Twisted-Python] Sending jpeg data over TCP/IP

2010-02-13 Thread gary clark
Hello, I want to send raw binary data but also text in the message. I am currently sending ascii data to the twisted server via open-ssl. Its great and twisted is cool. However I want to send a name of document and then the raw data in the same message? Is this possible with twisted. Essentially

Re: [Twisted-Python] Streaming File Transfer Protocol?

2010-02-13 Thread Andrew Bennetts
Darren Govoni wrote: [...] >2) Can I force twisted to send ALL the bytes I issue in the write without >re-thinking TCP or forcing me to re-implement TCP? Also,

Re: [Twisted-Python] Streaming File Transfer Protocol?

2010-02-13 Thread Andrew Bennetts
Darren Govoni wrote: >I spoke too fast. But pardon my noobiness. > >Ok, so I am using a simple protocol that is listening on a TCP port. > >One the client side, I write 4096 bytes using self.transport.write(bytes) > >on dataReceived side, I get only 1448. > >Now, what I "wan

Re: [Twisted-Python] Streaming File Transfer Protocol?

2010-02-13 Thread John Santos
Hi - I still regard myself as a newbie, and may have mangled some of the terminology, but ... A question I can answer! I had the same problem... Make your protocol class be an Int16StringReceiver (or IntStringReceiver, I think there is an 8 and a 32 available as well), and Twisted will do

Re: [Twisted-Python] Streaming File Transfer Protocol?

2010-02-13 Thread Darren Govoni
I spoke too fast. But pardon my noobiness. Ok, so I am using a simple protocol that is listening on a TCP port. One the client side, I write 4096 bytes using self.transport.write(bytes) on dataReceived side, I get only 1448. Now, what I "want" to happen is when I issue a write of a known numbe