>
> Thank's

What i need a library for using synchronous socket, so i wont to use event
such as (on 'data' ).

as an example of what i have:

>
> var socket = new SocketSync();
> socket.open('localhost', 8856);
> socket.write('my request');
> var mydata= socket.read();
> socket.end();


instead of

var socket = new Socket();
> socket.open('localhost', 8856);
> socket.write('my request');
>
 socket.on('data',function(data){
>        var mydata= data;
>
socket.end();

});


>
>
2012/5/27 mscdex <[email protected]>

> On May 27, 7:35 am, Serti Ayoub <[email protected]> wrote:
> > it's my first post in this group, i'm new on nodejs field.
> >
> > I have done an ssjs code with wakanda server , the code use a
> > synchronous socket. i want to use it in nodeJS but i dont find
> > synchronous Socket.
>
> You won't find synchronous network I/O in node. That is by design.
>
> The API for working with TCP sockets in node can be found here:
> http://nodejs.org/docs/v0.6.18/api/net.html
>
> --
> 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