Please help me to solve this problem.
Hi , can someone help me to solve the following problem:
1) I wrote two different client and server program, (Using UDP)
2) In the server side for testig I wrote some code like when a client sending message to server
a) server find on the database only senders IP address then server return the message to sender
b) Again if server find out other IP address too then it returns to them too
3) but it working for (a) , but not for (b)
4) Actually, its sending message but client not getting it
So, can some tell me, how to modify server or client side
Server wont reply the msg to the same IP address/ Sender who sent the message.
Server will reply the message to other person..
For example, Alace, Bob and Carrry are three clients. Alace, Bob, and Carry are online now. When they get online server save there IP address.
Now, Bob sends a message to server , then server will send the message to Alace and Carry. Not to the sender Bob.
Thanks]
I am giveing a pice of coding of server side
else
IPAddressObject addressObjectt;
onlineUserList.reset();
for(int i=0; i<onlineUserList.lengthIs(); i++)
addressObjectt=(IPAddressObject)onlineUserList.getNextItem();
IPAddress=addressObjectt.getAddress();
System.out.println("\n this is not same : "+IPAddress);
if(addressObject.compareTo(addressObjectt)!=0)
System.out.println("\n this is not same : "+sentence);
String cSentence=sentence.toUpperCase();
sendData=cSentence.getBytes();
DatagramPacket sendPacket= new DatagramPacket(sendData, sendData.length, IPAddress,port);
System.out.println("\n aaaaaaa : "+IPAddress);
client.send(sendPacket);
else
System.out.println("\n this is same : "+sentence);
String cSentence= sentence.toUpperCase();
sendData=cSentence.getBytes();
DatagramPacket sendPacket= new DatagramPacket(sendData, sendData.length, IPAddress,port);
client.send(sendPacket);
System.out.println("\n this is same : "+cSentence);
}//for
}//else
Edited by: kidylimp on Apr 8, 2008 12:16 PM
This looks suspiciously like a cross-post
[http://forum.java.sun.com/thread.jspa?threadID=5283608]
Similar Messages
-
Hello i have a unusual problem,anyway my iphone 4 wont turn on and when someone calls they hear ringing,but my phone doesent ring.So i poen simcase and now ring off. Screen is just black,because it's turned off..Please help me to solve this problem..Thanks
As far as trying to power up your device, make sure it has a good charge and then hold the button on the top of the phone and the home button on the faceplate together until the apple appears on the screen.
-
Hi, when ever I'm using 3G, on my Iphone4 sim stops working and network is lost, this started after I updated my phone with 6.0.1(10A523)version. Please help how to solve this problem. Thanks.
Photos/videos in the Camera Roll are not synced. Photos/videos in the Camera Roll are not touched with the iTunes sync process. Photos/videos in the Camera Roll can be imported by your computer which is not handled by iTunes. Most importing software includes an option to delete the photos/videos from the Camera Roll after the import process is complete. If is my understanding that some Windows import software supports importing photos from the Camera Roll, but not videos. Regardless, the import software should not delete the photos/videos from the Camera Roll unless you set the app to do so.
Photos/videos in the Camera Roll are included with your iPhone's backup. If you synced your iPhone with iTunes before the videos on the Camera Roll went missing and you haven't synced your iPhone with iTunes since they went missing, you can try restoring the iPhone with iTunes from the iPhone's backup. Don't sync the iPhone with iTunes again and decline the prompt to update the iPhone's backup after selecting Restore. -
ýesterday my iphone 5c screen suddendly shows connect to itune and i try to restore it using itune but halfway i got a message error occured (14). please help me in solving this problem.
what did you learn when you search the internet for iPhone error 14?
-
Hello Sorry for the inconvenience, but I have a problem in Java I can not open files, audio chat, which type of jnlp after the last update of the Java 2012-004
Please help me in solving this problem.Make sure Java is enable in your browser's security settings.
Open Java Preferences (in Utilities folder)
Make sure Web-start applications are enabled.
Drag Java 32-bit to the top of the list.
jnlp isn't an audio file format. It's just a java web-start program (Java Network Launching Protocol). -
Hello Experts Please help me to solve this problem.
Hello Experts,
I am getting a problem while installing the SOLUTION MANAGER 4.0.
in step 17/45 IMPORT ABAP :
the problem is :
ERROR 2008-04-29 03:10:28.110
CJS-30023 Process call '/usr/sap/SLM/SYS/exe/run/R3load -testconnect' exits with error code 2. For details see log file(s) R3load.exe.log.
when i saw R3load.exe.log file it has the following contain :
sapparam: sapargv( argc, argv) has not been called.
sapparam(1c): No Profile used.
sapparam: SAPSYSTEMNAME neither in Profile nor in Commandline
/usr/sap/SLM/SYS/exe/run/R3load: START OF LOG: 20080428095833
/usr/sap/SLM/SYS/exe/run/R3load: sccsid @(#) $Id: //bas/700_REL/src/R3ld/R3load/R3ldmain.c#13 $ SAP
/usr/sap/SLM/SYS/exe/run/R3load: version R7.00/V1.4 [UNICODE]
Compiled Jul 14 2007 02:19:03
/usr/sap/SLM/SYS/exe/run/R3load -testconnect
DbSl Trace: OCI-call 'OCIServerAttach' failed with rc=12505
DbSl Trace: CONNECT failed with sql error '12505'
DbSl Trace: OCI-call 'OCIServerAttach' failed with rc=12505
DbSl Trace: CONNECT failed with sql error '12505'
(DB) ERROR: db_connect rc = 256
DbSl Trace: OCI-call 'OCIServerAttach' failed with rc=12505
DbSl Trace: CONNECT failed with sql error '12505'
DbSl Trace: OCI-call 'OCIServerAttach' failed with rc=12505
DbSl Trace: CONNECT failed with sql error '12505'
(DB) ERROR: DbSlErrorMsg rc = 99
/usr/sap/SLM/SYS/exe/run/R3load: job finished with 1 error(s)
/usr/sap/SLM/SYS/exe/run/R3load: END OF LOG: 20080428095834
Please can any body help me to solve this problem.
waiting for fast response, as my installtion is pending due to this problem.
have a nice day.
Regards,
Shivendra.Hi,
The following should be verified:
(1) check what DB instances the listener currently is aware of. This can be done with the command 'lsnrctl services'.
(in case you listener does not have the default name LISTENER, then use 'lsnrctl services <listener name>' )
(2) Perhaps there is an issue with the dynamic instance registration, even though the error code is different, you should nevertheless check the points from note #563574.
(3) Verfiy the value of the parameter local_listener (see mentioned note). Since you have changed the listener, the parameter might still be wrong.
In case local_listener is correcly set you should give the command
ALTER SYSTEM REGISTER;
a try.
Best Regards,
Michael -
URGENT: please help me to solve this problem
I'm trying to find a way to count how many times a number has been inputted in a loop but unable to find a calculation to find the answer,
can anyone help??
Please take me step by step on how to solve this problem as I'm new to Java.Stinkin' crossposter!
http://forum.java.sun.com/thread.jspa?threadID=605663 -
Please email me at [email protected] if you have an great solution to my problem.
Only Apple can handle this:
iTunes Support -
In outlook mail mails are not getting downloaded and option to select the folders to sync is not visible in the exchange setup
See:
* http://www.ehow.com/how_6609141_remove-bearshare-spyware.html
* http://www.fanhow.com/answers/question-77222-how-to-delete-bearshare-search-from-firefox
You can look for a "Mediabar" program under "Control Panel > Programs and features"
See also this forum thread about BearShare:
*[[/questions/792580]]
If the menu bar is hidden then press the F10 key or hold down the Alt key to make the menu bar appear.
Make sure that toolbars like the "Navigation Toolbar" and the "Bookmarks Toolbar" are visible: "View > Toolbars"
*Open the Customize window via "View > Toolbars > Customize"
*Check that the "Bookmarks Toolbar items" is on the Bookmarks Toolbar
*If the "Bookmarks Toolbar items" is not on the Bookmarks Toolbar then drag it back from the toolbar palette in the customize window to the Bookmarks Toolbar
*If missing items are in the toolbar palette then drag them back from the Customize window on the toolbar
*If you do not see an item on a toolbar and in the toolbar palette then click the "Restore Default Set" button to restore the default toolbar set up
*http://kb.mozillazine.org/Toolbar_customization
*https://support.mozilla.org/kb/Back+and+forward+or+other+toolbar+items+are+missing -
I am blocked, as I have updated new apple virsion, which do not allowed sim card purchased in India, at present I am in India
and I want to use my phone using by purchase local sim card, please help me to solve this problem...Jayendrabhai PatelYOU will need to contact the carrier to whom the phone is locked. YOU will need to see IF that carrier offers unlocking and IF you qualify. This has nothing to do with Apple or this forum.
Best,
GDG -
My iPod Nano 7th Generation couldn't be detected by iTunes when I plugged in. I tried resolving the issue by uninstalling the iTunes and then install it back again but yet still the same problem exist. Can you please help me to solve this issue? I have already updated to the latest version of iTunes on my Windows 8 and I cannot synchronize my iPod for the time being. Please do help me to solve this problem. Thank You.
uninstall all iTunes,5 programes,this worked for me after reinstall them
-
Hi, I bought Apple tv traying to rent a movie but there problem with itunes, and there is on apple tv don't have my country. could you help me please how can I solve this problem?
Whinston,
I live in Azerbaijan. Recently I bought apple tv in New York. When I come back to my country tried to rent movies from my country but couldn't find my country name on apple tv menu, so there is a problem I don't know how to fix it. is there have another way to take a rent movies? -
I have the iPhone 4 recently became weak Wi-Fi where I can not use the Internet only when sitting Bejjani router, Can anyone help me in solving this problem please
iPhone 4, iOS 7.0.3There's a whole lot to read in your post, and frankly I have not read it all.
Having said that, this troubleshooting guide should help:
http://support.apple.com/kb/TS1538
In particular, pay attention to the mobile device support sections near the bottom, assuming you have already done the items above it. -
Help me please ,I dont can solve this problem
please How I can solve this problem?(SQL)
Display each employee’s last name, hire date, and salary review date, which is the first Monday after
six months of service. Label the column REVIEW. Format the dates to appear similar to “Monday,
the Thirty-First of July, 2000.”
Flickr: abbasovv's PhotostreamWhere you get this task? I didn't understand anything, really! what do you want to do? what is the purpose? to get next 6 months function ADD_MONTHS, to get next monday, tuesday ... use function NEXT_DAY, to get number of week use function TO_CHAR.
WITH T AS(
select to_date('17-JUN-1987','dd-mon-yyyy') D from dual union all
select to_date('21-SEP-1989','dd-mon-yyyy') from dual union all
select to_date('13-JAN-1993','dd-mon-yyyy') from dual union all
select to_date('03-JUN-1990','dd-mon-yyyy') from dual union all
select to_date('21-MAY-1991','dd-mon-yyyy') from dual union all
select to_date('07-FEB-1999','dd-mon-yyyy') from dual union all
select to_date('16-NOV-1999','dd-mon-yyyy') from dual )
SELECT D,
ADD_MONTHS(D,6),
NEXT_DAY(ADD_MONTHS(D,6),'MONDAY'),
TO_CHAR(ADD_MONTHS(D,6),'W'),
TO_CHAR(ADD_MONTHS(D,6),'fmDay, fmdd fmMonth fmyyyy')
FROM T
WHERE TO_CHAR(ADD_MONTHS(D,6),'W') = 1
Ramin Hashimzade -
Dear , please help me to solve my problem in activating my iPhone
Where I lost it since 3 months and when found it cannot activating my ID
Where give me (Your Apple ID has been disabled for security reasons. To enable your account, reset your password at applied.apple.com)
And try to reset my password but cannot please help me where am a poor man and cannot pay another money to solving this problem to any one
My iPhone data
Ime: ****
Model: A1332
FCC ID : BCG-E2380A
IC: 579C-E2380A
MY id at cloud ****
Password ( ****)
My country : Egypt
MY EMAIL : ****
Tell no: ****
<Personal Information Edited By Host>The following may help:
Apple ID: 'This Apple ID has been disabled for security reasons' alert appears - Apple Support
If you didn't receive your Apple ID verification or reset email - Apple Support
Maybe you are looking for
-
How do I stop it from shuffling tracks in the ipod app?
I have put an audiobook onto the iphone but it shuffles the tracks. There used to be a blue shuffle button in the ipod mode but this has disappeared... It's really frustrating that I can't play the book in order!
-
Restrict to use of two transaction concurrently in ABAP program
Hi, We have requirement to restrict a user could not using two transaction at the same time. how could i achieve this. Please throw some light on this.
-
Dear Members : For sake of learning, ATP in R12.1.1 Vision instance, I created a simple ATP rule with Demand as Sales Order and Supply as PO, On-hand Available. I followed all the steps as below: 1) After creating ATP rule and attaching it to the ord
-
White shapes not exporting as jpeg
Hello there. I'm having a problem exporting illustrator files as jpegs. The problem is sometimes (but not everytime) objects -compound or not compound- with a white fill and no stroke will not export with the jpeg. When I save as a pdf everything is
-
TS1368 can't connect to itunes due to password error on aol
Has anyone had problems after updating your phone then not being able to access ITunes? This has happened to me and the Apple support can not fix it. We tried changing my password but it still isn't working. Aol is suppose to be trying to resolve