• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Client Mode vs. Server Mode

 
Sunar Susanto
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • 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.
 
Terence Doyle
Ranch Hand
Posts: 328
  • Mark post as helpful
  • send pies
  • 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 ]
 
Mehdi Chaouachi
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
  • 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
  • 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,
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic