Something like peer-to-peer


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Something like peer-to-peer
# 1  
Old 11-19-2006
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 ! Smilie
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. IP Networking

Problem with Static route through peer to peer connection

Hi, I am trying to add a static route in one of 3 server (S3) so that I can access the main application server (S1). But problem is, the server (S3) where I am trying to add static route is connected with another server (S2) which is in same private network of application server (S1). I have... (9 Replies)
Discussion started by: ImranBD
9 Replies

2. Linux

Econnreset by peer

Hi I'm trying to upload my website via FTP FileZilla with 123-reg on a Linux package. I built my site using iWeb which tells me that it's ok to publish to FTP which I do and it downloads the directories ok. It connects then stops saying econnreset by peer. I've no idea what this means and I... (3 Replies)
Discussion started by: Emma heptonstal
3 Replies

3. IP Networking

Firewall stopping Peer to Peer File sharing

I am looking for advice on a router. I am new to Linux and am trying to use Limewire and Ktorent and can make no connection. Limewire indicates I have a firewall. I have a Linksys router WRK54G and my guess is that is the problem. I have spent hours upon hours trying to get it to work using info... (0 Replies)
Discussion started by: Paul K
0 Replies

4. Solaris

peer-to-peer connection on solaris and windows

hi everyone. As a solaris/unix beginner, I am trying a peer-to-peer connection with my Sun and Windows. Here is my setup: -Windows XP -Sun System (Netra T1) which is connected to the console of the WinXP machine. -Windows XP has wireless connection which enables me to access internet ... (3 Replies)
Discussion started by: graboid888
3 Replies

5. Shell Programming and Scripting

Connection reset by peer

hi i am connecting to a remote server using sftp protocol. i am using the command like "sftp USER01@122.10.12.45" then i got the error "Couldn't read packet: Connection reset by peer" please help its very urgent (5 Replies)
Discussion started by: Satyak
5 Replies

6. UNIX for Advanced & Expert Users

Remote search on a peer

Hello Guys, Can I do a search on a different IP address remotely without sshing or using rsh. Something in lines of : find DIFF_IP:DIRNAME -name "*.log" -print0 Thanks (1 Reply)
Discussion started by: srivishnu_253
1 Replies

7. IP Networking

connection reset by peer

:confused: HI, We have 2 servers ( win 2003 + sun 5.8 ) and we run a rsh from the NT to the UNIX. The program runs a shell script on the UNIX and waits for the answer in the EOF. How ever, after period of appx 2 min there is a reply "Recv failed:Connection reset by peer". while the... (5 Replies)
Discussion started by: eyalush
5 Replies

8. UNIX for Dummies Questions & Answers

Peer to Peer

Hello all, Ok here is my deal. I have almost convinced the wife to let me remove WIN2k from our family machine and install some flavor of open source. I'm think Red Hat at this piont. The only things I need to keep her happy is some peer to peer file shareing program (like kazaa) and AIM or... (2 Replies)
Discussion started by: TAT2ME74
2 Replies
Login or Register to Ask a Question