Ask a Question related to Ruby, Design and Development.
-
Chris Reay #1
Does Socket.send send all bytes?
Does ruby's Socket.send send all bytes at once, or does one have to
keep count of bytes sent and repeat sending until all are sent (a la C
etc)?
Chris Reay Guest
-
send data and then alter it after send
when attaching data using send, to a published video...is it then possible to alter this data? ie: if a title for the movie was attached using... -
Binary data transfer with socket.send inconsisten
We want to transfer binary data via a socket connection. To stop extended characters becoming two bytes, we set - system.useCodepage = true; This... -
Can' t read all bytes from Socket
Hi I have simple client/server socket scripts that that send some data from the server to the client. It works fine, except the client can't seem... -
Send Message over UNIX Socket
i have a problem to send data over an unix domain socket after the socket is created i am reading data from stdin und want to send it over socket... -
Socket State Before Call To Send()?
I am having troublee determining if a socket is still connected to the remote host before I make a call to send(). I know how to determine this... -
ts #2
Re: Does Socket.send send all bytes?
>>>>> "C" == Chris Reay <mrchameleon@hotmail.com> writes:
C> Does ruby's Socket.send send all bytes at once, or does one have to
C> keep count of bytes sent and repeat sending until all are sent (a la C
C> etc)?
Just try it
svg% ruby -rsocket -e 'p TCPSocket.new("ruby-lang.org", 80).send("1" * 81920, 0)'
33304
svg%
--
Guy Decoux
ts Guest
-
Chris Reay #3
Re: Does Socket.send send all bytes?
ts <decoux@moulon.inra.fr> wrote in message news:<rfc8ymwflq0.fsf@moulon.inra.fr>...
<snip>Fair comment :) Thanks!> Just try it
>
> svg% ruby -rsocket -e 'p TCPSocket.new("ruby-lang.org", 80).send("1" * 81920, 0)'
> 33304
> svg%
Chris Reay Guest



Reply With Quote

