--------------------
You are not a real programmer until you end all your sentences with semicolons; (c) 2000 ROAD Programming
You are unique. Just like everybody else.
Visit the ROAD Programming Website for more programming help.
You are unique. Just like everybody else.
Visit the ROAD Programming Website for more programming help.
char *interface= NULL;
NumGateways = MaxConnections;
// set up local info
LocalInfo.sin_family = AF_INET;
LocalInfo.sin_addr.s_addr = (!interface)? INADDR_ANY:inet_addr(interface);
LocalInfo.sin_port = htons(ListenPort);
ListenSocket = socket(AF_INET, SOCK_STREAM, 0); // create TCP/IP Socket
if (Gateways.Inactive())
{
Gateways.Accept(ListenSocket);<br> if (OnConnectCallback)<br> OnConnectCallback(i);<br>}<br></code><br>ββββββββββ<br>check this section. I''m not sure where your logic for active vs. inactive is coming from.<br>ββββββββββ<br><br>And now for a little criteque? Adopt the hungarian naming convention. =) I don''t know what it is, but I can''t handle looking at code that has no simple method of determining if a variable is a global or member variable.<br><br> </i>
You are unique. Just like everybody else.
Visit the ROAD Programming Website for more programming help.