Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Whats all this I hear about not being able to use a socket as a filehandle?

able filehandle hear socket
0
Posted

Whats all this I hear about not being able to use a socket as a filehandle?

0

Early versions of Perl for Win32 didn’t allow you to read or write to a socket as if it were a filehandle. The current versions fully support this, and you shouldn’t worry about it too much. If the version that you’re using doesn’t work well, get the latest build from ActiveWare (see question 1.4). Contrary the ActiveWare FAQ (see question 3.7), you don’t have to specify USE_SOCKETS_AS_FILEHANDLES when building Perl for Win32 to get sockets to work like filehandles. It doesn’t _hurt_, but it’s not necessary. 8.5. How do I write a sockets server in Perl for Win32? There’s an example of a socket server, TCP-SERVER, in the eg directory of your perl directory. In general, information on socket programming for UNIX is applicable to Perl for Win32. See especially the perlipc page of the documentation. Note that using Perl for Win32 is *not* a good way to implement a server, since you will only be able to service one client at once. This is because a) Perl, the language, doesn’t support threa

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123