Re: Widnows sending RST in tpc/ip connection
- From: "Niklas Olsson" <niklaso@xxxxxxxxxxx>
- Date: Wed, 23 Nov 2005 12:21:43 +0100
Thank you for the suggestions,
however I can't get it to work, but maybe I'm doing it wrong.
I used
Socket = socket (AF_INET, SOCK_STREAM, 0):
and then
local_sin.sin_family = AF_INET;
local_sin.sin_port = htons (nPort);
local_sin.sin_addr.s_addr = htonl (INADDR_ANY);
bind (Socket, (struct sockaddr *) &local_sin,
sizeof (local_sin)
I thought that this might be enough, but is it?
I tried also to call listen() after bind but I always end up with windows
(or some program other than mine) sending the reset message.
Since everything works find if I let winsock connect, there must be
something I don't do correctly.
(my SYN message seem to be working fine (I get back the SYN,ACK) and in
comparassion to the SYN winsock send I can't find any differencies except
checksum)
I don't have any firewall running that would block.
thanks for any advice
/Niklas
"Niklas Olsson" <niklaso@xxxxxxxxxxx> wrote in message
news:u7HItL37FHA.2012@xxxxxxxxxxxxxxxxxxxxxxx
> Hello,
> I have my own program that connects to another computer SYN-> SYN,ACK->ACK
> but when I receive the SYN,ACK windows sends a RST message.
> I use winsock to open a port that I close when I am done.
> Why does windows send this reset message?
>
> thanks!
> /Niklas
>
.
- Follow-Ups:
- Re: Widnows sending RST in tpc/ip connection
- From: Dave Lowther
- Re: Widnows sending RST in tpc/ip connection
- References:
- Widnows sending RST in tpc/ip connection
- From: Niklas Olsson
- Widnows sending RST in tpc/ip connection
- Prev by Date: Re: Converting mapped drive to UNC path
- Next by Date: Re: Widnows sending RST in tpc/ip connection
- Previous by thread: Re: Widnows sending RST in tpc/ip connection
- Next by thread: Re: Widnows sending RST in tpc/ip connection
- Index(es):
Relevant Pages
|