Android development of similar micro-channel program
Want to develop on the Android platform, a similar micro-channel program, a server, the server will assign an IP address to the client when the client login, then you can send voice messages directly between two clients, no transmission of information through the server. How to achieve information transmission? Reply: Client server will assign an ip?
Reply: The answer - the teachers beg the landlord arranged graduation. . . . No clue Reply: LZ ah this is p2p communications technology through the wall, a little hard, you can go to understand, Reply: That also what server ah.
Reply: It is up to the server doing? Open a recording function, generate a mp3, direct the MMS. Reply:
socket can do Reply:
Server to dynamically assign IP Reply:
Yes Reply: P2P technology. PCM signal does it send compressed iLBC Reply:
Uh, you say ah well advanced, I think recording and socket communication to send it on the line, can specifically talk about it Reply: The server to the client assigned IP? I think my network is a white school, and that the routing layer is IP server is doing ...... ...... who assigned
The teacher said so, I do not know ah, the server is our own doing, Ann a wifi, build a database, and then blabla Reply:
There are examples of wood ah, do not laugh at it it fun ah Reply: previously wrote, because there is no order, no more Reply:
Client server will assign an ip?
Yes
I'm going to tell you is how it should be you misheard or misunderstood. . . . Not a server to dynamically allocated ip. . The client communicates with the server is client-server ip you can get the full use UDP to communicate. What is the graduation project. . UDP enough. . Your client only when the server using a socket to get your client's ip after telling other clients. . Then be able to communicate the (this is the case outside the local area network to be slightly more complex) between them. . . Or by forwarding the message to the server is also possible Reply: IP is not fixed it Reply: Our course work, I wrote a similar QQ chat program such, if you want to you Reply:
our course work, I wrote a similar QQ chat program like this, if you want to you
Great, you sent to my mailbox, thank you wrh77@foxmail.com Reply:
Client server will assign an ip?
Yes
I'm going to tell you is how it should be you misheard or misunderstood. . . . Not a server to dynamically allocated ip. . The client communicates with the server is client-server ip you can get the full use UDP to communicate. What is the graduation project. . UDP enough. . Your client only when the server using a socket to get your client's ip after telling other clients. . Then be able to communicate the (this is the case outside the local area network to be slightly more complex) between them. . . Or rely on servers to forward messages is also possible
Ah, ip that is indeed my understanding is wrong, the teacher said later let the client put together IP and user name to the server, then the server into the database, so that when the user name search by another client, server, put the corresponding ip issued to him. Communication between the two phones, I wanted to let each other socket server and client, do you think it possible, do not get socket server on Android Reply:
want to develop on the Android platform, a similar micro-channel program, a server, a client server will log the client is assigned an IP address and can be sent directly to the voice information between the two clients, the information is not transmitted through the server. How to achieve information transmission?
Oh feeling a bit chaotic logicTwo clients is how to connect? Server with a substantially Reply:
Want to develop on the Android platform, a similar micro-channel program, a server, the server will assign an IP address to the client when the client login, then you can send voice messages directly between two clients, no transmission of information through the server. How to achieve information transmission?
Oh feeling a bit chaotic logicTwo clients is how to connect? Server is basically useless
Meaning of the landlord should be, both A and B clients to connect to the server. The server then records the IP address of both the client and the IP address A to B, IP address B to A, and between these two clients as one of the server (assumed to be A), then the other party IP addresses can be used to connect A up. Message passing between them can directly point to point, and no longer need to transit through the server. I do not know understanding correct? Reply:
Want to develop on the Android platform, a similar micro-channel program, a server, the server will assign an IP address to the client when the client login, then you can send voice messages directly between two clients, no transmission of information through the server. How to achieve information transmission?
Oh feeling a bit chaotic logicTwo clients is how to connect? Server is basically useless
Meaning of the landlord should be, both A and B clients to connect to the server. The server then records the IP address of both the client and the IP address A to B, IP address B to A, and between these two clients as one of the server (assumed to be A), then the other party IP addresses can be used to connect A up. Message passing between them can directly point to point, and no longer need to transit through the server. I do not know understanding correct?
Too right, that's it, but how do point Reply:
Want to develop on the Android platform, a similar micro-channel program, a server, the server will assign an IP address to the client when the client login, then you can send voice messages directly between two clients, no transmission of information through the server. How to achieve information transmission?
Oh feeling a bit chaotic logicTwo clients is how to connect? Server is basically useless
Meaning of the landlord should be, both A and B clients to connect to the server. The server then records the IP address of both the client and the IP address A to B, IP address B to A, and between these two clients as one of the server (assumed to be A), then the other party IP addresses can be used to connect A up. Message passing between them can directly point to point, and no longer need to transit through the server. I do not know understanding correct?
Too right, that's it, but how do point
Then write a server-side code according to write a similar, equivalent to the phone either as a server and a client such as mobile phone client. Reply: There are open source messaging server openfire landlord can look Reply:
Want to develop on the Android platform, a similar micro-channel program, a server, the server will assign an IP address to the client when the client login, then you can send voice messages directly between two clients, no transmission of information through the server. How to achieve information transmission?
Oh feeling a bit chaotic logicTwo clients is how to connect? Server is basically useless
Meaning of the landlord should be, both A and B clients to connect to the server. The server then records the IP address of both the client and the IP address A to B, IP address B to A, and between these two clients as one of the server (assumed to be A), then the other party IP addresses can be used to connect A up. Message passing between them can directly point to point, and no longer need to transit through the server. I do not know understanding correct?
Too right, that's it, but how do point
Then write a server-side code according to write a similar, equivalent to the phone either as a server and a client such as mobile phone client.
Now is written, but there are always exceptions, can not be used Reply: Look at the whole thing out of the exception code Reply:
public class Communication extends Activity { private Button bt, btback, btadd; private TextView tv; private Socket socket; private String serverIpAddress; private ListView mListView;
private ChatMsgViewAdapterRight mAdapterright; private ChatMsgViewAdapterLeft mAdapterleft; private EditText et; private List mDataArrays = new ArrayList (); LayoutInflater mLayoutInflater = null;
private static final int REDIRECTED_SERVERPORT = 6000;
public void onCreate (Bundle savedInstanceState) {
super.onCreate (savedInstanceState); setContentView (R.layout.comunication); mLayoutInflater = LayoutInflater.from (this); / / Start the activity does not pop up automatically when the soft keyboard getWindow () setSoftInputMode (WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_HIDDEN);.
return null; } / / Define the Handler object private Handler handler = new Handler () { @ Override / / When the message is sent out when there is this method of implementation Handlerpublic void handleMessage (Message msg) { super.handleMessage (msg); / / Handle UI } }; }
Reply: Help us to see it, or the great God who help write, pointing pointing, coming time, grateful ah Reply: If you do not depend on the server, terminal communication service to do both ends, but also as a client. Between the use of socket communications. Reply:
If you do not depend on the server, terminal communication service to do both ends, but also as a client. Between the use of socket communications.
Ah really think so, in the same application in both client-side code, another server code, and the contents are displayed in the same interface, you help me to write about it, it is necessary to use threads Reply:
If you do not depend on the server, terminal communication service to do both ends, but also as a client. Between the use of socket communications.
Ah really think so, in the same application in both client-side code, another server code, and the contents displayed on the same screen, can you help me to write about it, it is necessary to use the thread
Even if you do a normal chat program, it also used the thread Reply:
Client server will assign an ip?
Yes
IP is the most basic things are not clear yet what the development Gesha ah? ? ? Reply: Direct socket
No comments:
Post a Comment