Even with sockets, you would not use threads. ENet especially, each connection 
gives you separate events when you service the host. As far as APIs, please 
read the documentation and tutorials I have provided for ENet for just such a 
purpose, to tell people how to use the library. For example, see here:
http://enet.bespin.org/Tutorial.html

Otherwise, your questions need to be very much more specific, otherwise no one 
will be able to give you any answers.

Lee

On 06/29/2011 09:08 PM, sandeep nimmagadda wrote:
Sir, what I am looking for is: In our project we have eight remote nodes which render an 
image parallely which means if we divide the screen into eight equal pieces, image on 
each piece of the screen is formed because of one of the eight nodes. The volume of the 
data from which we get the image is in terabytes. We would like to have only the so 
formed image on my laptop screen. To do this we would like to only transfer pixels of the 
image from the remote nodes to my laptop to view the image. Normally, this can be 
achieved using threads in socket programming. Socket programming is becoming complex. So, 
I thought of using "enet" for my application. I would like to know weather ENET 
can be used for this kind of application. If 'YES' please let me know how to start about 
(appreciate if you can give me the API's).


NOTE: I don't want to transfer the entire file. I would only like to transfer 
the PIXELS from remote nodes to my laptop.

@ Mr. Pernama: Thank you sir. As I explained above, I have to transfer the 
pixels in non-blocking form. So, sir as you guessed I think I need a 
multi-threaded enet.

Thanks for the support,
Regards,
Sandeep.

On Tue, Jun 28, 2011 at 12:36 PM, Syed Setia Pernama <[email protected] 
<mailto:[email protected]>> wrote:

    It is different from multi-threading in multi-core environment because if 
you intend to parallel file transfer it (regardless of how it is done), it 
still goes thru the same ethernet wire - so it remains 'single-core' operation. 
But probably what you mean is to transfer a big file in non-blocking manner? Or 
you simply want a multi-threaded enet that doesn't block other operation such 
as graphics rendering?
    *From:* sandeep nimmagadda <[email protected] 
<mailto:[email protected]>>
    *To:* [email protected] <mailto:[email protected]>
    *Sent:* Wednesday, June 29, 2011 1:17 AM
    *Subject:* [ENet-discuss] Parallel file transfer using ENET?

    Respected Members,

    I would like to know weather we can write a parallel file transfer program 
using ENET? Just like the way we do using threads in socket-programming. If we 
can do parallel file transfer using ENET please let me know the function which 
we can use to do so.

    Thanks for the support,
    Regards,
    Sandeep.

    _______________________________________________
    ENet-discuss mailing list
    [email protected] <mailto:[email protected]>
    http://lists.cubik.org/mailman/listinfo/enet-discuss



    _______________________________________________
    ENet-discuss mailing list
    [email protected] <mailto:[email protected]>
    http://lists.cubik.org/mailman/listinfo/enet-discuss



_______________________________________________
ENet-discuss mailing list
[email protected]
http://lists.cubik.org/mailman/listinfo/enet-discuss

_______________________________________________
ENet-discuss mailing list
[email protected]
http://lists.cubik.org/mailman/listinfo/enet-discuss

Reply via email to