Re: Simple Socket Setup
- Posted by Brian Jackson <bjackson at 2FARGON.HYPERMART.NET> Jan 10, 2000
- 489 views
>By the way, does it >matter which socket I use? As long as you use the same one on both the client and the server, you're fine. >I know that alot of them are >reserved, but can I use them anyways. >Thanks... Andy There are some standards, 80 for HTTP, 21 for FTP, and so on, but there's no law that says you have to use them for that purpose. As a standard rule any sock > 1023 is used for a user-defined protocol or private transmission. The problem with your code is that mySocket never gets assigned a value because you forgot to hook into the onOpen event. Add this line of code after the onOpenMainWindow() procedure: onOpen[MainWindow] = routine_id("onOpenMainWindow") That should do the trick... Brian