I want to write an app for a certain type of printer to print some text via wifi for iPhone. iPhone can join an existing wifi network by the Settings app, but how to create an output stream for the network so that the app can use it to send command to printer?
I mean the wifi connection is set up already, how to get something like NSOutputStream to write data to it?