Line 1: |
Line 1: |
− | {{Infobox homebrew | + | {{Infobox development tools |
| | title = GEMS Wifi | | | title = GEMS Wifi |
| | image = | | | image = |
− | | type = Development | + | | type = library |
| | author = GEMISIS | | | author = GEMISIS |
| | maintainer = GEMISIS | | | maintainer = GEMISIS |
Line 9: |
Line 9: |
| | version = 0.1 Beta | | | version = 0.1 Beta |
| | licence = GPL/etc | | | licence = GPL/etc |
− | | download = http://wiibrew.org/w/images/a/a8/GEMS_WifiWii.rar | + | | download = Media:GEMS WifiWii.rar |
| | website = | | | website = |
| | discussion = | | | discussion = |
Line 17: |
Line 17: |
| }} | | }} |
| | | |
− | = GEMS Wifi = | + | = General Info = |
| | | |
− | This is a development tool for the Wii and DS. It can be used to connect both devices via wifi. | + | This is a development tool for the Wii and DS. It can be used to connect both devices via wifi. |
| To use this, please edit your make file to use the library, then include GEMS_WifiWii.h or GEMS_WifiDS.h depending on your platform (Wii or DS). | | To use this, please edit your make file to use the library, then include GEMS_WifiWii.h or GEMS_WifiDS.h depending on your platform (Wii or DS). |
| + | Please note that this will not connect you to wifi autmatically (you must do that part yourself) |
| | | |
| The downloads are to the right, if you have any questions or issues about this library, please email me at GEMISIS@live.com | | The downloads are to the right, if you have any questions or issues about this library, please email me at GEMISIS@live.com |
Line 58: |
Line 59: |
| </code> | | </code> |
| | | |
− | This will make the game continuously wait for a client to connect. Please note that it will not stop until a client has connected. | + | This will make the game continuously wait for a client to connect. Please note that it will not stop until a client has connected. |
| | | |
| == Connecting to a server == | | == Connecting to a server == |
Line 67: |
Line 68: |
| <code> | | <code> |
| s32 host = 0; | | s32 host = 0; |
− | host = TCP_ClientConnect("192.168.1.4", 80);//TCP_ClientConnect(ip address, port) | + | host = TCP_ClientConnect("192.168.0.1", 80);//TCP_ClientConnect(ip address, port) |
| </code> | | </code> |
| | | |
Line 73: |
Line 74: |
| <code> | | <code> |
| int host = 0; | | int host = 0; |
− | host = TCP_ClientConnect("192.168.1.4", 80);//TCP_ClientConnect(ip address, port) | + | host = TCP_ClientConnect("192.168.0.1", 80);//TCP_ClientConnect(ip address, port) |
| </code> | | </code> |
| + | |
| + | == What to do now that your connected == |
| + | |
| + | Now that everything is connected, you can use the normal net_send (for Wii) send (for DS) net_recv (for Wii) and recv (for DS) to send and receive data for that system. |
| | | |
| == Video == | | == Video == |