![]() |
|
|
|
| ||||||
|
Welcome to the The ProgrammersTalk Community forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
![]() |
![]() | | LinkBack | Thread Tools | Display Modes | ![]() |
| |
| |||
| Java I understand your concept of running...thaks a lot for that.. but i am confused about if(this.running!=running) { } if this.running is false and running is false will it enter the loop..... if yes how? if not why not? basically i am trying to get the condition in if loop.... |
| ||||
| no, that means that if this.running is NOT EQUAL to running (assuming that they're not object. Meaning that they're just a primitive type of variables, then you may use that comparison PHP Code: ![]() |
| |||
| Thanks a lot for previous help....u are too good to explain anyone... socket client=null; serversocket listen_socket; client=listen_socket.accept(); is it true that only port is getting assigned to socket client.b'coz serversocket only have port.... |
| ||||
| I'm not sure with what you're trying to say, but about networking, here's what happened: ServerSocket (in the server) will have all of the clients' socket, and each time ServerSocket accept a connection to a client, that client should get a listener (which you will create with multi threading), that way there will be more than one client can connect simultaneously. port is not assigned to the client, port is opened from the server, and the client will connect to that specific port. If you're not sure with multi threading, feel free to see my previous tutorial about multi threading, I think I made several of them (they're all in Java forum) |
| ||||
| Quote:
![]() |
![]() |
| Thread Tools | |
| Display Modes | |
| |