Re: Read / Write image file
By the way, what is 'rb' and 'wb' ?
Also, when I create a client/server sockets I do something like...
SERVER
-----------
server.bind(('', 4321))
(sock, addr) = server.accept()
x = server.recv(1024)
CLIENT
------------
client.connect(('localhost', 4321))
x = open("abc.txt", "rb")
client.send(x)
client.close()
x.close()
....when I do this I get a constant beeping on my PC, any idea why?
Also, on the server ...how can I set that up so I can receive a
file/data of unknown size instead of just 1024?
thanks
.
Relevant Pages
- Re: Messaging alert
... a file name and other information thru the client socket to then process ... You only need 1 server. ... append fbuffer($sock) ... # You also need a protocol to transfer the filename. ... (comp.lang.tcl) - Re: Messaging alert
... a file name and other information thru the client socket to then process ... # Why would you want to stop the server? ... append fbuffer($sock) ... # You also need a protocol to transfer the filename. ... (comp.lang.tcl) - Re: A Gtk2 IRC Chat Client
... giving the user the ability to disconnect and reconnect to the IRC ... sub chat_build { ... close $sock; ... # Connect to the IRC server. ... (comp.lang.perl.misc) - Re: event ids 8026 8250 2102 2104 9188 - please help
... i went into the pix and changed the ip addr to the new one. ... these errors when i rebooted the server this morning. ... we recently switched from broadband to fiber optics connectivity. ... (microsoft.public.exchange.admin) - remote execution over a socket with slave interpreter
... Below are two scripts (for a server and for a client) that I have been using to try to set up some simple remote execution in a windows environment. ... This gave me my basic functionality, but then I decided to make it a bit more polished by creating a slave interpreter on the server side, and to feed back any results to the client side. ... proc acceptConnection {sock addr port} {global port_array ... #end of file or connection drop close $sock puts "Close $port_array" unset port_array} else {puts $line ... (comp.lang.tcl) |
|