Help me please. Urgent!!!!

i am going to develop a connect-4 over gprs in mobile phone.i have a few questions
1st of all, what is server-driven and peer to peer?Server-driven is all the clients connect to the server only?and peer to peer is cliecnt connect to client without server?I'm doing a connect 4 game for 2 players.Why i c a nokia forum say over GSm network must use server driven?y can't i use a peer to peer bcoz it just 4 2 player playing only.
my 2nd question is that a data we send from moble phone have a few layers,right?like application layer, transpoer layer, nettwork layer and so on.Then, http is application layer and tcp is transport layer.i c a forum say game server can be http server or tcp server. Then, what it means by http server and tcp server?isn/t that a http use to communicate with the server and tcp is a transport method to send the data?Isn't http and tcp is in a same thing?then, y will have http server and tcp server?By using http server, we will use http and tcp/udp to transport the data, right?Then, how bout a TCP server?Is it only use transport layer and others layer but without http?Can use like that ah?My game server just need to analysis the data and send reponses to the players.Tcp can inform the other player when the player's turn come but http cannot. So, what is really http and tcp server?Is that the protocols they use is different?

i am going to develop a connect-4 over gprs in mobile
phone.i have a few questions
1st of all, what is server-driven and peer to
peer?Server-driven is all the clients connect to the
server only?and peer to peer is cliecnt connect to
client without server?I'm doing a connect 4 game for 2
players.Why i c a nokia forum say over GSm network
must use server driven?y can't i use a peer to peer
bcoz it just 4 2 player playing only.I don't program phones, so I can't give you a definitive answer. If you can establish a tcp connection (or possibly even just send datagram-like messages... but that's a lot more work) between the two phones, then you can use a peer to peer framework.
my 2nd question is that a data we send from moble
phone have a few layers,right?like application layer,
transpoer layer, nettwork layer and so on.Then, http
is application layer and tcp is transport layer.i c a
forum say game server can be http server or tcp
server. Then, what it means by http server and tcp
server?isn/t that a http use to communicate with the
server and tcp is a transport method to send the
data?Isn't http and tcp is in a same thing?then, y
will have http server and tcp server?By using http
server, we will use http and tcp/udp to transport the
data, right?Then, how bout a TCP server?Is it only use
transport layer and others layer but without http?Can
use like that ah?My game server just need to analysis
the data and send reponses to the players.Tcp can
inform the other player when the player's turn come
but http cannot. So, what is really http and tcp
server?Is that the protocols they use is different? Your understanding is correct. tcp is a low-level persistent connection, whereas http is a request/response protocol which is built on top of tcp. http may use one tcp connection per request/response, though I think the protocol allows for a connection to be kept alive for multiple transactions. Basically http throws away a lot of tcp's usefulness as a stateful connection, in order to reduce the number of live connections that a web server has to maintain. If you want to write a peer to peer game, directly using a tcp connection is much better (more flexibility, lower communication overhead, no request/response constraints...).

Similar Messages

  • Java servlet, DOM and xml help! please urgent!

    I have to write a servlet that takes the user input to build a xml document using DOM API and should be able to append new entry to that xml file whenever any user adds an entry. I have written the fillowing code, can anyone please take a look at this code and tell me the right way to do it as this code is actually not creating any xml file and also in commented line of this code I tried by giving blank xml file name with just root element, so that this code can enter new elements like name, title as child element of the root, but doesn't work.
    PrintWriter out = res.getWriter ();
    res.setContentType ("text/html");
    try
    Document xmldoc = null;
    DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
    DocumentBuilder builder = factory.newDocumentBuilder();
    DOMImplementation impl = builder.getDOMImplementation();
    // Document xmldoc = builder.parse(xmlfile name);
    Element e = null;
    Node n = null;
    String name = req.getParameter("name");
    String title = req.getParameter("title");
    String address = req.getParameter("address");
    xmldoc = impl.createDocument(null, "records", null);
    Element root = xmldoc.getDocumentElement();
    e = xmldoc.createElementNS(null, "name");
    n = xmldoc.createTextNode(name);
    e.appendChild(n);
    root.appendChild(e);
    e = xmldoc.createElementNS(null, "title");
    n = xmldoc.createTextNode(title);
    e.appendChild(n);
    root.appendChild(e);
    e = xmldoc.createElementNS(null, "address");
    n = xmldoc.createTextNode(address);
    e.appendChild(n);
    root.appendChild(e);
    DOMSource domSource = new DOMSource(xmldoc);
    Source xslSource = new StreamSource (xsl file);
    TransformerFactory tf = TransformerFactory.newInstance();
    Transformer transformer = tf.newTransformer(xslSource);
    transformer.transform(domSource,new StreamResult (out));

    Document xmldoc = null;
    DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
    DocumentBuilder builder = factory.newDocumentBuilder();
    xmldoc = documentBuilder.newDocument();
    Element e = null;
    Node n = null;
    String name = req.getParameter("name");
    String title = req.getParameter("title");
    String address = req.getParameter("address");
    e = xmldoc.createElement("name");
    n = xmldoc.createTextNode(name);
    e.appendChild(n);
    xmldoc.appendChild(e);
    e = xmldoc.createElement("title");
    n = xmldoc.createTextNode(title);
    e.appendChild(n);
    xmldoc.appendChild(e);
    e = xmldoc.createElement("address");
    n = xmldoc.createTextNode(address);
    e.appendChild(n);
    xmldoc.appendChild(e);
    DOMSource domSource = new DOMSource(xmldoc);
    StreamSource xslSource = new StreamSource (xsl file);
    TransformerFactory tf = TransformerFactory.newInstance();
    Transformer transformer = tf.newTransformer(xslSource);
    transformer.transform(domSource,new StreamResult (out));

  • I just paid my monthly fee but it keeps saying i haven't, so i can't use the apps?? please urgent help...

    i just paid my monthly fee but it keeps saying i haven't, so i can't use the apps?? please urgent help...

    Hi there
    Your Adobe ID is still associated with an older expired membership.  Please sign out of the CC desktop app and sign in again with your Adobe ID to activate the new membership plan.
    Sign out, Sign in | Creative Cloud Desktop app
    Thanks
    Bev

  • I can't download the apple ios 5 for the ipad. after downloading around 10 % an error no. 3259 occurs. it's a network error. please help . it's urgent. i am having apple ipad 2 3G wifi

    i can't download the apple ios 5 for the ipad. after downloading around 10 % an error no. 3259 occurs. it's a network error. please help . it's urgent. i am having apple ipad 2 3G wifi.

    i switched off all the security settings and all the firewalls.
    i m unable to install any of the app on the ipad
    so i saw the apple support and it said to update the older version of my ipad.
    and niether am i able to download the update nor am i able to download any app and install it in my ipad2
    i also tried to download an .ipsw file (ios5 update) from torrentz bt i am also unable to install from that as itunes rjects that file and gives an error. and also tries to delete that file. plz anyone help urgently.

  • Event OnInputProcessing not triggered ..... please help, it's urgent

    hi all,
    i have a problem in my bsp page.
    in my bsp page, there is a button which is clicked, a new pop up window will appear. after the pop up window closed the caller window will be submitted.
    after submitted, the server side script ( ABAP Code in event OnInputProcessing & OnInitiallization will be run ).
    in order to be able to do this, i used java script. and it's already works well.
    the problem is : there is 1 record that the ABAP code in event OnInputProcessing is not run. I have set break points on one of code in event OnInputProcessing, but it seems event OnInputProcessing is not triggered. if i also put the break point in event OnInitialization, it will stop in the break point in event OnInitialization.
    is there any clue why this happened ?
    please help, it's urgent because it's happened in my production system
    many thanks in advance
    regards
    eddhie

    hi Raja,
    thanks for the respond.
    the code is already works for 2 years and just 1 record of ... perhaps thousands record that used the same code.
    for other record, it go to event OnInputProcessing
    but just this 1 record it won't go to event OnInputProcessing.
    any clue ?
    please help
    regards

  • ITunes corrupt file message - urgent help needed please

    I have an iPod video 30GB, i downloded the latest iTunes & Quicktime version, and updated my iPod also to the latest update. When i connect my iPod and start downloading music from the library in iTunes, the iPod keeps on disconnecting and restarting by itself, and i get a message that the file iTunes.exe is corrupt. I tried Apple support and did all what they said by downloading the latest updates and versions, and also did the Chkdsk utility on Windows, but still it did not work, the iPod keep on restarting and i cannot download anything on it, i had it now for a week and did not use it at all because of this problem, can somebody with a technical background help me please, i use Windows XP.

    I have an iPod video 30GB, i downloded the latest iTunes & Quicktime version, and updated my iPod also to the latest update. When i connect my iPod and start downloading music from the library in iTunes, the iPod keeps on disconnecting and restarting by itself, and i get a message that the file iTunes.exe is corrupt. I tried Apple support and did all what they said by downloading the latest updates and versions, and also did the Chkdsk utility on Windows, but still it did not work, the iPod keep on restarting and i cannot download anything on it, i had it now for a week and did not use it at all because of this problem, can somebody with a technical background help me please, i use Windows XP.

  • HT1918 hey am stranded its like a month now my account does not have  the None in the payment type section i had put my visa info but not now i want to remove them please urgent help

    hey am stranded its like a month now my account does not have  the None in the payment type section i had put my visa info but not now i want to remove them please urgent help

    iTunes Store Support
    http://www.apple.com/emea/support/itunes/contact.html

  • My original note application is always crashed and i can't open it. Can you help me please??? Urgent

    My original note application is always crashed and i can't open it. Can you help me please??? Urgent

    CLOSE FROZEN APPS
    Hold the sleep button until ON/OFF slider appears. Let go of sleep button and ignore slider and then hold home button until the app closes
    Then  do this
    RESET DEVICE
    Hold down the Sleep/Wake button and the home button together until the apple logo appears (ignore the ON/OFF slider) then let both buttons go and wait for device to restart (no data will be lost).

  • I really need help, it's urgent, PLEASE!

    I got a Blackberry for Christmas, and of course I immediately tried to find out about applications. So, I installed "App World". When I started putting themes, applications, etc.. I received a message saying that I would exceed the space limit and that if that happened, I would have to pay € 0.50 per day. I did not realize this and have not given much attention, and I even deleted the message.This week I realized that I've lost more than € 20 in less than a month becauseof this! What can I do to STOP this?? PLEASE HELP ME! Thank you for your attention
    Solved!
    Go to Solution.

    lauraprovi wrote:
    What can I do to STOP this?? PLEASE HELP ME! Thank you for your attention
    The answer lies in your own hand... stop downloading piles of apps and themes.
    Those you've downloaded that consume mass quantities of data... delete them or at least close or exit those apps so they are not using data when closed.
    If you need more specific answer, please be specific about which apps you've down loaded and installed.
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Help me! URGENT cannot find my printer model on hp website - how do i know which cartridge to order.

    Help me! URGENT cannot find my printer model on hp website - how do i know which cartridge to order.

    Depend on which country you are in btw, for the US this should be 61 black and 61 tricolor. For most of europe this will be 301 black and 301 tri color. So to be sure tell me from which country you are.
    Say "Thanks" by clicking the Kudos Star in the post that helped you.
    Although I work for HP my posts and replies are my own
    Please mark the post that solves your problem as "Accepted Solution"

  • Too large java heap error while starting the domain.Help me please..

    I am using weblogic 10.2,after creating the domain, while starting the domain,I am getting this error.Can anyone help me.Please treat this as urgent request..
    <Oct 10, 2009 4:09:24 PM> <Info> <NodeManager> <Server output log file is "/nfs/appl/XXXXX/weblogic/XXXXX_admin/servers/XXXXX_admin_server/logs/XXXXX_admin_server.out">
    [ERROR] Too large java heap setting.
    Try to reduce the Java heap size using -Xmx:<size> (e.g. "-Xmx128m").
    You can also try to free low memory by disabling
    compressed references, -XXcompressedRefs=false.
    Could not create the Java virtual machine.
    <Oct 10, 2009 4:09:25 PM> <Debug> <NodeManager> <Waiting for the process to die: 29643>
    <Oct 10, 2009 4:09:25 PM> <Info> <NodeManager> <Server failed during startup so will not be restarted>
    <Oct 10, 2009 4:09:25 PM> <Debug> <NodeManager> <runMonitor returned, setting finished=true and notifying waiters>

    Thanks Kevin.
    Let me try that.
    Already more than 8 domains were successfully created and running fine.Now the newly created domain have this problem.I need 1GB for my domain.Is there any way to do this?

  • How can i set dynamice for week on Selection screen..pls help me..Urgent

    Hi..All
    please Help me .. i am very  confused..
    i need to set a varient for week which is dynamic on selection screen.
    b) Week from current week to current week + 2. (<b>Dynamic selection)</b>how can i set dynamice for week on Selection screen,,
    how can i do this..i am alrady set dynamice variant for Date.. there is option for D.. but in case of week there is a no option.
    pls help me..urgent
    thamks in advance.
    mayukh

    Hi,
    I think the way out is use the dynamic select option while setting up the varinat and use sy-datum to sy-datum+9 which should essentially serve the purpose.
    While saving the variant, for that particular date field check the Selection variable checkbox, then Choose D
    option and then choose current days + or - option from there.
    Rgds,
    HR

  • Hi pls help me its urgent

    hi experts'
    i have to generate asset utilization report in webdynpro
    inputs for report are some rfcs
    i get result from rfcs
    i need to float report i used bussinessgraphic object
    its not interactive
    if i go for tables
    how to create tables with drill down inside table
    how to set color for each cell of table depending on condition
    please help me
    its urgent
    and send me code n link

    Hi Vani,
    Your requirement has many things
    1. How to call RFCs
       https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/webcontent/uuid/28113de9-0601-0010-71a3-c87806865f26?rid=/library/uuid/49f2ea90-0201-0010-ce8e-de18b94aee2d#15 [original link is broken]
    2. Once you have data, how to work with BusinessGraphics ?
      https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/ba2db0e5-0601-0010-9790-e271902f2c38
    (This docs contatins all the required info on webDynpro UIElements)
    3.Tables
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/webcontent/uuid/28113de9-0601-0010-71a3-c87806865f26?rid=/library/uuid/49f2ea90-0201-0010-ce8e-de18b94aee2d#46 [original link is broken]
    Regards,Anilkumar

  • My Blackberry Torch 9800 shows no sign of life...Ple​ase help it's urgent

    Hello All,
    Before a week after completing a phone call, my phone was dead no red led light, not able to reboot... nothing.....after keeping my phone as it is for 2 hours it started again without doing anything.. then it worked fine for a week.
    But before 2 days again my phone went dead..and till now it shows no sign of life no red led light, not able to reboot by any means...Currently i stay in India and my friend brought this phone from US..I contacted many service center of mumbai(Dadar,Khar(Redington),Andheri(Prodcon)) but they all were useless..they were not able provide proper solution to me.
    can you please help me out what to do in this case..as it's very urgent....
    Thanks & Regards,
    Prashant Mehta

    You will need to use BBSAK or JL_Cmder to wipe the device and subsequently load the OS to the device. Follow the instructions here:
    http://www.blackberryfaq.com/index.php/How_do_I_wi​pe_the_BlackBerry_using_Jl_Cmder%3F
    For BBSAK, here is the link: http://bbsak.org/
    If JL_Cmder does not work, follow this instructional:
    http://www.blackberryfaq.com/index.php/What_to_do_​next_if_Jl_Cmder_will_not_connect_and_wipe
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • My iPad refuses to turn on... HELP THIS IS URGENT!

    Just thismorning i had my iPad 2 working fine... until it ran out of charge. Yes, I put it on the charger. Once it had been charging for about 30 minutes, i attempted to switch it on, but the apple logo sign never moved. At some times, the iPad returned to the normal unlock screen, but when i did, it froze and the frozen apple sign appeared again.
    I thought that maybe plugging it into my computer backup source would help... Well, it kinda helped but the iPad is reacting as if it is brand new and its name is now ''iPad'' when clearly, before i had this problem, it was named ''Nicole's iPad''.
    Please help, this is urgent! I have school on Tuesday and if it is not repaired by then, my assignments and homework will be lost. Thankyou

    Try to hard boot it by pressing home key and power key at same time  and keep them pressed to the count of one to fifteen. 
    And wait for few minutes it will work
    If its not working yet then connect it iTunes and update it to iOS 6,
    Before updating do not forget to back up your iPad 

  • Ink cartridges stuck, need help asap please

    Hello a I am writint this because I need help!! I keep getting a message in error on my Macbook Pro about my Photsmart 6520 is jammed and it says to check to see if any obstructions are bloacking it. Hoever this is like the 20th time that I check inside the printer over and over again. I make sure everything is in order, however when I turn the printer back on it will say the same thing and I keep trying to get it to work, but it won't!!! I just got the printer the day before yesterday and I caanot fix it, please help it is urgent.
    This question was solved.
    View Solution.

    The troubleshooting steps in the document here may help resolve the carriage jam message on your Photosmart 6520 printer.  If the steps there do not resolve the issue I suggest you contact HP support.  If you are in the US or Canada call 1-800-HPINVENt, elsewhere see the contact information here.
    Bob Headrick,  HP Expert
    I am not an employee of HP, I am a volunteer posting here on my own time.
    If your problem is solved please click the "Accept as Solution" button ------------V
    If my answer was helpful please click the "Thumbs Up" to say "Thank You"--V

Maybe you are looking for