MMS App via Socket

i have try create MMS application uses J2ME as client andSocket at server side,

i have case where i cannot solve it. that case is like this :

Such as there are 2 client which connect to server, and both in active, like client A on port 1056 and client B on port 1058, if client B send message to client A throug port 1056 , what I want is that message directly sent to client B which connectedt to server on port 1058, but I can solve that.

Inother word, how change port which connected to client from port 1056 to port 1058.

I need your help for this case or you can give me another idea to solve this case, Thank's.Regard

[663 byte] By [inanguna] at [2007-10-3 2:49:11]
# 1

Your description is very confused, in fact probably wrong, but in any case you don't 'change port numbers', you just read and write from the appropriate Sockets. If you want client A to be able to send to client B, the server will have to read client A's socket and write that data to client B's socket.

ejpa at 2007-7-14 20:37:57 > top of Java-index,Archived Forums,Socket Programming...
# 2

Does he mean channel-bonding?

CB is when a server binds specific local socket ports to a specific remote client port.

Client A on port 1055 wants to connect to Server A through it's service port, the Server should create a socket on a specific port.

Some special-use apps have this design, but firewalls often get in the way - it's not a good design anymore.

I don't know if this is what he is refering to. It seems like you answered the question, though, the first one that comes to mind.

watertownjordana at 2007-7-14 20:37:57 > top of Java-index,Archived Forums,Socket Programming...
# 3

> Does he mean channel-bonding?

>

> CB is when a server binds specific local socket ports

> to a specific remote client port.

That's not my understanding of channel bonding, and I don't know how a server can bind a local socket port to a specific remote client port.

> Client A on port 1055 wants to connect to Server A

> through it's service port, the Server should create a

> socket on a specific port.

I don't get what you mean here either. The server always creates a socket on a specific port.

My understanding of channel bonding is that it is the use of two or more NICs to form a single logical channel.

ejpa at 2007-7-14 20:37:57 > top of Java-index,Archived Forums,Socket Programming...