CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner:
Guys its urgent .. Help with socket

 



zoomer003
Novice

Jun 28, 2010, 6:37 AM

Post #1 of 4 (1073 views)
Guys its urgent .. Help with socket Can't Post

use IO::Socket;
my $sock = new IO::Socket::INET (
PeerAddr => 'simplex.exe',
PeerPort => '15650',
Proto => 'tcp', 6 );
die "Could not create socket: $!\n" unless $sock;
print $sock "RU";
close($sock);

its keep telling me invalid arguments, what do i do


rovf
Veteran

Jun 29, 2010, 12:54 AM

Post #2 of 4 (1063 views)
Re: [zoomer003] Guys its urgent .. Help with socket [In reply to] Can't Post

simplex.exe doesn't look like a valid hostname for me....


l4teral
User

Jun 29, 2010, 7:52 AM

Post #3 of 4 (1054 views)
Re: [rovf] Guys its urgent .. Help with socket [In reply to] Can't Post

rovf is right on the money. This is obviously copy pasted from someone else's code, but setting that aside.....you're basically pointing this program to try to connect to a program, not an address.........which is impossible.


zoomer003
Novice

Jul 2, 2010, 11:07 AM

Post #4 of 4 (1040 views)
Re: [l4teral] Guys its urgent .. Help with socket [In reply to] Can't Post

l4teral definitely someones else code. Wink


(This post was edited by zoomer003 on Jul 2, 2010, 11:07 AM)
Attachments: ass.JPG (220 KB)

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives