Home: Perl Programming Help: Win32 Programming Help:
Ports & Packets



Pro_4
User

May 26, 2002, 10:12 AM


Views: 7380
Ports & Packets

Hey!



OK.. let me try to explain this.. OK say you have two programs binded to the same port, one receives a packet, is that packet still available for the other program..? kinda asking whether or not that it would steal the packet or if packets are globally available to any program that happens to be looking at that port number. Thanks :)


Jean
User


Jun 24, 2002, 6:50 AM


Views: 7372
Re: [Pro_4] Ports & Packets

I'm not much of a pro in the matter, but (as usual) because no one has answered yet:

1. Are you sure you can have more than one program capture the same port?

2. If the answer to 1 is yes (and I'd be surprised if it were so), then I'm sure the packet will be stolen unless you use some explicit PeekSomething() function.

IMO a program that attempts to use already captured port will either fail or get the exclusive control of the port, thus disabling the program that was using the port earlier...


Jean Spector
SQA Engineer @ Exanet
jean.spector@softhome.net


There are only 10 types of people in the world -
Those who understand binary, and those who don't.


Pro_4
User

Jul 15, 2002, 3:27 PM


Views: 7355
Re: [Jean] Ports & Packets

Sry for the long wait between replys.

There has to be a way to do both #1 & 2. Have you ever used a packet/port scanner. Basically what it does is scans all of your ports and records all incoming/outgoing packets from your computer. It also does this without interrupting the flow of the programs that are using their respective ports. So.. do they know of some secret stash of packets or is there a simple solution to this problem.



Anyways thanks for the help/opinions.