Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.
 Entire forum ➜ SMAUG ➜ Running the server ➜ Problem When Running Smaug

Problem When Running Smaug

It is now over 60 days since the last post. This thread is closed.     Refresh page


Pages: 1  2 

Posted by Novak   (4 posts)  Bio
Date Reply #15 on Mon 13 Aug 2007 04:14 AM (UTC)
Message
memset( &sa, '\0', sizeof( sa ) );
sa.sin_family = AF_INET;
sa.sin_port = htons( mudport );

if( bind( fd, ( struct sockaddr * )&sa, sizeof( sa ) ) == -1 )
{
perror( "Init_socket: bind" );
close( fd );
exit( 1 );
}

if( listen( fd, 50 ) < 0 )
{
perror( "Init_socket: listen" );
close( fd );
exit( 1 );
}

return fd;
}
This is where it stops comm.c lines 598-617. The only thing that I could find on google for invalid argument to listen, is that there is no fuction for listen. I have included all the needed librarys that I know of. If this is a network configuration problem, any suggestions on what I should do?
Top

Posted by David Haley   USA  (3,881 posts)  Bio
Date Reply #16 on Mon 13 Aug 2007 06:21 AM (UTC)
Message
What port are you trying to use? If it's below 1024 you might run into trouble since those are system ports.

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


48,864 views.

This is page 2, subject is 2 pages long:  [Previous page]  1  2 

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.