Click to See Complete Forum and Search --> : ras and winsock
Mathew Joy
April 15th, 2003, 03:04 AM
Hi,
I connected NT to 2000 server via RAS and the connection was successful. But when I tried to use the winsock with the server on 2000 and the client on NT, I get timeout after say about 30 secs at the time of connecting to the server (using connect()). Do I have to log into 2000 using LogonUser()? Is there some prerequesties for using winsock over RAS?
--
Regards,
Mathew Joy
Horst
April 22nd, 2003, 02:10 AM
I don't understand clearly what you want to do, but I think you have written a server and a client using winsock api and it doesn't connect corectly? Is there a connection beween your using of RAS and winsock? There might be problem with granted access rights. If not there might be a need for more information.
Horst
Mathew Joy
April 22nd, 2003, 02:16 AM
It was an old post. I got the answer and it was something to do with the configuration of 2000. Now problem is whether it is possible to disconnect ras from the server side? To make it clear, the client is dialing into server using ras apis and the server is configured to accept the connection. Once the connection is made, I make use of winsock to communicate. So the question is can the server winsock application use any apis' to disconnect from client? The situation arises when dealing with
security.
Thanx
Horst
April 22nd, 2003, 02:35 AM
If you can use winsock then you have got a socket handle?
If yes, then you can use closesocket at any time to close the connection from both sides.
Hope that helped!
Horst
Mathew Joy
April 22nd, 2003, 02:42 AM
Yes, I can disconnect the winsock connection. But what I want is to disconnect the RAS connection. From the client side I can use the RasHangUp api, but how can I disconnect from the server side? Hope u understood my question :)
gzbugkiller
October 2nd, 2003, 11:30 AM
You can either tell client to shutdown RAS before close socket or have a look at RAS Server API reference.
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.