Re: Could not bind

2001-09-21 Thread Stephen Montgomery-Smith
feature. I am asking if that is normal, > > or whether I forgot something. > > > > If I run the program it does fine. If I then kill the program (after it > > has accepted connections), and then run the program again, the bind > > function fails to work, and I get a m

Re: Could not bind

2001-09-16 Thread Terry Lambert
program (after it > has accepted connections), and then run the program again, the bind > function fails to work, and I get a message like "Could not bind" (see > program below). If I wait a while, like a minute or two, then the > program will work again. Is this normal behav

Re: Could not bind

2001-09-15 Thread Dan Moschuk
run the program again, the bind | function fails to work, and I get a message like "Could not bind" (see | program below). If I wait a while, like a minute or two, then the | program will work again. Is this normal behavior, or did I miss | something? [ snip ] This is normal behav

Re: Could not bind

2001-09-15 Thread Ben Smithurst
Stephen Montgomery-Smith wrote: > listenfd=socket(AF_INET,SOCK_STREAM,0); > bzero(&servaddr,sizeof(servaddr)); > servaddr.sin_family=AF_INET; > servaddr.sin_addr.s_addr=htonl(INADDR_ANY); > servaddr.sin_port=htons(3000); > if (bind(listenfd,(struct sockaddr*)&servaddr,sizeof(servaddr)

Re: Could not bind

2001-09-15 Thread Matthew Jacob
ction fails to work, and I get a message like "Could not bind" (see > program below). If I wait a while, like a minute or two, then the > program will work again. Is this normal behavior, or did I miss > something? > > I got the programming style from Richard Steven

Could not bind

2001-09-15 Thread Stephen Montgomery-Smith
program again, the bind function fails to work, and I get a message like "Could not bind" (see program below). If I wait a while, like a minute or two, then the program will work again. Is this normal behavior, or did I miss something? I got the programming style from Richard Steven's