vendredi 8 mai 2015

objective c Nsstream connect to multiple servers at a time using sockets

I am creating a socket based Ios app using objective c, now my requirement is to connect to two servers at the same time, i am using NSInputStream and NSOutputStream, now i am able to connect to first server and can send and receive data with that server using

- (void)stream:(NSStream *)theStream handleEvent:(NSStreamEvent)streamEvent

delegate method but now i have to connect with second server at the same time, means connecting with two server at the same time, please guide me in this.

Aucun commentaire:

Enregistrer un commentaire