Win a copy of Escape Velocity: Better Metrics for Agile Teams this week in the Agile and Other Processes forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Frank Carver
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • fred rosenberger

Client Mode vs. Server Mode

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am a little bit confuse about Client Mode and Server Mode.
Client Mode can only send messages and Server Mode can send and receive messages.
How do Clients receive data from the Server?
Does it means that only Server - Server communication can be Bi-direction?
Can a MIDlet act as Client and Server?
Thanks a lot.
 
Ranch Hand
Posts: 328
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
Using SMS as an example:
if you open a connection in client mode you can only recieve messages and ONLY from the number specified in the address you used to open the connection. the port number you send on will be determined by the implementation on the device - probably following a reccomended port in the SMS specs ( correct me if I'm wrong here anybody !!)
If you specify an url like "sms:// :2522" this is in server mode and you can send messages on that port and recieve messages sent to your device's phone number and that port. I think thats the bit that the specs aren't clear on. ( again correct me if I'm wrong here anybody !!)
Hope that helps,
[ February 23, 2004: Message edited by: Terence Doyle ]
 
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

if you open a connection in client mode you can only recieve messages and ONLY from the number specified in the address you used to open the connection. the port number you send on will be determined by the implementation on the device - probably following a reccomended port in the SMS specs ( correct me if I'm wrong here anybody !!)


So you mean that in client mode we can send and recieve???!
If true, does this allow us to send to other numbers also?
And how does this apply to other protocols (datagram,socket, and comm)?
I am really confused here, please help me..
 
Terence Doyle
Ranch Hand
Posts: 328
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
quote:
--------------------------------------------------------------------------------
if you open a connection in client mode you can only recieve messages and ONLY from the number specified in the address you used to open the connection. the port number you send on will be determined by the implementation on the device - probably following a reccomended port in the SMS specs ( correct me if I'm wrong here anybody !!)
--------------------------------------------------------------------------------

Opps!! That should read
... the port number you RECIEVE on ......
Sorry for confusing you further ..
If you open a client connection you don't even have to worry about the port number used on your device. That's what I was trying to say.
Guess I should read my own posts a bit better

Sorry again. I hope this clears this mess up.
Bye,
 
Grow your own food... or this tiny ad:
The trailboss has a kickstarter
https://coderanch.com/t/754577/Garden-Master-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic