00001 #include "NQ.h" 00002 00003 extern void SimulateRemotePeer(const char *aIPAddressOtherPeer, UINT16 aPortOtherPeer, UINT16 aPort); 00004 extern void SimulateLocalPeer(const char *aIPAddressOtherPeer, UINT16 aPortOtherPeer, UINT16 aPort); 00005 00006 00007 /* 00008 // win-win 00009 void LocalPeerStart() 00010 { 00011 printf("Simulating (177 oreade20) local peer...\n"); 00012 SimulateLocalPeer("141.34.30.146", 31900, 32900); 00013 } 00014 00015 00016 void RemotePeerStart() 00017 { 00018 printf("Simulating (146 znvideo2) remote peer...\n"); 00019 SimulateRemotePeer("141.34.30.177", 32900, 31900); 00020 } 00021 */ 00022 00023 /* 00024 // win-win notebook znel 00025 void LocalPeerStart() 00026 { 00027 printf("Simulating (29.54 znelnb) local peer...\n"); 00028 SimulateLocalPeer("141.34.30.177", 32900, 31900); 00029 } 00030 00031 00032 void RemotePeerStart() 00033 { 00034 printf("Simulating (177 oreade20) remote peer...\n"); 00035 SimulateRemotePeer("141.34.29.54", 31900, 32900); 00036 00037 } 00038 */ 00039 00040 00041 // win-nios2 00042 void LocalPeerStart() 00043 { 00044 printf("There is no local peer (vs. nios2 109)...\n"); 00045 //SimulateLocalPeer("141.34.30.109", 32900, 39900); 00046 //SimulateLocalPeer("141.34.30.109", 32900, 39900); 00047 00048 } 00049 00050 void RemotePeerStart() 00051 { 00052 //printf("Simulating (3.231 znsatyr54 (vs. nios2 111)) remote peer...\n"); 00053 printf("Simulating (30.177 znoreade20 (vs. nios2 109)) remote peer...\n"); 00054 SimulateRemotePeer("141.34.30.109", 32900, 39900); 00055 } 00056 00057 00058 00059 /* 00060 // additional peer win <-> pi 00061 void LocalPeerStart() 00062 { 00063 printf("Simulating (177 oreade20 (vs. pi2 15)) local peer...\n"); 00064 SimulateLocalPeer("141.34.30.15", 31900, 31700); 00065 } 00066 00067 00068 void RemotePeerStart() 00069 { 00070 printf("There is no remote peer (vs. pi 13 remote)...\n"); 00071 } 00072 */ 00073 /* 00074 // win-win cross 00075 void RemotePeerStart() 00076 { 00077 printf("Simulating (177 oreade20) remote peer...\n"); 00078 SimulateRemotePeer("141.34.30.146", 31900, 32900); 00079 } 00080 00081 00082 void LocalPeerStart() 00083 { 00084 printf("Simulating (146 znvideo2) local peer...\n"); 00085 SimulateLocalPeer("141.34.30.177", 32900, 31900); 00086 } 00087 */ 00088 00089 /* 00090 // win-lin 00091 void LocalPeerStart() 00092 { 00093 printf("Simulating (177 oreade20 (vs. 013 pi)) local peer...\n"); 00094 SimulateLocalPeer("141.34.30.13", 30900, 31900); 00095 } 00096 00097 //void LocalPeerStart() 00098 //{ 00099 // printf("Simulating (177 oreade20 (vs. 013 pi)) BAD local peer...\n"); 00100 // SimulateLocalPeer("141.34.30.12", 32900, 33900); 00101 //} 00102 00103 void RemotePeerStart() 00104 { 00105 printf("Simulating (177 oreade20 (vs. 013 pi)) remote peer...\n"); 00106 SimulateRemotePeer("141.34.30.13", 30900, 31900); 00107 } 00108 */ 00109 00110 00111 int main(int argc, const char *argv[]) 00112 { 00113 const char param[] = "/remote"; 00114 00115 printf("Windows Main() starting up...\n"); 00116 00117 if (argc > 1 && (strlen(argv[1]) == strlen(param))) 00118 { 00119 if (_strnicmp(argv[1], param, strlen(param)) == 0) 00120 { 00121 RemotePeerStart(); 00122 } 00123 } 00124 else 00125 { 00126 LocalPeerStart(); 00127 } 00128 00129 return 0; 00130 } 00131