This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2010-07-23 16:18:36

waveOSBeta
Scratcher
Registered: 2009-12-08
Posts: 1000+

[ping IP %s] block

This block will ping an IP address. Does anybody have the code?

Last edited by waveOSBeta (2010-07-23 16:19:04)


http://internetometer.com/image/10202.png]
New signature coming soon!  smile

Offline

 

#2 2010-07-23 16:23:24

johnnydean1
Scratcher
Registered: 2010-02-12
Posts: 1000+

Re: [ping IP %s] block

What do you mean by ping?


You can now reach me on Twitter @johnnydean1_

Offline

 

#3 2010-07-23 16:23:58

meowmeow55
Scratcher
Registered: 2008-12-24
Posts: 1000+

Re: [ping IP %s] block

You could try, in the method of code, to somehow execute the link block method with the path to the IPv4 ping utility and the entered IP. This would only work under Windows, though. (I have no idea how to write the code, this is just a suggestion.)

Last edited by meowmeow55 (2010-07-23 16:24:25)


Yawn.

Offline

 

#4 2010-07-23 16:24:24

waveOSBeta
Scratcher
Registered: 2009-12-08
Posts: 1000+

Re: [ping IP %s] block

send a block of data to an ip to determine whether that ip is on the network.


http://internetometer.com/image/10202.png]
New signature coming soon!  smile

Offline

 

#5 2010-07-24 04:59:21

johnnydean1
Scratcher
Registered: 2010-02-12
Posts: 1000+

Re: [ping IP %s] block

I dont get it, so you want to see if the IP is connected?


You can now reach me on Twitter @johnnydean1_

Offline

 

#6 2010-07-24 08:21:26

waveOSBeta
Scratcher
Registered: 2009-12-08
Posts: 1000+

Re: [ping IP %s] block

Yes.


http://internetometer.com/image/10202.png]
New signature coming soon!  smile

Offline

 

#7 2010-07-24 08:27:29

johnnydean1
Scratcher
Registered: 2010-02-12
Posts: 1000+

Re: [ping IP %s] block

I can do it with 2 blocks.


You can now reach me on Twitter @johnnydean1_

Offline

 

#8 2010-07-24 19:27:07

waveOSBeta
Scratcher
Registered: 2009-12-08
Posts: 1000+

Re: [ping IP %s] block

Okay.

How?


http://internetometer.com/image/10202.png]
New signature coming soon!  smile

Offline

 

#9 2010-07-24 19:51:37

iCode-747
Scratcher
Registered: 2009-11-21
Posts: 1000+

Re: [ping IP %s] block

Nice idea!

If this were under suggestions, I would support.


-End Transmission-

Offline

 

#10 2010-07-24 21:29:52

waveOSBeta
Scratcher
Registered: 2009-12-08
Posts: 1000+

Re: [ping IP %s] block

Epic idea -

ping ip (variable)
if ip active
join mesh on (variable)


http://internetometer.com/image/10202.png]
New signature coming soon!  smile

Offline

 

#11 2010-07-24 21:34:17

ihaveamac
Scratcher
Registered: 2007-09-22
Posts: 1000+

Re: [ping IP %s] block

A pinging block like the ping function in cmd?
No.
People could do this to do a Denial of Service attack to a site. Maybe.


~ihaveamac - visit ihaveamac.net

Offline

 

#12 2010-07-24 21:42:49

meowmeow55
Scratcher
Registered: 2008-12-24
Posts: 1000+

Re: [ping IP %s] block

Yeah, that'd be great for things like chat to check if the entered IP is available.

BTW, is my idea possible?


Yawn.

Offline

 

#13 2010-07-25 09:40:59

waveOSBeta
Scratcher
Registered: 2009-12-08
Posts: 1000+

Re: [ping IP %s] block

Yeah.


http://internetometer.com/image/10202.png]
New signature coming soon!  smile

Offline

 

#14 2010-07-25 13:08:03

bendad
Scratcher
Registered: 2008-06-14
Posts: 100+

Re: [ping IP %s] block

i need this block!!!!!!!!!


Hi!  big_smile
Good to see you. (Even if I don't know you  wink  )

Offline

 

#15 2010-07-26 05:46:52

fanofcena
Scratcher
Registered: 2008-07-03
Posts: 1000+

Re: [ping IP %s] block

Hmm that block can be used if squeak uses a function like C++s system block

all u have to do is declare an fstream that will take the data from out and then type the block like

int Ping(char* ip)
{
char Pinger[15]={"ping "};
strcat(Ping,ip);
int ping = StreamIN(system(Pinger);
return ping;
}

Though its the C++ code and i havent explained the StreamIN function but its just a sketch of how to make it on sqeuk if there exists Fstream and System operation functions.


And btw

for creating a DDOS attack mate u need a faster language then scratch  big_smile .

Last edited by fanofcena (2010-07-26 05:48:00)


http://i53.tinypic.com/2vxr2c0.png Click whats above u might make a cute planet happy ^_^

Offline

 

#16 2010-07-26 06:46:35

johnnydean1
Scratcher
Registered: 2010-02-12
Posts: 1000+

Re: [ping IP %s] block

Um with some modding to the sourse its easy as you get a variable to hold your IP adress and then use the block to see if its connected. Ill make a panther project to act as a demo...


You can now reach me on Twitter @johnnydean1_

Offline

 

#17 2010-07-26 07:08:07

johnnydean1
Scratcher
Registered: 2010-02-12
Posts: 1000+

Re: [ping IP %s] block

Here:
http://www.mediafire.com/file/6d66gr9zph22y80/Ping IP.pt

3 Scripts...


You can now reach me on Twitter @johnnydean1_

Offline

 

#18 2010-07-26 11:44:16

waveOSBeta
Scratcher
Registered: 2009-12-08
Posts: 1000+

Re: [ping IP %s] block

What's the squeak code?


http://internetometer.com/image/10202.png]
New signature coming soon!  smile

Offline

 

#19 2010-07-26 11:44:54

johnnydean1
Scratcher
Registered: 2010-02-12
Posts: 1000+

Re: [ping IP %s] block

Its scripts not code...


You can now reach me on Twitter @johnnydean1_

Offline

 

#20 2010-07-26 11:46:27

waveOSBeta
Scratcher
Registered: 2009-12-08
Posts: 1000+

Re: [ping IP %s] block

Yes, but will it work on the Scratch Source Code?


http://internetometer.com/image/10202.png]
New signature coming soon!  smile

Offline

 

#21 2010-07-26 11:48:17

johnnydean1
Scratcher
Registered: 2010-02-12
Posts: 1000+

Re: [ping IP %s] block

Have you seen the project?


You can now reach me on Twitter @johnnydean1_

Offline

 

#22 2010-07-26 11:49:53

waveOSBeta
Scratcher
Registered: 2009-12-08
Posts: 1000+

Re: [ping IP %s] block

no, on a comp w/o panther.


http://internetometer.com/image/10202.png]
New signature coming soon!  smile

Offline

 

#23 2010-07-26 11:51:07

johnnydean1
Scratcher
Registered: 2010-02-12
Posts: 1000+

Re: [ping IP %s] block

oh, you need to see the project


You can now reach me on Twitter @johnnydean1_

Offline

 

#24 2010-07-26 11:52:26

waveOSBeta
Scratcher
Registered: 2009-12-08
Posts: 1000+

Re: [ping IP %s] block

go to screentoaster.com.


http://internetometer.com/image/10202.png]
New signature coming soon!  smile

Offline

 

#25 2010-07-26 12:01:35

SeptimusHeap
Scratcher
Registered: 2010-02-01
Posts: 1000+

Re: [ping IP %s] block

Couldn't you just make an 'active' variable, and check if it's 1? If it's not connected, it would be 0, by default.


http://i46.tinypic.com/dw7zft.png

Offline

 

Board footer