Click here to Skip to main content
15,123,679 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralLogging into Admin Account from limited user account. Pin
23-Oct-04 17:43
suss23-Oct-04 17:43 
GeneralRe: Logging into Admin Account from limited user account. Pin
Dave Kreskowiak24-Oct-04 15:53
mveDave Kreskowiak24-Oct-04 15:53 
GeneralRe: Logging into Admin Account from limited user account. Pin
Mekong River24-Oct-04 16:09
MemberMekong River24-Oct-04 16:09 
GeneralRe: Logging into Admin Account from limited user account. Pin
Dave Kreskowiak25-Oct-04 3:10
mveDave Kreskowiak25-Oct-04 3:10 
GeneralRe: Logging into Admin Account from limited user account. Pin
Member 145028524-Oct-04 18:08
MemberMember 145028524-Oct-04 18:08 
GeneralRe: Logging into Admin Account from limited user account. Pin
Dave Kreskowiak25-Oct-04 3:11
mveDave Kreskowiak25-Oct-04 3:11 
GeneralPeep2peer, choose ports for TCP Pin
[DK]KiloDunse23-Oct-04 15:30
Member[DK]KiloDunse23-Oct-04 15:30 
GeneralRe: Peep2peer, choose ports for TCP Pin
Fade (Amit BS)24-Oct-04 19:58
MemberFade (Amit BS)24-Oct-04 19:58 
First of all, Don't Panic Smile | :)

Basicly what you need to do is pretty simple.

First, decide on one port number (for instance 7070 you mentioned), now both peers listen on that port, and both peers know that they are both listening on that port.

When Peer A wants to send a file to Peer B, it creates a new socket (do not bind that socket to ANY port) and connects it to Peer B (by the known port).
Now- Peer B will receive a 'Connection Request', and creates a new socket to accept the new connection.
At this point, Peer A can send asorted information about the file it want to send like size, file name hash etc. and then begin to send the file.

Because this is all happening on different sockets than the listening ones, both peers can initiate any additional number of connection as you wish (well not any number of connections but a reasonable one Smile | :) )

That's it, note that Peer A can also connect and Request a file from Peer B, the possibilities are endless.

I can send you an example project i wrote with all this connection creation working,
i will post it with an article, but it will take some time as i'm on a tight schedule now and can't write the article now.

Let me know if you want the example.

Fade (Amit BS)
GeneralRe: Peep2peer, choose ports for TCP Pin
[DK]KiloDunse25-Oct-04 4:25
Member[DK]KiloDunse25-Oct-04 4:25 
GeneralSending Emails Using VB.Net Pin
Modern_night23-Oct-04 13:42
MemberModern_night23-Oct-04 13:42 
GeneralRe: Sending Emails Using VB.Net Pin
Kumar0925-Oct-04 5:35
MemberKumar0925-Oct-04 5:35 
GeneralRe: Sending Emails Using VB.Net Pin
Modern_night27-Oct-04 0:02
MemberModern_night27-Oct-04 0:02 
GeneralHelp making a listbox appear when I write something Pin
Rylogy23-Oct-04 5:57
MemberRylogy23-Oct-04 5:57 
GeneralRe: Help making a listbox appear when I write something Pin
MohammadAmiry23-Oct-04 23:13
MemberMohammadAmiry23-Oct-04 23:13 
GeneralRe: Help making a listbox appear when I write something Pin
Rylogy24-Oct-04 5:00
MemberRylogy24-Oct-04 5:00 
GeneralRe: Help making a listbox appear when I write something Pin
Dave Kreskowiak24-Oct-04 15:46
mveDave Kreskowiak24-Oct-04 15:46 
GeneralRe: Help making a listbox appear when I write something Pin
Rylogy24-Oct-04 15:47
MemberRylogy24-Oct-04 15:47 
GeneralRe: Help making a listbox appear when I write something Pin
Fade (Amit BS)24-Oct-04 20:10
MemberFade (Amit BS)24-Oct-04 20:10 
GeneralRe: Help making a listbox appear when I write something Pin
Rylogy25-Oct-04 12:12
MemberRylogy25-Oct-04 12:12 
GeneralHelp modifying text Pin
Rylogy23-Oct-04 4:06
MemberRylogy23-Oct-04 4:06 
GeneralRe: Help modifying text Pin
Dennis C. Dietrich23-Oct-04 5:21
MemberDennis C. Dietrich23-Oct-04 5:21 
GeneralRe: Help modifying text Pin
Rylogy23-Oct-04 5:26
MemberRylogy23-Oct-04 5:26 
GeneralRe: Help modifying text Pin
Rylogy23-Oct-04 5:33
MemberRylogy23-Oct-04 5:33 
GeneralRe: Help modifying text Pin
Rylogy23-Oct-04 5:39
MemberRylogy23-Oct-04 5:39 
GeneralHalt Sequence Pin
Red Sunday22-Oct-04 12:28
MemberRed Sunday22-Oct-04 12:28 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.