Message Board
Message Board > Fenix / Bennu / Gemix / DIV > [DLL] Network.DLL |
June 27, 2006, 12:30 | |
Eckolin
Quite Whiskered 388 posts |
Rumour has it there are no more message losses, again.
____________ Maker of Games... Wisdom is supreme; therefore get wisdom. Need help with coding? I probably wrote something similar. |
# |
June 29, 2006, 04:40 | |
Sandman
F3n!x0r 1194 posts |
Quoting Eckolin: Rumour has it there are no more message losses, again. Yes yes yes. Updated to v0.13, it's your lucky number! ____________ BennuWiki Yes, my avatar has grey borders in IE (so get a decent browser) ROOFLEZ ROOFLEZ |
# |
July 4, 2006, 00:09 | |
Sandman
F3n!x0r 1194 posts |
And v1.14 is on, with a Download/Upload Meter. Changed to v1.xx because it's a very complete dll now. There are still ideas though and maybe someone has a new idea as well? ____________ BennuWiki Yes, my avatar has grey borders in IE (so get a decent browser) ROOFLEZ ROOFLEZ |
# |
July 4, 2006, 07:52 | |
Eckolin
Quite Whiskered 388 posts |
The demonstration in Network v0.13 didn't seem to send messages when I tried it. That is, it does send something but it doesn't confirm in the console. [Edited on July 4, 2006 by Eckolin] ____________ Maker of Games... Wisdom is supreme; therefore get wisdom. Need help with coding? I probably wrote something similar. |
# |
July 4, 2006, 12:01 | |
Sandman
F3n!x0r 1194 posts |
That's because I added the console reports optional and by default they're off. To get them, change the following lines: [81] NET.ConsoleReports = 1; NET_Init(0,20,10,1,4555,0,0); [87] NET.ConsoleReports = 1; NET_Init(0,20,10,1,3555,0,0); [92] NETID=NET_Open("localhost",4555,0,1); Bold is what you must add. I'll upload a new v1.14 with the changed demo. [EDIT] This wasn't the problem, I found out, the demo had a piece of old code, which caused it to not get the messages from the DLL properly. I updated to v1.14a. A proper demo is on the todo-list. [Edited on July 4, 2006 by Sandman] ____________ BennuWiki Yes, my avatar has grey borders in IE (so get a decent browser) ROOFLEZ ROOFLEZ |
# |
July 4, 2006, 13:39 | |
Fiona
games are terrible -9616558 posts |
I'll have to do some sort of example demo thing thing.
____________ laffo |
# |
July 4, 2006, 14:04 | |
Sandman
F3n!x0r 1194 posts |
Indeed you must.
____________ BennuWiki Yes, my avatar has grey borders in IE (so get a decent browser) ROOFLEZ ROOFLEZ |
# |
July 4, 2006, 15:34 | |
Eckolin
Quite Whiskered 388 posts |
Tetris for twenty players.
____________ Maker of Games... Wisdom is supreme; therefore get wisdom. Need help with coding? I probably wrote something similar. |
# |
July 4, 2006, 15:50 | |
DTM
Earthling! 821 posts |
Quoting Ferret: I'll have to do some sort of example demo thing thing. Yes then I can make a game using the old copy and paste trick. ____________ :o |
# |
July 5, 2006, 04:15 | |
Sandman
F3n!x0r 1194 posts |
The code in the example stays rather complete.
____________ BennuWiki Yes, my avatar has grey borders in IE (so get a decent browser) ROOFLEZ ROOFLEZ |
# |
July 6, 2006, 17:41 | |
g105b
None 86 posts |
. [Edited on December 3, 2009 by g105b] ____________ .g105b'' |
# |
July 6, 2006, 18:10 | |
Rincewind
programmer 1545 posts |
You should run them both on the same pc. It connects to localhost (127.0.0.1)! I made an extremely simple code example, I uploaded it here. However it does use an older version of the dll, v0.11. First you should run the server program, then the client program. The client sends a message to the server program when it gets opened. Both should also be ran on the same computer. Code included! [Edited on July 6, 2006 by Rincewind] ____________ Personal website: http://www.loijson.com |
# |
July 6, 2006, 18:54 | |
g105b
None 86 posts |
. [Edited on December 3, 2009 by g105b] ____________ .g105b'' |
# |
July 6, 2006, 19:00 | |
Rincewind
programmer 1545 posts |
The client connects to the server by use of the IP of the server. The ip 127.0.0.1 (="localhost") goes right back to the same computer, which is used in the example so you can easily test it out on the same computer. You will have to change 'localhost' to the IP of the computer the server program is running on. To get the internet IP of a computer: www.whatismyip.com [Edited on July 6, 2006 by Rincewind] ____________ Personal website: http://www.loijson.com |
# |
July 6, 2006, 19:08 | |
g105b
None 86 posts |
. [Edited on December 3, 2009 by g105b] ____________ .g105b'' |
# |
July 6, 2006, 19:09 | |
Rincewind
programmer 1545 posts |
Hehe you're welcome.
____________ Personal website: http://www.loijson.com |
# |
July 6, 2006, 19:41 | |
g105b
None 86 posts |
. [Edited on December 3, 2009 by g105b] ____________ .g105b'' |
# |
July 6, 2006, 20:07 | |
Rincewind
programmer 1545 posts |
The port used by the server and the client should be the same. Edit: ok so no mistake in his program, it seems he's opening 2 simultaneous connections on two different ports. Just go with my example program and be done with it. [Edited on July 6, 2006 by Rincewind] ____________ Personal website: http://www.loijson.com |
# |
July 7, 2006, 00:04 | |
Sandman
F3n!x0r 1194 posts |
Both the server and the client are listening for connections on a port. The server listens on 4555 and the client on 3555. The client connects to 4555 (the server). The same would be if the server connected to 3555 (the client). Quoting g105b: Good Work Sandman ! Thanks.
____________ BennuWiki Yes, my avatar has grey borders in IE (so get a decent browser) ROOFLEZ ROOFLEZ |
# |
July 7, 2006, 17:37 | |
Fiona
games are terrible -9616558 posts |
And welcome to Boolean Soup!
____________ laffo |
# |
July 14, 2006, 12:26 | |
g105b
None 86 posts |
the network dll is really easy to use over a LAN - it just works - is there anything I need to know when it comes to using Fenix across the internet? I'm assuming that all you have to do is use the I.P. address as usual...
____________ .g105b'' |
# |
July 14, 2006, 12:50 | |
Sandman
F3n!x0r 1194 posts |
Yeah, but if you're behind a router at the server side of Fenix, make sure that router forwards the port you are using in Fenix to the computer where you're using Fenix. The client doesn't have to do this. The rest is the same really.
____________ BennuWiki Yes, my avatar has grey borders in IE (so get a decent browser) ROOFLEZ ROOFLEZ |
# |
July 14, 2006, 18:53 | |
g105b
None 86 posts |
riiiiight, you've lost me there I'm afraid. I do use a router to connect to the internet and can find out the port settings but I don't know what you mean by making "sure the router forwards the port you are using in Fenix to the computer where you're using Fenix". how do you mean?
____________ .g105b'' |
# |
July 14, 2006, 19:10 | |
Sandman
F3n!x0r 1194 posts |
Well take 2 computers on the internet, A and B, on different places. Quoting Diagram: A -- INTERNET -- router -- B A is a client. B is the server. Now when A wants to connect on B, say on port 3543, the router must know what to do with the incoming connection. So you must tell the router that traffic from internet on port 3543 must go to computer B (that is: the LAN IP of computer B), where the server is running. If the router doesn't know what to do with the incoming connection, A cannot connect to B on that port. 3543 is just an example, it goes for every port. ____________ BennuWiki Yes, my avatar has grey borders in IE (so get a decent browser) ROOFLEZ ROOFLEZ |
# |
July 14, 2006, 20:02 | |
g105b
None 86 posts |
Thanks for putting that so simply, great teacher one last question, are there any rules on what ports I can use, and what is the range of ports? ____________ .g105b'' |
# |
Page 1 , 2 , 3 , 4 , 5 , 6 , 7 |
Message Board > Fenix / Bennu / Gemix / DIV > [DLL] Network.DLL