2 registered members (AndrewAMD, ChrstphFr),
941
guests, and 4
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
UPnP -- no more port forwarding
#360443
02/23/11 23:22
02/23/11 23:22
|
Joined: Mar 2006
Posts: 3,538 WA, Australia
JibbSmart
OP
Expert
|
OP
Expert
Joined: Mar 2006
Posts: 3,538
WA, Australia
|
DOWNLOAD DLL HEREMake sure to read the README, as it has some licence requirements. The licence requirements aren't mine, but I have to include them since I'm mostly using someone else's code (the licence permits it). So what does it do? It lets you use UPnP to have your game automatically set up port-forwarding for you. Most routers support it, but not all, so you should still include documentation in your app to instruct those who want to host and will have to do port-forwarding manually. Opening and closing ports takes about a second. Since this isn't an engine function, there should be nothing wrong with calling the functions in a separate thread to avoid interrupting game flow. I'm going to try and do that in the next version of KarBOOM. EDIT2: Threading with UPnP works like a charm. Anyway, have fun Jibb EDIT: Should this be here or in Lite-C Contributions? This forum seems to apply to non-code assets. EDIT2: Same link, updated version that should eliminate the need for "msvcr100.dll".EDIT3: msvcr100.dll is included.
Last edited by JulzMighty; 02/28/11 21:20.
Formerly known as JulzMighty. I made KarBOOM!
|
|
|
Re: UPnP -- no more port forwarding
[Re: Superku]
#360457
02/24/11 04:55
02/24/11 04:55
|
Joined: Dec 2008
Posts: 1,660 North America
Redeemer
Serious User
|
Serious User
Joined: Dec 2008
Posts: 1,660
North America
|
Good contribution! Although I must honestly say that the firewall my gateway uses does not support UPnP, so this is useless to me. Should this be here or in Lite-C Contributions? This forum seems to apply to non-code assets. Lite-C Contributions is for contributions of purely Lite-C code. This is a plugin, so I think it doesn't belong there... EDIT: Scratch that, I just saw this description of the Lite-C Contributions forum: This forum is for code snippets or external DLL implementations to the lite-C game programming language. I think it's pretty clear where this belongs, then.
Last edited by Redeemer; 02/24/11 04:56.
|
|
|
Re: UPnP -- no more port forwarding
[Re: alibaba]
#360464
02/24/11 07:36
02/24/11 07:36
|
Joined: Jul 2005
Posts: 1,930 Austria
Dark_samurai
Serious User
|
Serious User
Joined: Jul 2005
Posts: 1,930
Austria
|
^^ I also made a small UPnP implementation the last week. Are you using a library or have you implemented the UPnP protocol for yourself?
ANet - A stable and secure network plugin with multi-zone, unlimited players, voip, server-list features,... (for A7/A8)! get free version
|
|
|
Re: UPnP -- no more port forwarding
[Re: alibaba]
#360475
02/24/11 11:24
02/24/11 11:24
|
Joined: Jul 2005
Posts: 1,930 Austria
Dark_samurai
Serious User
|
Serious User
Joined: Jul 2005
Posts: 1,930
Austria
|
Exactly ;-) but i have to finish work on some other features until the next release.
ANet - A stable and secure network plugin with multi-zone, unlimited players, voip, server-list features,... (for A7/A8)! get free version
|
|
|
Re: UPnP -- no more port forwarding
[Re: Dark_samurai]
#360485
02/24/11 13:56
02/24/11 13:56
|
Joined: Mar 2006
Posts: 3,538 WA, Australia
JibbSmart
OP
Expert
|
OP
Expert
Joined: Mar 2006
Posts: 3,538
WA, Australia
|
@Dark Samurai: I'm using MiniUPnP. I'd love to have done it all myself, but I had no idea where to start. Since I'm only using a small part of MiniUPnP I want to poke around and make my own smaller version that doesn't use someone else's library, so I don't have to worry about including other people's licences. If I do get around to that, I'll put that up here. And if a moderator could move this to Lite-C Contributions, that'd be much appreciated Jibb EDIT: What about you, Dark Samurai? Did you implement it yourself or use a library?
Last edited by JulzMighty; 02/24/11 14:31.
Formerly known as JulzMighty. I made KarBOOM!
|
|
|
Re: UPnP -- no more port forwarding
[Re: JibbSmart]
#360495
02/24/11 14:58
02/24/11 14:58
|
Joined: Jul 2005
Posts: 1,930 Austria
Dark_samurai
Serious User
|
Serious User
Joined: Jul 2005
Posts: 1,930
Austria
|
No I'm using the same library. Implementing such protocols is a very difficult task. This is only really possible if you have a document that describes the standard of the protocol. Otherwise it won't work properly with all devices.
ANet - A stable and secure network plugin with multi-zone, unlimited players, voip, server-list features,... (for A7/A8)! get free version
|
|
|
Re: UPnP -- no more port forwarding
[Re: Dark_samurai]
#360496
02/24/11 14:59
02/24/11 14:59
|
Joined: Mar 2006
Posts: 3,538 WA, Australia
JibbSmart
OP
Expert
|
OP
Expert
Joined: Mar 2006
Posts: 3,538
WA, Australia
|
Fair enough. I'm content to stick with MiniUPnP and include the licence.
Jibb
Formerly known as JulzMighty. I made KarBOOM!
|
|
|
|