Changeset 91
- Timestamp:
- 08/22/10 22:34:11 (18 months ago)
- File:
-
- 1 edited
-
trunk/sources/androidapplestreaming/src/api.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/androidapplestreaming/src/api.cpp
r90 r91 184 184 185 185 void WaitEnvReady() { 186 // VariantConnection vc; 187 // while (!vc.Connect(gAddress)) { 188 // sleep(1); 189 // } 190 sleep(4); 186 int fd = socket(PF_INET, SOCK_STREAM, 0); 187 while (true) { 188 if (gAddress.sin_port == 0) { 189 sleep(1); 190 continue; 191 } 192 int res = connect(fd, (sockaddr *) & gAddress, sizeof (gAddress)); 193 if (res == 0) 194 break; 195 sleep(1); 196 } 197 close(fd); 191 198 } 192 199
Note: See TracChangeset
for help on using the changeset viewer.
