PPP STATUS CODES
When calling System.PPPStatus, there are a number of codes returned to you that have thus far been confusing, not well documented, and sometimes incorrect. Here is the definitive explanation about the status values returned:
0
There is no connection present. This means that you haven’t called System.PPPConnect, or that the connection process failed. It could also mean that you have called System.PPPDisconnect, and the connection has been disconnected.
1
Not used.
2
Not used.
3
The connection is being closed. This means that you have called System.PPPDisconnect, and the disconnection process has begun. It does not mean that the disconnect is complete.
4
The connection is being attempted. This does not mean that you have a valid Internet connection, and so using your TCPSocket or UDPSockets might cause an error.
5
You have a valid connection. This means that you can use your TCPSocket and UDPSocket code because you are fully connected.
These are not the only errors that you can get from SocketCore.LastErrorCode. If REALbasic cannot adequately map the underlying provider’s error code to one of the above codes, we will pass you the provider’s error code. Traditionally, for the Mac, these error codes are negative numbers in the range [-3211, -3285]. For Windows, these error codes are usually positive numbers in the range [10004, 11004]. For a description of the Macintosh error codes, find a copy of MacErrors.h, and for Windows error codes, find a copy of WinSock.h.
By Aaron Balman
Leave a Reply
You must be logged in to post a comment.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13