Sign in to follow this  
Followers 0
programermcgeek

TCP errors...errors everywhere!

5 posts in this topic

im getting an evil error in teh beta thing, i cant open a listening socket...heres my code:

TCPStartup()

$MainSocket = TCPListen("67.165.248.90", 190,  100)
If $mainSocket = -1 Then
    MsgBox(1, "Debug", "Error #" & @error)
    Exit
EndIf

$command = ""

while 1
    sleep("1500")
    $command = TCPRecv ($MainSocket, 255)
    If $command = "" Then
        Sleep("1")
    Else
        If $command = "mouse1" Then MouseMove(0, 0, 40)
        IF $command = "haxoff" Then exitloop
    EndIf
wend

TCPCloseSocket($MainSocket)

TCPShutdown()

b the w i get error #10049

also i am using teh beta cause i am nice like that


someday, in the far future, spam will own the world...

Share this post


Link to post
Share on other sites



im getting an evil error in teh beta thing, i cant open a listening socket...heres my code:

b the w i get error #10049

google: winsock error 10049

Question/Problem: WSAEADDRNOTAVAIL (10049) Cannot assign requested address.

Answer/Solution: Normally results from an attempt to create a socket with an address not on this machine.

I guess the IP address you specified in TCPListen() is not configured on your machine. Check with "ipconfig /all".

Cheers

Kurt


__________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf *

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

maybe i should try my lan ip ;) ill edit later and say if it worked...

/edit ...I PRAISE THEE

Edited by programermcgeek

someday, in the far future, spam will own the world...

Share this post


Link to post
Share on other sites

woohoo...errors, errors and more errors, well, not really an error this time but just it either wont send the packets or wont recive them...

i get no response

...i thank thee again


someday, in the far future, spam will own the world...

Share this post


Link to post
Share on other sites

woohoo...errors, errors and more errors, well, not really an error this time but just it either wont send the packets or wont recive them...

check out the help file samples for TCPRecv() and TCPSend(). Start with that and then modify the code to your needs.

Cheers

Kurt


__________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf *

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0