Gnutella Forums

Gnutella Forums (https://www.gnutellaforums.com/)
-   General Gnutella Development Discussion (https://www.gnutellaforums.com/general-gnutella-development-discussion/)
-   -   Director Client connection problem! (https://www.gnutellaforums.com/general-gnutella-development-discussion/16607-director-client-connection-problem.html)

siulca October 24th, 2002 05:41 AM

Director Client connection problem!
 
I just started developing a client in Macromedia Director.
The client is already able to connect to other servants but for a maximum of around 10 secs only!

My client does not receive any reply from the pings it sends!

Any explanations and/or suggestions to fix this problem would be appreciated.

Thanks in advance.




PS> Any Director Lingo experts around? I could do with some help!

Paradog October 24th, 2002 06:50 AM

Re: Director Client connection problem!
 
Quote:

Originally posted by siulca
I just started developing a client in Macromedia Director.
The client is already able to connect to other servants but for a maximum of around 10 secs only!

My client does not receive any reply from the pings it sends!

Any explanations and/or suggestions to fix this problem would be appreciated.

Thanks in advance.




PS> Any Director Lingo experts around? I could do with some help!

You're that Lingo guy again huh?
Your client should send pongs to all incoming pings, if you don't the neighboor usually disconnects.
You can use Shareaza's packet viewer to debug, thats what I used to do.

BUT WHY LINGO

siulca October 24th, 2002 07:06 AM

that's why!
 
Because I como from a multimedia background and Lingo it's one of two languages I am confortable with.

The other one is actionScript.

I wish I knew C :(

Paradog October 24th, 2002 07:10 AM

Re: that's why!
 
Quote:

Originally posted by siulca
Because I como from a multimedia background and Lingo it's one of two languages I am confortable with.

The other one is actionScript.

I wish I knew C :(

I'm just not sure if Lingo is suitable for a fast Gnutellaclient
or if it would even just work.

I mean I haven't heard from a Office-like program made in Flash.
Its just multimedia eyecandy (Director/Flash)

siulca October 24th, 2002 07:11 AM

BTW that Packet Dump from Shareaza looks quite handy!

Thanks.

Paradog October 24th, 2002 07:16 AM

Quote:

Originally posted by siulca
BTW that Packet Dump from Shareaza looks quite handy!

Thanks.

Yeah that thing was called packet dump. Right... :)

siulca October 24th, 2002 07:35 AM

Probaly you are right and I am wasting my time building the client in Director.

I ahd no problem sending the handshake 0.6 headers and I get replies but when it comes to send a Ping or Pong it doesn't work. I think that's because everything Director sends is a String! And I can't seem to find a way of sending an Array of bytes which forms the Ping, Pong, etc packets.

Conclusion I am stuck and don't know how to get moving.
:(

Paradog October 24th, 2002 09:37 AM

Quote:

Originally posted by siulca
Probaly you are right and I am wasting my time building the client in Director.

I ahd no problem sending the handshake 0.6 headers and I get replies but when it comes to send a Ping or Pong it doesn't work. I think that's because everything Director sends is a String! And I can't seem to find a way of sending an Array of bytes which forms the Ping, Pong, etc packets.

Conclusion I am stuck and don't know how to get moving.
:(

Yeah, strings and plain messages work,
but I guess the types like Byte, Integer, Endian and that stuff
arent well covered.

Really you should learn some other "real" languages.
I've been coding a VB client, I too wish I could code C :)

siulca October 25th, 2002 06:20 AM

learning C or C++
 
Which pakage would the experts recommend to learn C?

Should I start with C or C++?

GregorK October 25th, 2002 08:41 AM

Start with Java to learn the the OO concepts and the basic syntax (syntax is only little different from C/C++ ). Then go to C++.
Going directly to C++ often causes that you start using bad OO programing concept to solve difficult things.
Better you start thinking OO right away thats why I would not recommend starting with C.

Gregor


All times are GMT -7. The time now is 11:22 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 ©2011, Crawlability, Inc.

Copyright © 2020 Gnutella Forums.
All Rights Reserved.