This is a simple example that shows P2P between server in <installation folder>/ProudNet/Sample/Simple and C/S & other clients.
Please execute SimpleUnity after executing the server.
1.1SimpleUnity execution order.
First of all, open <installation folder>/ProudNet/Sample/Simple/SimpleUnity/Assets/Scenes/SimpleUnity.unity.
Please compile PIDL by executing <installation file>/ProudNet/Sample/Simple/SimpleUnity/PIDL.bat file.
In case of SimpleUnity, there is no UI that inputs IP. If necessary, you need to modify it at the script. IP can be set at Strat function in Simple class after opening Simple.cs script.
The following window will be shown when executing SimpleUnity right after executing server of simple.
A message will be sent to a server if clicking the Send button.
In case the relevant client is connected by P2P, please click the P2PSend button so that P2P message can be sent to P2P group that has been made when OnP2PMemberJoin() is recently called back.
If clicking QUIT button, the relevant application will stop.
1.2explanation of script that has been used at Unity3D.
Simple : It is a script in which the part of communicating with a server has been made.
Vars : It is a script in which the part of version (for server connection), port and marshaler have been made.
_common,_proxy,_stub : This is the result of PIDL compile. PIDL file that is same as PIDL of <installation folder>/ProudNet/Sample/Simple sample has been compiled. Please refer to 9. Include PIDL compiled result