The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com



UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
ssh - connection reset by peer osxhawk Shell Programming and Scripting 2 06-05-2008 02:18 PM
Remote search on a peer srivishnu_253 UNIX for Advanced & Expert Users 1 02-25-2008 03:41 PM
Need error code: rcp - reset by peer jimcampanella Shell Programming and Scripting 1 06-13-2007 02:54 AM
connection reset by peer eyalush IP Networking 5 11-03-2005 09:45 AM
Peer to Peer TAT2ME74 UNIX for Dummies Questions & Answers 2 08-27-2002 08:45 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 11-19-2006
!_30's Avatar
!_30 !_30 is offline
Registered User
  
 

Join Date: Sep 2006
Location: Romania
Posts: 37
Something like peer-to-peer

Hey all !

I have a nice question ( maybe simple one ).
I coded a simple server , chat server. I want to implement send files options. But here I come to a nasty thing .. I cannot face out.

Let's say that two clients are already connected to the server.( clients are just from another contry each other , and the server , wherever in the world ).

Let's say I want to send a file from client 1 to client 2.Cool , what can I do , I can send the file to the network socket descriptor of client 1 -> to be sent to the server -> and then the server to receive it from its socket descriptor and sent to client 2. What a loose of speed , isen't it ?

I want to implement , something like peer-to-peer ( if its the corect idea to be mentioned ). I want something like :

Client 1 -> client 2. not : Client 1 -> Server -> Client 2 ( normaly some headers wil be passed to the server to client , to be known by client 1 where to send those data ).


What I really mean : Ehen client1 wants to send data to client 2 , those data to be send directly ( * ) to client 2.

(*) : client 1 says to server : Hey I wanna send a file to client 2 , give me its address to send to it that file ( peer to peer ).


Something like .. maybe I haven't explain really what I want , but .. if someone can give me a clue !


Thanks in advance !
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On




All times are GMT -4. The time now is 05:05 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0