Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

How to connect to raw socket

by Rahul Gupta (Sexton)
on May 18, 2013 at 15:57 UTC ( #1034107=perlquestion: print w/replies, xml ) Need Help??
Rahul Gupta has asked for the wisdom of the Perl Monks concerning the following question:

Hi Guys,

I want to connect to rawsocket and send some command on it and get the output of the same command.

can anyone help me which perl module should i use for the same.

Thanks in advance

Replies are listed 'Best First'.
Re: How to connect to raw socket
by LanX (Chancellor) on May 18, 2013 at 16:09 UTC
    Hei Rahul,

    What's wrong with the search results for perl rawsocket and the mentioned perl modules ?

    Cheers Rolf

    ( addicted to the Perl Programming Language)

      Don't know about you, but my google search results are guided by my search history. The OP may not get the same result you do for any given search.

      It looks like the Socket, IO::Socket, or Net::RawIP may be useful modules.

      I would also look at the Perldocs for perlipc, socket, and connect.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1034107]
Approved by LanX
[Discipulus]: choroba i'm considering to add some connection checking to your CB tk program: something like..
[Discipulus]: i got also a parser error, but once
[KurtZ]: Code Tags
[KurtZ]: ?
[choroba]: <code>...</code>
[choroba]: Discipulus: Yes, all get calls should be wrapped in a Try::Tiny
[choroba]: you can just create a ticket :)
[Discipulus]: Ah! is i'll have some fre4e time i'll try try::tiny

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (9)
As of 2017-07-24 09:25 GMT
Find Nodes?
    Voting Booth?
    I came, I saw, I ...

    Results (349 votes). Check out past polls.