Send NSData back and forth between devices - GameCenter alternative
I am trying to create an application that will require sending data between two devices over the internet. Similar to GameKit, but I would like to implement a feature without GameKit as I want to be able to exchange between different types of smartphones. I want it to be like a live match in GameCenter.
in GameKit I would use the following:
//To send the data
- (BOOL)sendDataToAllPlayers:(NSData *)data withDataMode:(GKMatchSendDataMode)mode error:(NSError **)error;
//To receive the data
- (void)match:(GKMatch *)theMatch didReceiveData:(NSData *)data fromPlayer:(NSString *)playerID;
Is there a way to accomplish this same implementation without GameKit? I know Fun Run does real-time matches without GameCenter.
Any answer is greatly appreciated! Thanks in advance for your help!
+3
source to share