RbCafe

RealBasic Complete Socket

Posted in Codex by RbCafe on the October 27th, 2005

DEPRECATIONS

Deprecation One: Socket.PPPConnect, Socket.PPPStatus and Socket.PPPDisconnect are now deprecated. This is because they don’t make much sense. A PPP connection (point to point protocol) is a dial-up connection that must occur before a TCP/IP connection can be used.

It is a feature that is used when Ethernet is not available, to dial in to a server for your Internet access. This is not a feature that is used on a socket-by-socket basis. So calling Socket1.PPPConnect or Socket2.PPPDisconnect will affect ALL sockets on the system. In fact, saying Socket.PPPDisconnect will affect sockets that do not even belong to REALbasic!

These features are system-wide feature, and thus have been moved to the System class. Instead of using the Socket.PPP functions, please use their System counterparts. These are System.PPPConnect, System.PPPStatus and System.PPPDisconnect. The functionality of these features remains the same.

Deprecation Two: The old Socket class has been deprecated, and replaced with the new TCPSocket class, which can be used identically to the old Socket class. We strongly recommend that you use TCPSocket in newer versions of REALbasic. The only good reason to use Socket instead is if you need backwards compatibility with REALbasic 4.5 and earlier (though the new socket features will obviously not be available in the earlier versions).

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13


Leave a Reply

You must be logged in to post a comment.