You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to CodenameOne Discussions
i want to write a simple App for me (Android). For this it is necessary
that the server can send data to my client without a response of it to the server (only one client at a time over internal network)
but unfortunately i have no idea how to use sockets or websockets with
codename one. Can someone please post a small examplecode how to establish connection,
listen on it and send some small data (to the client)? I want to write the server on my own instead of using Tomcat becaues i am not even sure what this is.
Due to the fact that i dont have the money to use pro, i can't use push and i don't want to use pubnub because it seems that the data is relayed over other servers in the internet. I took a look at the example how to write a simple chat but i don't understand how it works (seems some tomcat magic).
I hope your can help me.
greetings from germany
Captain
IDE: Eclipse Desktop OS: Windows 8.1 Target Server: Centos Simulator: Codename One Simulator Device: Asus Memo Pad
Housseini Moussa
unread,
Jan 29, 2016, 10:27:24 AM1/29/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to CodenameOne Discussions, spam-...@web.de
Thank you, but i took a look at this first after downloading the lib. Unfortunately this can't help me because there is no listening on the sockets and i think Tomcat handles this. I want to write the server on my own (incl. listening on the incoming connections).
So do you have another example code?
greetings
Captain
Shai Almog
unread,
Jan 30, 2016, 1:19:19 AM1/30/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
It sounds that what you are looking for isn't sockets or web but rather push support.
spam-...@web.de
unread,
Jan 30, 2016, 5:05:50 AM1/30/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to CodenameOne Discussions, spam-...@web.de
Oh i got it. I does not need websockets.. Sorry, i am totally new in developing with codename one and using sockets/websockets so i thought that would be the same. but with the possibility to use it async. I will take a look at the cn1sockets or the normal sockets (already took a look but wasn't able to get a writer or reader). Thanks for your help!