[QUOTE=Catdaemon;28421595]..except when their or your router blocks it and it goes through skype's servers. There are methods for breaking through such as hole punching but I'm not sure how well they work.[/QUOTE]
Just checked through Wireshark and I can see the IP of my friend. How?
[QUOTE=Darwin226;28421756]Just checked through Wireshark and I can see the IP of my friend. How?[/QUOTE]
Because the skype servers sent you his IP after verifying that you'll both be able to connect to each other normally.
Ok. So forget about getting the IP. I'll take care of that somehow.
The part I want to do is connect to that IP.
Why can I connect directly to him through Skype but get "Remote host actively refuses the connection" when I do it through my port and application?
Isnt there a way to do automatic port forwarding through UPnP or something?
The only other way to do it is with hole punching, but you still need a server and it only works for UDP afaik.
Basically you both UDP to a server, and tell the server the local port you are using to connect. The server gives the opposite client your port then you both connect directly.
Ok. So I'll learn to use UDP.
As I said. Passing info like the port and IP isn't a problem.
Open a port of the firewall and use UPnP, I tried it over a network and over the internet and both worked fine even with TCP. Also the language used is C# though a COM Component.
Only about 50% of routers support UPNP.
[editline]0[/editline]
[QUOTE=Darwin226;28422019]Ok. So I'll learn to use UDP.
As I said. Passing info like the port and IP isn't a problem.[/QUOTE]
You both have to connect to the server first so that the port is opened.
Wow, moved an if that was inside a while to the outside, now it's like 10x faster
I ran a benchmark
Left: old | Right: new
[img]http://dl.dropbox.com/u/2951174/c%2B%2B/lr.png[/img]
[editline]4th March 2011[/editline]
Though it's still slow.
[editline]4th March 2011[/editline]
Holy fuck it takes 700mb on the ram
[QUOTE=TerabyteS;28422173]Wow, moved an if that was inside a while to the outside, now it's like 10x faster
I ran a benchmark
Left: old | Right: new
[img_thumb]http://dl.dropbox.com/u/2951174/c%2B%2B/lr.png[/img_thumb]
[editline]4th March 2011[/editline]
Though it's still slow.[/QUOTE]
How long does it take to generate that maze?
[QUOTE=Dotmister;28422274]How long does it take to generate that maze?[/QUOTE]
Quite a lot of time for such a small grid, but does 60*40 grid pretty fast.
[editline]4th March 2011[/editline]
Corrected a memory leak with huge arrays that would make it get batshit crazy sizes on RAM with small grid size.
700mb -> 8mb
I can now have fun in safety :v:
I was wondering about making the maze playable after it's done..
[img]http://i53.tinypic.com/4pzgv8.png[/img]
About 6-7 seconds.
[QUOTE=Darwin226;28422718][img_thumb]http://i53.tinypic.com/4pzgv8.png[/img_thumb]
About 6-7 seconds.[/QUOTE]
What's the algorythm? Eller's?
My own. Something similar to depth first search.
[QUOTE=Darwin226;28422761]My own. Something similar to depth first search.[/QUOTE]
So you make your line go around and then when it's stuck it gets back a bit and looks for other routes?
[editline]4th March 2011[/editline]
Is it recursive?
Nope. Uses a stack.
[editline]4th March 2011[/editline]
But yes, works something like what you described.
I got my dual monitors set up again so I can code while watching The Simpsons :buddy:
[release]
[b]More on the qport[/b]
Qport was added to the NetChannel header to fix a bug. Before the qport, Quake server identified a client by the combination (remote IP,remote UDP port). This worked fine most of the time but certain NAT router can change their schema of port translation (remote UDP port) sporadically. UDP port being unreliable, John Carmack explained in one of his plans that he decided to identify a client by (remote IP, Qport in NetChannel header). This fixed the confusion and also allowed the server to adjust the target UDP response port on the fly.
[/release]
Found [url=http://www.fabiensanglard.net/quakeSource/quakeSourceNetWork.php]this[/url] in the bowls of my bookmarks. Keep it in mind.
[QUOTE=Darwin226;28422718][img_thumb]http://i53.tinypic.com/4pzgv8.png[/img_thumb]
About 6-7 seconds.[/QUOTE]
Could you make one with dark blue at 1920 x 1080 :3:?
Dark blue and black?
And yes, I can. It will take some time but I can.
[editline]4th March 2011[/editline]
[url]http://img846.imageshack.us/img846/4993/slika2.png[/url]
[QUOTE=Darwin226;28423715]Dark blue and black?
And yes, I can. It will take some time but I can.
[editline]4th March 2011[/editline]
[url]http://img846.imageshack.us/img846/4993/slika2.png[/url][/QUOTE]
I'm interested in the amount of time needed to generate that :smug:
Around 6 seconds.
[editline]4th March 2011[/editline]
Actually. 1 second without drawing it.
[QUOTE=Kamrua;28424449]I'm interested in the amount of time needed to generate that :smug:[/QUOTE]
Dunno about his, but mine took 27 seconds to make one that size using Eller's algorithm. Mine is fairly unoptimized though.
[QUOTE=Darwin226;28424583]Around 6 seconds.
[editline]4th March 2011[/editline]
Actually. 1 second without drawing it.[/QUOTE]
So 500x500 takes just as long as 1920x1080? o.O
Well I have no idea what I did but it's faster now.
13 seconds to generate a 5000 x 5000 monstrosity.
About twice as much to make a bitmap out of it (not using unsafe code that is) and make a texture so I can render it but the rendering itself with the texture is 0 ms.
I made a little venture into stenography. See if you can find out what the hidden message is!
[IMG_thumb]http://i52.tinypic.com/1z6bo2c.png[/IMG_thumb]
A-ha! There's an owl in the background!
[editline]4th March 2011[/editline]
And for anyone interested in the said monstrosity:
[url]http://img651.imageshack.us/img651/6308/slika3k.png[/url]
WARNING: 5 mb
[QUOTE=Darwin226;28423715]Dark blue and black?
And yes, I can. It will take some time but I can.
[editline]4th March 2011[/editline]
[url]http://img846.imageshack.us/img846/4993/slika2.png[/url][/QUOTE]
Thanks, I'm using it as a desktop background
[QUOTE=Icedshot;28424895]I made a little venture into stenography. See if you can find out what the hidden message is!
[IMG_thumb]http://i52.tinypic.com/1z6bo2c.png[/IMG_thumb][/QUOTE]
Gratz, I win!
[img]http://gyazo.com/6d115f48e7b56daade2101ee91421a15.png[/img]
[QUOTE=Apple Pi;28425102]Thanks, I'm using it as a desktop background[/QUOTE]
Have fun going nuts.
Sorry, you need to Log In to post a reply to this thread.