Socket Server

classic Classic list List threaded Threaded
15 messages Options
Reply | Threaded
Open this post in threaded view
|

Socket Server

Andreas Ploetzeneder
Hi,
is it possible to put a socket server on the iPhone?
I want to program a socket client and a socket server on the iphone,..

--

 

 

Mit freundlichem Gruß,

Andreas Plötzeneder

CEO
ihr ploetzeneder it-solutions Team
Mobile DevelopmentDesktopanwendungenWebanwendungen
Tel:
 +43 720 30 30 24 10
Fax: +43 720 30 30 24 20
Email: 
[hidden email]
web:  
http://www.ploetzeneder-it.com

Der Inhalt dieser E-Mail samt aller Anhänge ist vertraulich und ausschließlich für den Adressaten bestimmt. Wenn Sie nicht der vorgesehene Adressat dieser E-Mail oder dessen Vertreter sind, so löschen sie diese bitte und informieren Sie den Absender. Jede Form der Verbreitung oder Veröffentlichung der E-Mail, sei es in ihrer Gesamtheit oder in Teilen, die nicht ihrem Zweck dient, ist unzulässig. Das Internet kann die Unversehrtheit dieser Mitteilung nicht garantieren. ploetzeneder it-solutions übernimmt daher keine Haftung, falls die E-Mail geändert wurde.

 



_______________________________________________
MonoTouch mailing list
[hidden email]
http://lists.ximian.com/mailman/listinfo/monotouch
Reply | Threaded
Open this post in threaded view
|

Re: Socket Server

Bing Li
Yes, you can.

I ever did that using BSD socket in C.

Thanks,
Bing

2011/8/8 Andreas Ploetzeneder <[hidden email]>
Hi,
is it possible to put a socket server on the iPhone?
I want to program a socket client and a socket server on the iphone,..

--

 

 

Mit freundlichem Gruß,

Andreas Plötzeneder

CEO
ihr ploetzeneder it-solutions Team
Mobile DevelopmentDesktopanwendungenWebanwendungen
Tel:
 +43 720 30 30 24 10
Fax: +43 720 30 30 24 20
Email: 
[hidden email]
web:  
http://www.ploetzeneder-it.com

Der Inhalt dieser E-Mail samt aller Anhänge ist vertraulich und ausschließlich für den Adressaten bestimmt. Wenn Sie nicht der vorgesehene Adressat dieser E-Mail oder dessen Vertreter sind, so löschen sie diese bitte und informieren Sie den Absender. Jede Form der Verbreitung oder Veröffentlichung der E-Mail, sei es in ihrer Gesamtheit oder in Teilen, die nicht ihrem Zweck dient, ist unzulässig. Das Internet kann die Unversehrtheit dieser Mitteilung nicht garantieren. ploetzeneder it-solutions übernimmt daher keine Haftung, falls die E-Mail geändert wurde.

 



_______________________________________________
MonoTouch mailing list
[hidden email]
http://lists.ximian.com/mailman/listinfo/monotouch



_______________________________________________
MonoTouch mailing list
[hidden email]
http://lists.ximian.com/mailman/listinfo/monotouch
Reply | Threaded
Open this post in threaded view
|

Re: Socket Server

dtavlikos
In reply to this post by Andreas Ploetzeneder
The System.Net.Sockets namespace is available in MonoTouch. I haven't used it in a project yet, but I believe it will work ok.

I have doubts if it will work with multitasking though.

Dimitris Tavlikos
Software Developer
Email: [hidden email]
Twitter: http://twitter.com/#!/dtavlikos
Blog: http://software.tavlikos.com






On Aug 8, 2011, at 9:53 AM, Andreas Ploetzeneder wrote:

> Hi,
> is it possible to put a socket server on the iPhone?
> I want to program a socket client and a socket server on the iphone,..
>
> --
>  
>  
> Mit freundlichem Gruß,
>
> Andreas Plötzeneder
> CEO
> ihr ploetzeneder it-solutions Team
> Mobile Development – Desktopanwendungen – Webanwendungen
> Tel:  +43 720 30 30 24 10
> Fax: +43 720 30 30 24 20
> Email: [hidden email]
> web:   http://www.ploetzeneder-it.com
>
>
> Der Inhalt dieser E-Mail samt aller Anhänge ist vertraulich und ausschließlich für den Adressaten bestimmt. Wenn Sie nicht der vorgesehene Adressat dieser E-Mail oder dessen Vertreter sind, so löschen sie diese bitte und informieren Sie den Absender. Jede Form der Verbreitung oder Veröffentlichung der E-Mail, sei es in ihrer Gesamtheit oder in Teilen, die nicht ihrem Zweck dient, ist unzulässig. Das Internet kann die Unversehrtheit dieser Mitteilung nicht garantieren. ploetzeneder it-solutions übernimmt daher keine Haftung, falls die E-Mail geändert wurde.
>
>  
>
> _______________________________________________
> MonoTouch mailing list
> [hidden email]
> http://lists.ximian.com/mailman/listinfo/monotouch

_______________________________________________
MonoTouch mailing list
[hidden email]
http://lists.ximian.com/mailman/listinfo/monotouch
Reply | Threaded
Open this post in threaded view
|

Re: Socket Server

Nic Wise
If you want the iphone to sit there and wait for things externally to
happen, you should really look at using push notifications..... thats
the point of them :)

there is a very good reason why apple discourages you from sitting
there, listening on a port. Security is one. But the main one is you
have to be running all the time, and the network has to be up and on
all the time, so you will turn your nice, 1-2 day iPhone battery into
a 0.5 day Android battery....





2011/8/8 Dimitris Tavlikos <[hidden email]>:

> The System.Net.Sockets namespace is available in MonoTouch. I haven't used it in a project yet, but I believe it will work ok.
>
> I have doubts if it will work with multitasking though.
>
> Dimitris Tavlikos
> Software Developer
> Email: [hidden email]
> Twitter: http://twitter.com/#!/dtavlikos
> Blog: http://software.tavlikos.com
>
>
>
>
>
>
> On Aug 8, 2011, at 9:53 AM, Andreas Ploetzeneder wrote:
>
>> Hi,
>> is it possible to put a socket server on the iPhone?
>> I want to program a socket client and a socket server on the iphone,..
>>
>> --
>>
>>
>> Mit freundlichem Gruß,
>>
>> Andreas Plötzeneder
>> CEO
>> ihr ploetzeneder it-solutions Team
>> Mobile Development – Desktopanwendungen – Webanwendungen
>> Tel:  +43 720 30 30 24 10
>> Fax: +43 720 30 30 24 20
>> Email: [hidden email]
>> web:   http://www.ploetzeneder-it.com
>>
>>
>> Der Inhalt dieser E-Mail samt aller Anhänge ist vertraulich und ausschließlich für den Adressaten bestimmt. Wenn Sie nicht der vorgesehene Adressat dieser E-Mail oder dessen Vertreter sind, so löschen sie diese bitte und informieren Sie den Absender. Jede Form der Verbreitung oder Veröffentlichung der E-Mail, sei es in ihrer Gesamtheit oder in Teilen, die nicht ihrem Zweck dient, ist unzulässig. Das Internet kann die Unversehrtheit dieser Mitteilung nicht garantieren. ploetzeneder it-solutions übernimmt daher keine Haftung, falls die E-Mail geändert wurde.
>>
>>
>>
>> _______________________________________________
>> MonoTouch mailing list
>> [hidden email]
>> http://lists.ximian.com/mailman/listinfo/monotouch
>
> _______________________________________________
> MonoTouch mailing list
> [hidden email]
> http://lists.ximian.com/mailman/listinfo/monotouch
>



--
Nic Wise
t.  +44 7788 592 806 | @fastchicken | http://www.linkedin.com/in/nicwise
b. http://www.fastchicken.co.nz/

mobileAgent (for FreeAgent): get your accounts in your pocket.
http://goo.gl/IuBU
Trip Wallet: Keep track of your budget on the go: http://goo.gl/ePhKa
London Bike App: Find the nearest Boris Bike, and get riding! http://goo.gl/Icp2
_______________________________________________
MonoTouch mailing list
[hidden email]
http://lists.ximian.com/mailman/listinfo/monotouch
Reply | Threaded
Open this post in threaded view
|

Re: Socket Server

Bing Li
Dear Nic,

I designed a socket server on iPhone. But it only works when the application is started. If the application is down, the server is also closed. If so, the battery is still consumed more than push notifications?

Thanks,
Bing

On Mon, Aug 8, 2011 at 4:57 PM, Nic Wise <[hidden email]> wrote:
If you want the iphone to sit there and wait for things externally to
happen, you should really look at using push notifications..... thats
the point of them :)

there is a very good reason why apple discourages you from sitting
there, listening on a port. Security is one. But the main one is you
have to be running all the time, and the network has to be up and on
all the time, so you will turn your nice, 1-2 day iPhone battery into
a 0.5 day Android battery....





2011/8/8 Dimitris Tavlikos <[hidden email]>:
> The System.Net.Sockets namespace is available in MonoTouch. I haven't used it in a project yet, but I believe it will work ok.
>
> I have doubts if it will work with multitasking though.
>
> Dimitris Tavlikos
> Software Developer
> Email: [hidden email]
> Twitter: http://twitter.com/#!/dtavlikos
> Blog: http://software.tavlikos.com
>
>
>
>
>
>
> On Aug 8, 2011, at 9:53 AM, Andreas Ploetzeneder wrote:
>
>> Hi,
>> is it possible to put a socket server on the iPhone?
>> I want to program a socket client and a socket server on the iphone,..
>>
>> --
>>
>>
>> Mit freundlichem Gruß,
>>
>> Andreas Plötzeneder
>> CEO
>> ihr ploetzeneder it-solutions Team
>> Mobile Development – Desktopanwendungen – Webanwendungen
>> Tel:  +43 720 30 30 24 10
>> Fax: +43 720 30 30 24 20
>> Email: [hidden email]
>> web:   http://www.ploetzeneder-it.com
>>
>>
>> Der Inhalt dieser E-Mail samt aller Anhänge ist vertraulich und ausschließlich für den Adressaten bestimmt. Wenn Sie nicht der vorgesehene Adressat dieser E-Mail oder dessen Vertreter sind, so löschen sie diese bitte und informieren Sie den Absender. Jede Form der Verbreitung oder Veröffentlichung der E-Mail, sei es in ihrer Gesamtheit oder in Teilen, die nicht ihrem Zweck dient, ist unzulässig. Das Internet kann die Unversehrtheit dieser Mitteilung nicht garantieren. ploetzeneder it-solutions übernimmt daher keine Haftung, falls die E-Mail geändert wurde.
>>
>>
>>
>> _______________________________________________
>> MonoTouch mailing list
>> [hidden email]
>> http://lists.ximian.com/mailman/listinfo/monotouch
>
> _______________________________________________
> MonoTouch mailing list
> [hidden email]
> http://lists.ximian.com/mailman/listinfo/monotouch
>



--
Nic Wise
t.  +44 7788 592 806 | @fastchicken | http://www.linkedin.com/in/nicwise
b. http://www.fastchicken.co.nz/

mobileAgent (for FreeAgent): get your accounts in your pocket.
http://goo.gl/IuBU
Trip Wallet: Keep track of your budget on the go: http://goo.gl/ePhKa
London Bike App: Find the nearest Boris Bike, and get riding! http://goo.gl/Icp2
_______________________________________________
MonoTouch mailing list
[hidden email]
http://lists.ximian.com/mailman/listinfo/monotouch


_______________________________________________
MonoTouch mailing list
[hidden email]
http://lists.ximian.com/mailman/listinfo/monotouch
Reply | Threaded
Open this post in threaded view
|

Re: Socket Server

dermotos
It should be fine. I hope it will be anyway! I just finished writing my socket code for my app, and I'm just about to start debugging now. I imagine it will work fine with some kinds of multi-tasking. For example, internet radio players use sockets to stream data to them while in the background to play audio. However, this behaviour is only allowed (by apple) because it is required to play audio in the background, which is why multi-tasking is granted for this particular case. Unless your using a genuine multitasking reason, your sockets will probably be unavailable when the app goes into the background.
Reply | Threaded
Open this post in threaded view
|

Re: Socket Server

Nic Wise
In reply to this post by Bing Li
If you app is in the foreground, then yes, it will consume battery.
The usual case for this is a GPS / SatNav type app, which has to be in
the foreground all the time to do the navigation.

Push basically uses nothing. It's "Free" with the iphone....

What does the socket server _do_? And how to you tell what the phones
IP is? What happens if the ISP/Telco blocks incoming connections (I
know of a few who do... atleast on some ports....)



On Mon, Aug 8, 2011 at 10:10, Bing Li <[hidden email]> wrote:

> Dear Nic,
>
> I designed a socket server on iPhone. But it only works when the application
> is started. If the application is down, the server is also closed. If so,
> the battery is still consumed more than push notifications?
>
> Thanks,
> Bing
>
> On Mon, Aug 8, 2011 at 4:57 PM, Nic Wise <[hidden email]> wrote:
>>
>> If you want the iphone to sit there and wait for things externally to
>> happen, you should really look at using push notifications..... thats
>> the point of them :)
>>
>> there is a very good reason why apple discourages you from sitting
>> there, listening on a port. Security is one. But the main one is you
>> have to be running all the time, and the network has to be up and on
>> all the time, so you will turn your nice, 1-2 day iPhone battery into
>> a 0.5 day Android battery....
>>
>>
>>
>>
>>
>> 2011/8/8 Dimitris Tavlikos <[hidden email]>:
>> > The System.Net.Sockets namespace is available in MonoTouch. I haven't
>> > used it in a project yet, but I believe it will work ok.
>> >
>> > I have doubts if it will work with multitasking though.
>> >
>> > Dimitris Tavlikos
>> > Software Developer
>> > Email: [hidden email]
>> > Twitter: http://twitter.com/#!/dtavlikos
>> > Blog: http://software.tavlikos.com
>> >
>> >
>> >
>> >
>> >
>> >
>> > On Aug 8, 2011, at 9:53 AM, Andreas Ploetzeneder wrote:
>> >
>> >> Hi,
>> >> is it possible to put a socket server on the iPhone?
>> >> I want to program a socket client and a socket server on the iphone,..
>> >>
>> >> --
>> >>
>> >>
>> >> Mit freundlichem Gruß,
>> >>
>> >> Andreas Plötzeneder
>> >> CEO
>> >> ihr ploetzeneder it-solutions Team
>> >> Mobile Development – Desktopanwendungen – Webanwendungen
>> >> Tel:  +43 720 30 30 24 10
>> >> Fax: +43 720 30 30 24 20
>> >> Email: [hidden email]
>> >> web:   http://www.ploetzeneder-it.com
>> >>
>> >>
>> >> Der Inhalt dieser E-Mail samt aller Anhänge ist vertraulich und
>> >> ausschließlich für den Adressaten bestimmt. Wenn Sie nicht der vorgesehene
>> >> Adressat dieser E-Mail oder dessen Vertreter sind, so löschen sie diese
>> >> bitte und informieren Sie den Absender. Jede Form der Verbreitung oder
>> >> Veröffentlichung der E-Mail, sei es in ihrer Gesamtheit oder in Teilen, die
>> >> nicht ihrem Zweck dient, ist unzulässig. Das Internet kann die
>> >> Unversehrtheit dieser Mitteilung nicht garantieren. ploetzeneder
>> >> it-solutions übernimmt daher keine Haftung, falls die E-Mail geändert wurde.
>> >>
>> >>
>> >>
>> >> _______________________________________________
>> >> MonoTouch mailing list
>> >> [hidden email]
>> >> http://lists.ximian.com/mailman/listinfo/monotouch
>> >
>> > _______________________________________________
>> > MonoTouch mailing list
>> > [hidden email]
>> > http://lists.ximian.com/mailman/listinfo/monotouch
>> >
>>
>>
>>
>> --
>> Nic Wise
>> t.  +44 7788 592 806 | @fastchicken | http://www.linkedin.com/in/nicwise
>> b. http://www.fastchicken.co.nz/
>>
>> mobileAgent (for FreeAgent): get your accounts in your pocket.
>> http://goo.gl/IuBU
>> Trip Wallet: Keep track of your budget on the go: http://goo.gl/ePhKa
>> London Bike App: Find the nearest Boris Bike, and get riding!
>> http://goo.gl/Icp2
>> _______________________________________________
>> MonoTouch mailing list
>> [hidden email]
>> http://lists.ximian.com/mailman/listinfo/monotouch
>
>



--
Nic Wise
t.  +44 7788 592 806 | @fastchicken | http://www.linkedin.com/in/nicwise
b. http://www.fastchicken.co.nz/

mobileAgent (for FreeAgent): get your accounts in your pocket.
http://goo.gl/IuBU
Trip Wallet: Keep track of your budget on the go: http://goo.gl/ePhKa
London Bike App: Find the nearest Boris Bike, and get riding! http://goo.gl/Icp2
_______________________________________________
MonoTouch mailing list
[hidden email]
http://lists.ximian.com/mailman/listinfo/monotouch
Reply | Threaded
Open this post in threaded view
|

Re: Socket Server

Nic Wise
In reply to this post by dermotos
Hang on tho - this is the other way around.

A music player connects to the remote server, and the server responds
with the stream. The server never creates the connections, it's always
the client doing it....

Just make sure you test it well, esp on slow cellular connections
(GPRS for example, or 3G)

On Mon, Aug 8, 2011 at 11:04, dermotos <[hidden email]> wrote:

> It should be fine. I hope it will be anyway! I just finished writing my
> socket code for my app, and I'm just about to start debugging now. I imagine
> it will work fine with some kinds of multi-tasking. For example, internet
> radio players use sockets to stream data to them while in the background to
> play audio. However, this behaviour is only allowed (by apple) because it is
> required to play audio in the background, which is why multi-tasking is
> granted for this particular case. Unless your using a genuine multitasking
> reason, your sockets will probably be unavailable when the app goes into the
> background.
>
> --
> View this message in context: http://monotouch.2284126.n4.nabble.com/Socket-Server-tp3726258p3726586.html
> Sent from the MonoTouch mailing list archive at Nabble.com.
> _______________________________________________
> MonoTouch mailing list
> [hidden email]
> http://lists.ximian.com/mailman/listinfo/monotouch
>



--
Nic Wise
t.  +44 7788 592 806 | @fastchicken | http://www.linkedin.com/in/nicwise
b. http://www.fastchicken.co.nz/

mobileAgent (for FreeAgent): get your accounts in your pocket.
http://goo.gl/IuBU
Trip Wallet: Keep track of your budget on the go: http://goo.gl/ePhKa
London Bike App: Find the nearest Boris Bike, and get riding! http://goo.gl/Icp2
_______________________________________________
MonoTouch mailing list
[hidden email]
http://lists.ximian.com/mailman/listinfo/monotouch
Reply | Threaded
Open this post in threaded view
|

Re: Socket Server

Bing Li
In reply to this post by Nic Wise
Dear Nic,

Thanks so much for your reply!

I know one famous, BitTorrent. Although I did not implement BT on iPhone, the architecture of my system is the same. I believe such a system must get a better load balance and high performance.

In such a system, a registry server is set up. It retains all of IPs of iPhones.

I hope the battery is not the issue in this case. I have no such experiences yet.

Best,
Bing

On Mon, Aug 8, 2011 at 7:34 PM, Nic Wise <[hidden email]> wrote:
If you app is in the foreground, then yes, it will consume battery.
The usual case for this is a GPS / SatNav type app, which has to be in
the foreground all the time to do the navigation.

Push basically uses nothing. It's "Free" with the iphone....

What does the socket server _do_? And how to you tell what the phones
IP is? What happens if the ISP/Telco blocks incoming connections (I
know of a few who do... atleast on some ports....)



On Mon, Aug 8, 2011 at 10:10, Bing Li <[hidden email]> wrote:
> Dear Nic,
>
> I designed a socket server on iPhone. But it only works when the application
> is started. If the application is down, the server is also closed. If so,
> the battery is still consumed more than push notifications?
>
> Thanks,
> Bing
>
> On Mon, Aug 8, 2011 at 4:57 PM, Nic Wise <[hidden email]> wrote:
>>
>> If you want the iphone to sit there and wait for things externally to
>> happen, you should really look at using push notifications..... thats
>> the point of them :)
>>
>> there is a very good reason why apple discourages you from sitting
>> there, listening on a port. Security is one. But the main one is you
>> have to be running all the time, and the network has to be up and on
>> all the time, so you will turn your nice, 1-2 day iPhone battery into
>> a 0.5 day Android battery....
>>
>>
>>
>>
>>
>> 2011/8/8 Dimitris Tavlikos <[hidden email]>:
>> > The System.Net.Sockets namespace is available in MonoTouch. I haven't
>> > used it in a project yet, but I believe it will work ok.
>> >
>> > I have doubts if it will work with multitasking though.
>> >
>> > Dimitris Tavlikos
>> > Software Developer
>> > Email: [hidden email]
>> > Twitter: http://twitter.com/#!/dtavlikos
>> > Blog: http://software.tavlikos.com
>> >
>> >
>> >
>> >
>> >
>> >
>> > On Aug 8, 2011, at 9:53 AM, Andreas Ploetzeneder wrote:
>> >
>> >> Hi,
>> >> is it possible to put a socket server on the iPhone?
>> >> I want to program a socket client and a socket server on the iphone,..
>> >>
>> >> --
>> >>
>> >>
>> >> Mit freundlichem Gruß,
>> >>
>> >> Andreas Plötzeneder
>> >> CEO
>> >> ihr ploetzeneder it-solutions Team
>> >> Mobile Development – Desktopanwendungen – Webanwendungen
>> >> Tel:  +43 720 30 30 24 10
>> >> Fax: +43 720 30 30 24 20
>> >> Email: [hidden email]
>> >> web:   http://www.ploetzeneder-it.com
>> >>
>> >>
>> >> Der Inhalt dieser E-Mail samt aller Anhänge ist vertraulich und
>> >> ausschließlich für den Adressaten bestimmt. Wenn Sie nicht der vorgesehene
>> >> Adressat dieser E-Mail oder dessen Vertreter sind, so löschen sie diese
>> >> bitte und informieren Sie den Absender. Jede Form der Verbreitung oder
>> >> Veröffentlichung der E-Mail, sei es in ihrer Gesamtheit oder in Teilen, die
>> >> nicht ihrem Zweck dient, ist unzulässig. Das Internet kann die
>> >> Unversehrtheit dieser Mitteilung nicht garantieren. ploetzeneder
>> >> it-solutions übernimmt daher keine Haftung, falls die E-Mail geändert wurde.
>> >>
>> >>
>> >>
>> >> _______________________________________________
>> >> MonoTouch mailing list
>> >> [hidden email]
>> >> http://lists.ximian.com/mailman/listinfo/monotouch
>> >
>> > _______________________________________________
>> > MonoTouch mailing list
>> > [hidden email]
>> > http://lists.ximian.com/mailman/listinfo/monotouch
>> >
>>
>>
>>
>> --
>> Nic Wise
>> t.  +44 7788 592 806 | @fastchicken | http://www.linkedin.com/in/nicwise
>> b. http://www.fastchicken.co.nz/
>>
>> mobileAgent (for FreeAgent): get your accounts in your pocket.
>> http://goo.gl/IuBU
>> Trip Wallet: Keep track of your budget on the go: http://goo.gl/ePhKa
>> London Bike App: Find the nearest Boris Bike, and get riding!
>> http://goo.gl/Icp2
>> _______________________________________________
>> MonoTouch mailing list
>> [hidden email]
>> http://lists.ximian.com/mailman/listinfo/monotouch
>
>



--
Nic Wise
t.  +44 7788 592 806 | @fastchicken | http://www.linkedin.com/in/nicwise
b. http://www.fastchicken.co.nz/

mobileAgent (for FreeAgent): get your accounts in your pocket.
http://goo.gl/IuBU
Trip Wallet: Keep track of your budget on the go: http://goo.gl/ePhKa
London Bike App: Find the nearest Boris Bike, and get riding! http://goo.gl/Icp2


_______________________________________________
MonoTouch mailing list
[hidden email]
http://lists.ximian.com/mailman/listinfo/monotouch
Reply | Threaded
Open this post in threaded view
|

Re: Socket Server

dermotos
In reply to this post by Nic Wise
Yes true, bad example on my part, but the fact that a music player can receive a stream to a socket while running in the background, I would imagine it also allows outbound traffic.

Nic's remark about blocking ports is a valid one however. My experience is virtually all mobile service providers NAT your phones internet connection, so it wouldn't really be possible to run a socket server on 3G, as your "server address" (current iPhone IP) could be shared with a few thousand other phones in the area...

Hurry up IPv6
Reply | Threaded
Open this post in threaded view
|

Re: Socket Server

Nic Wise
In reply to this post by Bing Li
BTW, I'm not saying it can't be done, or it will not work, but before
you get too far, check:

1. with apple's guidelines, to see if it'll be accepted into the
store. If it doesn't need to go into the store, don't worry about this
bit
2. with various telco's, to see if they block incoming ports (or
worse: have NAT). No substitute for _trying it_ on their networks, as
they dont publish this info
3. try it out on your phone and see if it kills the battery

could be interesting if it works tho. Esp if you manage to do it with
a trackerless DHT :)

On Mon, Aug 8, 2011 at 12:49, Bing Li <[hidden email]> wrote:

> Dear Nic,
>
> Thanks so much for your reply!
>
> I know one famous, BitTorrent. Although I did not implement BT on iPhone,
> the architecture of my system is the same. I believe such a system must get
> a better load balance and high performance.
>
> In such a system, a registry server is set up. It retains all of IPs of
> iPhones.
>
> I hope the battery is not the issue in this case. I have no such experiences
> yet.
>
> Best,
> Bing
>
> On Mon, Aug 8, 2011 at 7:34 PM, Nic Wise <[hidden email]> wrote:
>>
>> If you app is in the foreground, then yes, it will consume battery.
>> The usual case for this is a GPS / SatNav type app, which has to be in
>> the foreground all the time to do the navigation.
>>
>> Push basically uses nothing. It's "Free" with the iphone....
>>
>> What does the socket server _do_? And how to you tell what the phones
>> IP is? What happens if the ISP/Telco blocks incoming connections (I
>> know of a few who do... atleast on some ports....)
>>
>>
>>
>> On Mon, Aug 8, 2011 at 10:10, Bing Li <[hidden email]> wrote:
>> > Dear Nic,
>> >
>> > I designed a socket server on iPhone. But it only works when the
>> > application
>> > is started. If the application is down, the server is also closed. If
>> > so,
>> > the battery is still consumed more than push notifications?
>> >
>> > Thanks,
>> > Bing
>> >
>> > On Mon, Aug 8, 2011 at 4:57 PM, Nic Wise <[hidden email]> wrote:
>> >>
>> >> If you want the iphone to sit there and wait for things externally to
>> >> happen, you should really look at using push notifications..... thats
>> >> the point of them :)
>> >>
>> >> there is a very good reason why apple discourages you from sitting
>> >> there, listening on a port. Security is one. But the main one is you
>> >> have to be running all the time, and the network has to be up and on
>> >> all the time, so you will turn your nice, 1-2 day iPhone battery into
>> >> a 0.5 day Android battery....
>> >>
>> >>
>> >>
>> >>
>> >>
>> >> 2011/8/8 Dimitris Tavlikos <[hidden email]>:
>> >> > The System.Net.Sockets namespace is available in MonoTouch. I haven't
>> >> > used it in a project yet, but I believe it will work ok.
>> >> >
>> >> > I have doubts if it will work with multitasking though.
>> >> >
>> >> > Dimitris Tavlikos
>> >> > Software Developer
>> >> > Email: [hidden email]
>> >> > Twitter: http://twitter.com/#!/dtavlikos
>> >> > Blog: http://software.tavlikos.com
>> >> >
>> >> >
>> >> >
>> >> >
>> >> >
>> >> >
>> >> > On Aug 8, 2011, at 9:53 AM, Andreas Ploetzeneder wrote:
>> >> >
>> >> >> Hi,
>> >> >> is it possible to put a socket server on the iPhone?
>> >> >> I want to program a socket client and a socket server on the
>> >> >> iphone,..
>> >> >>
>> >> >> --
>> >> >>
>> >> >>
>> >> >> Mit freundlichem Gruß,
>> >> >>
>> >> >> Andreas Plötzeneder
>> >> >> CEO
>> >> >> ihr ploetzeneder it-solutions Team
>> >> >> Mobile Development – Desktopanwendungen – Webanwendungen
>> >> >> Tel:  +43 720 30 30 24 10
>> >> >> Fax: +43 720 30 30 24 20
>> >> >> Email: [hidden email]
>> >> >> web:   http://www.ploetzeneder-it.com
>> >> >>
>> >> >>
>> >> >> Der Inhalt dieser E-Mail samt aller Anhänge ist vertraulich und
>> >> >> ausschließlich für den Adressaten bestimmt. Wenn Sie nicht der
>> >> >> vorgesehene
>> >> >> Adressat dieser E-Mail oder dessen Vertreter sind, so löschen sie
>> >> >> diese
>> >> >> bitte und informieren Sie den Absender. Jede Form der Verbreitung
>> >> >> oder
>> >> >> Veröffentlichung der E-Mail, sei es in ihrer Gesamtheit oder in
>> >> >> Teilen, die
>> >> >> nicht ihrem Zweck dient, ist unzulässig. Das Internet kann die
>> >> >> Unversehrtheit dieser Mitteilung nicht garantieren. ploetzeneder
>> >> >> it-solutions übernimmt daher keine Haftung, falls die E-Mail
>> >> >> geändert wurde.
>> >> >>
>> >> >>
>> >> >>
>> >> >> _______________________________________________
>> >> >> MonoTouch mailing list
>> >> >> [hidden email]
>> >> >> http://lists.ximian.com/mailman/listinfo/monotouch
>> >> >
>> >> > _______________________________________________
>> >> > MonoTouch mailing list
>> >> > [hidden email]
>> >> > http://lists.ximian.com/mailman/listinfo/monotouch
>> >> >
>> >>
>> >>
>> >>
>> >> --
>> >> Nic Wise
>> >> t.  +44 7788 592 806 | @fastchicken |
>> >> http://www.linkedin.com/in/nicwise
>> >> b. http://www.fastchicken.co.nz/
>> >>
>> >> mobileAgent (for FreeAgent): get your accounts in your pocket.
>> >> http://goo.gl/IuBU
>> >> Trip Wallet: Keep track of your budget on the go: http://goo.gl/ePhKa
>> >> London Bike App: Find the nearest Boris Bike, and get riding!
>> >> http://goo.gl/Icp2
>> >> _______________________________________________
>> >> MonoTouch mailing list
>> >> [hidden email]
>> >> http://lists.ximian.com/mailman/listinfo/monotouch
>> >
>> >
>>
>>
>>
>> --
>> Nic Wise
>> t.  +44 7788 592 806 | @fastchicken | http://www.linkedin.com/in/nicwise
>> b. http://www.fastchicken.co.nz/
>>
>> mobileAgent (for FreeAgent): get your accounts in your pocket.
>> http://goo.gl/IuBU
>> Trip Wallet: Keep track of your budget on the go: http://goo.gl/ePhKa
>> London Bike App: Find the nearest Boris Bike, and get riding!
>> http://goo.gl/Icp2
>
>



--
Nic Wise
t.  +44 7788 592 806 | @fastchicken | http://www.linkedin.com/in/nicwise
b. http://www.fastchicken.co.nz/

mobileAgent (for FreeAgent): get your accounts in your pocket.
http://goo.gl/IuBU
Trip Wallet: Keep track of your budget on the go: http://goo.gl/ePhKa
London Bike App: Find the nearest Boris Bike, and get riding! http://goo.gl/Icp2
_______________________________________________
MonoTouch mailing list
[hidden email]
http://lists.ximian.com/mailman/listinfo/monotouch
Reply | Threaded
Open this post in threaded view
|

Re: Socket Server

Bing Li
Dear Nic,

Thanks again for your fast reply!

I am planning to put it into AppStore. I am really not sure if it will be accepted by the store. How can I get the information?

It is possible that NAT might block some connections. However, I can reestablish the multicast tree to overcome the difficulty. At this time, the data to be transmitted is all light-weight. So the tree can be reconstructured without too much overhead.

I hope the battery issue is not so critical to my system.

Best,
Bing

On Mon, Aug 8, 2011 at 7:55 PM, Nic Wise <[hidden email]> wrote:
BTW, I'm not saying it can't be done, or it will not work, but before
you get too far, check:

1. with apple's guidelines, to see if it'll be accepted into the
store. If it doesn't need to go into the store, don't worry about this
bit
2. with various telco's, to see if they block incoming ports (or
worse: have NAT). No substitute for _trying it_ on their networks, as
they dont publish this info
3. try it out on your phone and see if it kills the battery

could be interesting if it works tho. Esp if you manage to do it with
a trackerless DHT :)

On Mon, Aug 8, 2011 at 12:49, Bing Li <[hidden email]> wrote:
> Dear Nic,
>
> Thanks so much for your reply!
>
> I know one famous, BitTorrent. Although I did not implement BT on iPhone,
> the architecture of my system is the same. I believe such a system must get
> a better load balance and high performance.
>
> In such a system, a registry server is set up. It retains all of IPs of
> iPhones.
>
> I hope the battery is not the issue in this case. I have no such experiences
> yet.
>
> Best,
> Bing
>
> On Mon, Aug 8, 2011 at 7:34 PM, Nic Wise <[hidden email]> wrote:
>>
>> If you app is in the foreground, then yes, it will consume battery.
>> The usual case for this is a GPS / SatNav type app, which has to be in
>> the foreground all the time to do the navigation.
>>
>> Push basically uses nothing. It's "Free" with the iphone....
>>
>> What does the socket server _do_? And how to you tell what the phones
>> IP is? What happens if the ISP/Telco blocks incoming connections (I
>> know of a few who do... atleast on some ports....)
>>
>>
>>
>> On Mon, Aug 8, 2011 at 10:10, Bing Li <[hidden email]> wrote:
>> > Dear Nic,
>> >
>> > I designed a socket server on iPhone. But it only works when the
>> > application
>> > is started. If the application is down, the server is also closed. If
>> > so,
>> > the battery is still consumed more than push notifications?
>> >
>> > Thanks,
>> > Bing
>> >
>> > On Mon, Aug 8, 2011 at 4:57 PM, Nic Wise <[hidden email]> wrote:
>> >>
>> >> If you want the iphone to sit there and wait for things externally to
>> >> happen, you should really look at using push notifications..... thats
>> >> the point of them :)
>> >>
>> >> there is a very good reason why apple discourages you from sitting
>> >> there, listening on a port. Security is one. But the main one is you
>> >> have to be running all the time, and the network has to be up and on
>> >> all the time, so you will turn your nice, 1-2 day iPhone battery into
>> >> a 0.5 day Android battery....
>> >>
>> >>
>> >>
>> >>
>> >>
>> >> 2011/8/8 Dimitris Tavlikos <[hidden email]>:
>> >> > The System.Net.Sockets namespace is available in MonoTouch. I haven't
>> >> > used it in a project yet, but I believe it will work ok.
>> >> >
>> >> > I have doubts if it will work with multitasking though.
>> >> >
>> >> > Dimitris Tavlikos
>> >> > Software Developer
>> >> > Email: [hidden email]
>> >> > Twitter: http://twitter.com/#!/dtavlikos
>> >> > Blog: http://software.tavlikos.com
>> >> >
>> >> >
>> >> >
>> >> >
>> >> >
>> >> >
>> >> > On Aug 8, 2011, at 9:53 AM, Andreas Ploetzeneder wrote:
>> >> >
>> >> >> Hi,
>> >> >> is it possible to put a socket server on the iPhone?
>> >> >> I want to program a socket client and a socket server on the
>> >> >> iphone,..
>> >> >>
>> >> >> --
>> >> >>
>> >> >>
>> >> >> Mit freundlichem Gruß,
>> >> >>
>> >> >> Andreas Plötzeneder
>> >> >> CEO
>> >> >> ihr ploetzeneder it-solutions Team
>> >> >> Mobile Development – Desktopanwendungen – Webanwendungen
>> >> >> Tel:  +43 720 30 30 24 10
>> >> >> Fax: +43 720 30 30 24 20
>> >> >> Email: [hidden email]
>> >> >> web:   http://www.ploetzeneder-it.com
>> >> >>
>> >> >>
>> >> >> Der Inhalt dieser E-Mail samt aller Anhänge ist vertraulich und
>> >> >> ausschließlich für den Adressaten bestimmt. Wenn Sie nicht der
>> >> >> vorgesehene
>> >> >> Adressat dieser E-Mail oder dessen Vertreter sind, so löschen sie
>> >> >> diese
>> >> >> bitte und informieren Sie den Absender. Jede Form der Verbreitung
>> >> >> oder
>> >> >> Veröffentlichung der E-Mail, sei es in ihrer Gesamtheit oder in
>> >> >> Teilen, die
>> >> >> nicht ihrem Zweck dient, ist unzulässig. Das Internet kann die
>> >> >> Unversehrtheit dieser Mitteilung nicht garantieren. ploetzeneder
>> >> >> it-solutions übernimmt daher keine Haftung, falls die E-Mail
>> >> >> geändert wurde.
>> >> >>
>> >> >>
>> >> >>
>> >> >> _______________________________________________
>> >> >> MonoTouch mailing list
>> >> >> [hidden email]
>> >> >> http://lists.ximian.com/mailman/listinfo/monotouch
>> >> >
>> >> > _______________________________________________
>> >> > MonoTouch mailing list
>> >> > [hidden email]
>> >> > http://lists.ximian.com/mailman/listinfo/monotouch
>> >> >
>> >>
>> >>
>> >>
>> >> --
>> >> Nic Wise
>> >> t.  +44 7788 592 806 | @fastchicken |
>> >> http://www.linkedin.com/in/nicwise
>> >> b. http://www.fastchicken.co.nz/
>> >>
>> >> mobileAgent (for FreeAgent): get your accounts in your pocket.
>> >> http://goo.gl/IuBU
>> >> Trip Wallet: Keep track of your budget on the go: http://goo.gl/ePhKa
>> >> London Bike App: Find the nearest Boris Bike, and get riding!
>> >> http://goo.gl/Icp2
>> >> _______________________________________________
>> >> MonoTouch mailing list
>> >> [hidden email]
>> >> http://lists.ximian.com/mailman/listinfo/monotouch
>> >
>> >
>>
>>
>>
>> --
>> Nic Wise
>> t.  +44 7788 592 806 | @fastchicken | http://www.linkedin.com/in/nicwise
>> b. http://www.fastchicken.co.nz/
>>
>> mobileAgent (for FreeAgent): get your accounts in your pocket.
>> http://goo.gl/IuBU
>> Trip Wallet: Keep track of your budget on the go: http://goo.gl/ePhKa
>> London Bike App: Find the nearest Boris Bike, and get riding!
>> http://goo.gl/Icp2
>
>



--
Nic Wise
t.  +44 7788 592 806 | @fastchicken | http://www.linkedin.com/in/nicwise
b. http://www.fastchicken.co.nz/

mobileAgent (for FreeAgent): get your accounts in your pocket.
http://goo.gl/IuBU
Trip Wallet: Keep track of your budget on the go: http://goo.gl/ePhKa
London Bike App: Find the nearest Boris Bike, and get riding! http://goo.gl/Icp2


_______________________________________________
MonoTouch mailing list
[hidden email]
http://lists.ximian.com/mailman/listinfo/monotouch
Reply | Threaded
Open this post in threaded view
|

Re: Socket Server

Nic Wise
https://developer.apple.com/news/index.php?id=06062011c

http://developer.apple.com/appstore/guidelines.html

you may need to be logged into the developer site to read those, tho!

On Mon, Aug 8, 2011 at 13:01, Bing Li <[hidden email]> wrote:

> Dear Nic,
>
> Thanks again for your fast reply!
>
> I am planning to put it into AppStore. I am really not sure if it will be
> accepted by the store. How can I get the information?
>
> It is possible that NAT might block some connections. However, I can
> reestablish the multicast tree to overcome the difficulty. At this time, the
> data to be transmitted is all light-weight. So the tree can be
> reconstructured without too much overhead.
>
> I hope the battery issue is not so critical to my system.
>
> Best,
> Bing
>
> On Mon, Aug 8, 2011 at 7:55 PM, Nic Wise <[hidden email]> wrote:
>>
>> BTW, I'm not saying it can't be done, or it will not work, but before
>> you get too far, check:
>>
>> 1. with apple's guidelines, to see if it'll be accepted into the
>> store. If it doesn't need to go into the store, don't worry about this
>> bit
>> 2. with various telco's, to see if they block incoming ports (or
>> worse: have NAT). No substitute for _trying it_ on their networks, as
>> they dont publish this info
>> 3. try it out on your phone and see if it kills the battery
>>
>> could be interesting if it works tho. Esp if you manage to do it with
>> a trackerless DHT :)
>>
>> On Mon, Aug 8, 2011 at 12:49, Bing Li <[hidden email]> wrote:
>> > Dear Nic,
>> >
>> > Thanks so much for your reply!
>> >
>> > I know one famous, BitTorrent. Although I did not implement BT on
>> > iPhone,
>> > the architecture of my system is the same. I believe such a system must
>> > get
>> > a better load balance and high performance.
>> >
>> > In such a system, a registry server is set up. It retains all of IPs of
>> > iPhones.
>> >
>> > I hope the battery is not the issue in this case. I have no such
>> > experiences
>> > yet.
>> >
>> > Best,
>> > Bing
>> >
>> > On Mon, Aug 8, 2011 at 7:34 PM, Nic Wise <[hidden email]> wrote:
>> >>
>> >> If you app is in the foreground, then yes, it will consume battery.
>> >> The usual case for this is a GPS / SatNav type app, which has to be in
>> >> the foreground all the time to do the navigation.
>> >>
>> >> Push basically uses nothing. It's "Free" with the iphone....
>> >>
>> >> What does the socket server _do_? And how to you tell what the phones
>> >> IP is? What happens if the ISP/Telco blocks incoming connections (I
>> >> know of a few who do... atleast on some ports....)
>> >>
>> >>
>> >>
>> >> On Mon, Aug 8, 2011 at 10:10, Bing Li <[hidden email]> wrote:
>> >> > Dear Nic,
>> >> >
>> >> > I designed a socket server on iPhone. But it only works when the
>> >> > application
>> >> > is started. If the application is down, the server is also closed. If
>> >> > so,
>> >> > the battery is still consumed more than push notifications?
>> >> >
>> >> > Thanks,
>> >> > Bing
>> >> >
>> >> > On Mon, Aug 8, 2011 at 4:57 PM, Nic Wise <[hidden email]>
>> >> > wrote:
>> >> >>
>> >> >> If you want the iphone to sit there and wait for things externally
>> >> >> to
>> >> >> happen, you should really look at using push notifications.....
>> >> >> thats
>> >> >> the point of them :)
>> >> >>
>> >> >> there is a very good reason why apple discourages you from sitting
>> >> >> there, listening on a port. Security is one. But the main one is you
>> >> >> have to be running all the time, and the network has to be up and on
>> >> >> all the time, so you will turn your nice, 1-2 day iPhone battery
>> >> >> into
>> >> >> a 0.5 day Android battery....
>> >> >>
>> >> >>
>> >> >>
>> >> >>
>> >> >>
>> >> >> 2011/8/8 Dimitris Tavlikos <[hidden email]>:
>> >> >> > The System.Net.Sockets namespace is available in MonoTouch. I
>> >> >> > haven't
>> >> >> > used it in a project yet, but I believe it will work ok.
>> >> >> >
>> >> >> > I have doubts if it will work with multitasking though.
>> >> >> >
>> >> >> > Dimitris Tavlikos
>> >> >> > Software Developer
>> >> >> > Email: [hidden email]
>> >> >> > Twitter: http://twitter.com/#!/dtavlikos
>> >> >> > Blog: http://software.tavlikos.com
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >> > On Aug 8, 2011, at 9:53 AM, Andreas Ploetzeneder wrote:
>> >> >> >
>> >> >> >> Hi,
>> >> >> >> is it possible to put a socket server on the iPhone?
>> >> >> >> I want to program a socket client and a socket server on the
>> >> >> >> iphone,..
>> >> >> >>
>> >> >> >> --
>> >> >> >>
>> >> >> >>
>> >> >> >> Mit freundlichem Gruß,
>> >> >> >>
>> >> >> >> Andreas Plötzeneder
>> >> >> >> CEO
>> >> >> >> ihr ploetzeneder it-solutions Team
>> >> >> >> Mobile Development – Desktopanwendungen – Webanwendungen
>> >> >> >> Tel:  +43 720 30 30 24 10
>> >> >> >> Fax: +43 720 30 30 24 20
>> >> >> >> Email: [hidden email]
>> >> >> >> web:   http://www.ploetzeneder-it.com
>> >> >> >>
>> >> >> >>
>> >> >> >> Der Inhalt dieser E-Mail samt aller Anhänge ist vertraulich und
>> >> >> >> ausschließlich für den Adressaten bestimmt. Wenn Sie nicht der
>> >> >> >> vorgesehene
>> >> >> >> Adressat dieser E-Mail oder dessen Vertreter sind, so löschen sie
>> >> >> >> diese
>> >> >> >> bitte und informieren Sie den Absender. Jede Form der Verbreitung
>> >> >> >> oder
>> >> >> >> Veröffentlichung der E-Mail, sei es in ihrer Gesamtheit oder in
>> >> >> >> Teilen, die
>> >> >> >> nicht ihrem Zweck dient, ist unzulässig. Das Internet kann die
>> >> >> >> Unversehrtheit dieser Mitteilung nicht garantieren. ploetzeneder
>> >> >> >> it-solutions übernimmt daher keine Haftung, falls die E-Mail
>> >> >> >> geändert wurde.
>> >> >> >>
>> >> >> >>
>> >> >> >>
>> >> >> >> _______________________________________________
>> >> >> >> MonoTouch mailing list
>> >> >> >> [hidden email]
>> >> >> >> http://lists.ximian.com/mailman/listinfo/monotouch
>> >> >> >
>> >> >> > _______________________________________________
>> >> >> > MonoTouch mailing list
>> >> >> > [hidden email]
>> >> >> > http://lists.ximian.com/mailman/listinfo/monotouch
>> >> >> >
>> >> >>
>> >> >>
>> >> >>
>> >> >> --
>> >> >> Nic Wise
>> >> >> t.  +44 7788 592 806 | @fastchicken |
>> >> >> http://www.linkedin.com/in/nicwise
>> >> >> b. http://www.fastchicken.co.nz/
>> >> >>
>> >> >> mobileAgent (for FreeAgent): get your accounts in your pocket.
>> >> >> http://goo.gl/IuBU
>> >> >> Trip Wallet: Keep track of your budget on the go:
>> >> >> http://goo.gl/ePhKa
>> >> >> London Bike App: Find the nearest Boris Bike, and get riding!
>> >> >> http://goo.gl/Icp2
>> >> >> _______________________________________________
>> >> >> MonoTouch mailing list
>> >> >> [hidden email]
>> >> >> http://lists.ximian.com/mailman/listinfo/monotouch
>> >> >
>> >> >
>> >>
>> >>
>> >>
>> >> --
>> >> Nic Wise
>> >> t.  +44 7788 592 806 | @fastchicken |
>> >> http://www.linkedin.com/in/nicwise
>> >> b. http://www.fastchicken.co.nz/
>> >>
>> >> mobileAgent (for FreeAgent): get your accounts in your pocket.
>> >> http://goo.gl/IuBU
>> >> Trip Wallet: Keep track of your budget on the go: http://goo.gl/ePhKa
>> >> London Bike App: Find the nearest Boris Bike, and get riding!
>> >> http://goo.gl/Icp2
>> >
>> >
>>
>>
>>
>> --
>> Nic Wise
>> t.  +44 7788 592 806 | @fastchicken | http://www.linkedin.com/in/nicwise
>> b. http://www.fastchicken.co.nz/
>>
>> mobileAgent (for FreeAgent): get your accounts in your pocket.
>> http://goo.gl/IuBU
>> Trip Wallet: Keep track of your budget on the go: http://goo.gl/ePhKa
>> London Bike App: Find the nearest Boris Bike, and get riding!
>> http://goo.gl/Icp2
>
>



--
Nic Wise
t.  +44 7788 592 806 | @fastchicken | http://www.linkedin.com/in/nicwise
b. http://www.fastchicken.co.nz/

mobileAgent (for FreeAgent): get your accounts in your pocket.
http://goo.gl/IuBU
Trip Wallet: Keep track of your budget on the go: http://goo.gl/ePhKa
London Bike App: Find the nearest Boris Bike, and get riding! http://goo.gl/Icp2
_______________________________________________
MonoTouch mailing list
[hidden email]
http://lists.ximian.com/mailman/listinfo/monotouch
Reply | Threaded
Open this post in threaded view
|

Re: Socket Server

hocpham@yahoo.com
In reply to this post by Nic Wise
Dear Nic, can you give me your remarks to the following issues I have below:

1. Hosting database server in iOS

I've developed a Point of Sales (POS) app on the iPad and iPhone. The app builds with local SQLite database. The app mainly operates in a single store (close loop) environment with local network router. But in this environment I need to be able to run several iPad(s) connecting together in a single database. I want one iPad at the cashier counter to host the database and the rest of other iPad devices connecting to the host. In the POS environment, all app needs to be responsive in real-time or close to real-time database access, because there a lot data transfers between them. I think Core Data, web service, MS Azure, etc. is not going be responsive enough. Nor having a local desktop Windows server to provide local data access will NOT cut it because we want the store owner to be able to bring the host iPad home after closing the shop.

Questions: 1. Can I develop the app to host local database? 2. What is the best network protocol for the host? Socket, REST, JASON, WCF

--------------------------------

2. Web Services Performance

Again, I've developed the Point of Sales (POS) application in Windows and iPad (iOS devices) app using local database such as MSSQL Server Express and Sqlite3. These applications work great and FAST in local network environment. For multi stations I used MSSSQL network server (TCP open port 1433). For SQLite system, I've wrote a complete WCF server/client then hosted on local network. Again, the systems work great and FAST. Now I want explore Web base application which mean that I must hosting web services on the WWW or Cloud services.
 
 So, my question is what web service protocol should I use to maintaining the satisfactory POS performance (the applications still have run locally as native app). I have looks in to JSON, REST protocol but not sure will give the performance that I need because in POS world it is requires that fast and a lot database records to SELECT(GET), UPDATE(POST) and INSERT(PUT) in real-time or close manner.
 
 I know that I can't get a real-time performance on web services but if I can get 80% plus performance that worth shooting for. Thanks...
 

Visit our website: http://www.yesmua.com
Reply | Threaded
Open this post in threaded view
|

Re: Socket Server

Nic Wise
Hi

I replied to the 2 questions in your other emails :)

Cheers

Nic

> 1. Hosting database server in iOS
>
> I've developed a Point of Sales (POS) app on the iPad and iPhone. The app
> builds with local SQLite database. The app mainly operates in a single store
> (close loop) environment with local network router. But in this environment
> I need to be able to run several iPad(s) connecting together in a single
> database. I want one iPad at the cashier counter to host the database and
> the rest of other iPad devices connecting to the host. In the POS
> environment, all app needs to be responsive in real-time or close to
> real-time database access, because there a lot data transfers between them.
> I think Core Data, web service, MS Azure, etc. is not going be responsive
> enough. Nor having a local desktop Windows server to provide local data
> access will NOT cut it because we want the store owner to be able to bring
> the host iPad home after closing the shop.
>
> Questions: 1. Can I develop the app to host local database? 2. What is the
> best network protocol for the host? Socket, REST, JASON, WCF
>
> --------------------------------
>
> 2. Web Services Performance
>
> Again, I've developed the Point of Sales (POS) application in Windows and
> iPad (iOS devices) app using local database such as MSSQL Server Express and
> Sqlite3. These applications work great and FAST in local network
> environment. For multi stations I used MSSSQL network server (TCP open port
> 1433). For SQLite system, I've wrote a complete WCF server/client then
> hosted on local network. Again, the systems work great and FAST. Now I want
> explore Web base application which mean that I must hosting web services on
> the WWW or Cloud services.
>
>  So, my question is what web service protocol should I use to maintaining
> the satisfactory POS performance (the applications still have run locally as
> native app). I have looks in to JSON, REST protocol but not sure will give
> the performance that I need because in POS world it is requires that fast
> and a lot database records to SELECT(GET), UPDATE(POST) and INSERT(PUT) in
> real-time or close manner.
>
>  I know that I can't get a real-time performance on web services but if I
> can get 80% plus performance that worth shooting for. Thanks...
>
>
> Visit our website: http://www.yesmua.com
>
>
>
>
> --
> View this message in context: http://monotouch.2284126.n4.nabble.com/Socket-Server-tp3726258p4658439.html
> Sent from the MonoTouch mailing list archive at Nabble.com.
> _______________________________________________
> MonoTouch mailing list
> [hidden email]
> http://lists.ximian.com/mailman/listinfo/monotouch



--
Nic Wise
t.  +44 7788 592 806 | @fastchicken
b. http://www.fastchicken.co.nz/
_______________________________________________
MonoTouch mailing list
[hidden email]
http://lists.ximian.com/mailman/listinfo/monotouch