It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
Whats the best way to do an application where an phone is the server and the others phones are the clients. The clients will do requests to the server and the server will respond..Requests maybe to the server sends the real time audio that they are capturing..Whats the best way to do this in ios? Using UDP Multicast? Or an TCP Socket per client?
Using UDP multicast will cast your messages to all devices in your network (hence the name). It also does not guarantee delivery and it does not garauntee delivery order (FOFI) either. In most situations, UDP isn't really a good idea.
TCP is a really great alternative, it's easy to use, and it does garuantee all those things and there are many frameworks or C libraries out there that can help you a lot.
Personally, I'ld recommend using libuv and attaching the uv runloop to NSRunloop, but you can use AsyncSocket too, if you'ld rather like to stick to Objective-C.
Related
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
I would like to use the iphone camera as webcam on PC programatically.
Is this possible ?
If it is possible can anyone suggest me any example or giv me few ideas on how to go foward on this.
Thanks
Abhishek
This is how I can imagine the story (sorry, it's not trivial to implement, but at least it's certainly possible):
Use the AVFoundation and CoreVideo frameworks to capture live video data from the device;
Open a TCP/IP connection (you can use raw BSD sockets, CFNetwork, etc.) and stream the video data through that connection;
Write a client application that runs on the PC, receives the data and reconstructs it on the screen (for example). There are various libraries perfectly usable for media playback... You can also make a kernel module if you're using Linux or a driver if you're using Windows and make your client application pretend to be a webcam.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I am very new to web technologies, but have been developing for iphone for 3 years. I need to send a message from a server I rent to my app. Not a "push notification" for the user, but for the app itself. How should I do this?
In general, it's not possible for a server to directly contact an app running on a mobile device (since the device might be behind firewalls or NAT). Instead, the mobile device usually makes a connection to the server, and the server responds with any information available for the device.
This is basically how APNS notifications work, except that Apple has already done most of the infrastructure work for you. Push notifications take very little battery power, and since iOS can batch requests for all apps at once, each app does not need to make its own connection to a server somewhere.
If you implement this yourself, you will need to learn about a technology such as long polling. If you're very new to web technologies, you might consider getting some help making the web server side work.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
So I needed some kind of thread handling for this requirement. I went through XEP-0201 and found it useful, but I am not able to find any XMPP server and client that implemented XEP-0201.
Please let me know if anybody has used/wrote the XEP-0201 or if there is some other mechanism in XMPP so that I can handle multiple threads.
You won't find servers that support XEP-0201 - it's purely a client thing. Clients add the <thread> element to messages, and the recipient will receive it. The XEP is about general best practices around how to use that mechanism.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
It would be nice to be able to share some code snippets / random stuff with colleagues (15 people).
I was thinking to set-up an office chat, and I wonder if you have any system to recommend.
I can use a dedicated server for that.
Is IRC the way to go? or are there different technologies?
Openfire server and Pidgin client lets you chat and send files.
IRC is probably a really cheap way of doing this. Pretty much any client can XDCC and send files to other users like, XChat, chatzilla, pidgin, weechat, mIRC, etc. There's also a free server software that you can setup, like lightIRC, Unreal, Pjirc, Bahamut, etc.
But I think what you really want is project collaboration software. There's a lot of options here, some cost money and some are hosted as a service.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I want to write an mmo game server, but I can't seem to find any links that will tell me where to start off. Do I have to have my own server? Could I make a game server using GoDaddy as a host? Any information is a help.
I've made demo games with a server/client on LAN, and I am comfortable enough with network programming. My issue is making an online server. I just don't know where to start.
Yes, you are to buy server, where you server-side game will run. Goddady the cheapest solution is virtual dedicated server...
First of all, give a look at what is network-programming, try to create an echo server or a little chat and test all of this locally before buying anything.
That's my advice.