Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > Does Socket.send send all bytes?

Reply
Thread Tools

Does Socket.send send all bytes?

 
 
Chris Reay
Guest
Posts: n/a
 
      11-03-2003
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)?
 
Reply With Quote
 
 
 
 
ts
Guest
Posts: n/a
 
      11-04-2003
>>>>> "C" == Chris Reay <(E-Mail Removed)> 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
 
Reply With Quote
 
 
 
 
Chris Reay
Guest
Posts: n/a
 
      11-04-2003
ts <(E-Mail Removed)> wrote in message news:<(E-Mail Removed)>...
<snip>
> Just try it
>
> svg% ruby -rsocket -e 'p TCPSocket.new("ruby-lang.org", 80).send("1" * 81920, 0)'
> 33304
> svg%


Fair comment Thanks!
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
![Oof Topix] All McCain, All Flip-Flop, All the Time Bucky Breeder Computer Support 7 09-27-2008 03:33 PM
AS5400 upgrade and does not send all VSA's to radius FDV-MADSP Cisco 0 09-15-2006 01:56 PM
Mail.SmtpMail.Send won't send to one of my addresses Nathan Sokalski ASP .Net 3 11-23-2005 09:25 PM
smtplib does not send to all recipients dccarson@gmail.com Python 8 04-14-2005 05:38 PM
Pre-Send Request Headers, Pre-Send Request Content =?Utf-8?B?S2V2aW4gQnVydG9u?= ASP .Net 0 12-31-2004 06:29 PM



Advertisments