| To: | netdev@xxxxxxxxxxx |
|---|---|
| Subject: | sendto problem |
| From: | Phoemphun Oothongsap <poothon@xxxxxxxxxxxxxxx> |
| Date: | Wed, 31 May 2000 18:15:41 -0400 |
| Organization: | Advanced Networking Group |
| Sender: | owner-netdev@xxxxxxxxxxx |
Hi
I am using Red Hat 6.2. I have a problem with using "sendto" command.
I try to send a udp packet to different three machines. The packets are
sent back to back. The first packet can get through but the second
packet gets the Connection refused, the third packet is ok. I get the
alternated
result between connection refused and successful packet.
This is a code snippet :
:
:
while(1) {
for(i=1;i<=3;i++) {
ret = sendto(sock,(char *)&packet,
length,0,
(struct sockaddr*)&neighborAddr[i],
addrlen);
}
:
:
}
:
:
Do anybody have an idea how to fix this problem?
Regards,
Phoemphun Oothongsap
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [PATCH] eepro100 device name <-> pci bus/slot/func mapping, Jeff Garzik |
|---|---|
| Next by Date: | Re: sendto problem, Statux |
| Previous by Thread: | Re: [PATCH] eepro100 device name <-> pci bus/slot/func mapping, Jeff Garzik |
| Next by Thread: | Re: sendto problem, Statux |
| Indexes: | [Date] [Thread] [Top] [All Lists] |