Questions tagged [io-socket]

IO::Socket - Object interface to socket communications

IO::Socket provides an object interface to creating and using sockets. It is built upon the IO::Handle interface and inherits all the methods defined by IO::Handle.

25 questions
0
votes
2 answers

Socket.io communication between server and client - not receveing messages from client

I have an application server and client with socket.io, and I'm trying to have a communication between them. Unfortunetely it's not working as expected. In general the process is like. 1 - Initiate server. 2 - Initiate client 3 - Connect client in…
Bruno Pimenta
  • 19
  • 1
  • 4
0
votes
1 answer

How can I capture incoming UDP traffic using IO::Socket in Perl?

I am attempting to listen and continually grab incoming UDP traffic on port 162 as shown below, however, we never seem to enter the while loop. The traffic is visible via tcpdump on port 162 and the Perl code below is running as root. The script…
Marcus
  • 5,772
  • 8
  • 35
  • 60
0
votes
1 answer

Perl print backticks STDOUT

I am writing a very simple bind shell in Perl that is supposed to open a specific port on windows and when I connect to it with ncat, I should be able to write commands from ncat, those be executed on the machine and to return me STDOUT. Here is my…
Hamperfait
  • 465
  • 1
  • 6
  • 18
0
votes
2 answers

I'm having trouble understand what this javascript code snippet means. Can someone give comments line by line?

I know that it's supposed to take the text and send it to each socket but I'm not sure as to what each line does.