It is not about node.js, it is a Javascript thing.

Socket will not receive any data util it "connect".

On Thu, Sep 6, 2012 at 11:35 PM, Hsu Ping Feng <[email protected]>wrote:

> https://github.com/joyent/node/blob/master/lib/net.js
>
> It is a good way to understand through source code.
>
>
> 2012/9/7 Mark Volkmann <[email protected]>
>
>> On Thu, Sep 6, 2012 at 4:40 PM, Jorge <[email protected]> wrote:
>>
>>> On 06/09/2012, at 23:11, Mark Volkmann wrote:
>>>
>>
>>
>>> My understanding is that node won't/shouldn't emit/dispatch any 'data'
>>> events to the socket 'socket' until *after* having called cb(socket), 'cb'
>>> being the callback function passed on to .createServer(cb).
>>>
>>
>> I suspect you are correct. I'd like to understand how Node implements
>> that. It would be great if this is already documented somewhere and I could
>> just read that to understand it.
>>
>> --
>> R. Mark Volkmann
>> Object Computing, Inc.
>>
>> --
>> Job Board: http://jobs.nodejs.org/
>> Posting guidelines:
>> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
>> You received this message because you are subscribed to the Google
>> Groups "nodejs" group.
>> To post to this group, send email to [email protected]
>> To unsubscribe from this group, send email to
>> [email protected]
>> For more options, visit this group at
>> http://groups.google.com/group/nodejs?hl=en?hl=en
>>
>
>
>
> --
> AUFKLÄRUNG ist der Ausgang des Menschen aus seiner selbstverschuldeten
> Unmündigkeit. Unmündigkeit ist das Unvermögen, sich seines Verstandes ohne
> Leitung eines anderen zu bedienen. Selbstverschuldet ist diese
> Unmündigkeit, wenn die Ursache derselben nicht am Mangel des Verstandes,
> sondern der Entschließung und des Mutes liegt, sich seiner ohne Leitung
> eines andern zu bedienen. Sapere aude! Habe Mut, dich deines eigenen
> Verstandes zu bedienen! ist also der Wahlspruch der Aufklärung.
>
> --
> Job Board: http://jobs.nodejs.org/
> Posting guidelines:
> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> You received this message because you are subscribed to the Google
> Groups "nodejs" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en
>

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Reply via email to