I wrote some socket-communication programs and now I want to rewrite them using the built-in functions iso the IO::Socket library.But i can't figure out how to set a timeout like you can do in the constructor when using IO::Socket.What i tried was adding these 2 lines of code
for setting a 1 second timeout.
They don't work and i can't find out what does. Maybe someone can help me,
Thank you in advance