Re: [Tutor] Practicing with sockets

2014-10-31 Thread Danny Yoo
> > > I also reread the docs at https://docs.python.org/2/howto/sockets.html and > decided to remove the "b" from "open('myfile.png', 'wb') open('myfile.png', > 'rb') seeing how binary could be different depending on the machine and I > have not yet learned how to deal with this. > Whoa, wait. I

Re: [Tutor] Practicing with sockets

2014-10-31 Thread Bo Morris
ok so I finally got all the bytes to be transfered to the server, however I am unable to open the image on the server; although the filed is saved as a png file on the server, the server does not recognize the file as png format? I changed the loops to the following... Client: f = open('/Users/B

Re: [Tutor] Practicing with sockets

2014-10-31 Thread Bo Morris
Hey Danny, yes I have been having quite a bit of fun learning to work with sockets. Thank you for your response. I have applied what you suggested with the exception of the "logging." I read through the logging docs and figured logging would be learning for another day. I have a hard time enough st

Re: [Tutor] Practicing with sockets

2014-10-31 Thread Danny Yoo
On Fri Oct 31 2014 at 10:31:20 AM Bo Morris wrote: > Hello all, hope everyone is doing well. > > I have been practicing with sockets and I am trying to send a small png > from the client to the server. > Hey Bo, Very cool! Socket programming is fun, because it lets your programs start talking