How to establish socket Connection for Flash Game ;-)

Currently im working on casino game. i want to make it multiPlayer. need help to establish socket game connection

Look at my response to "Telnet to Unix box from Java"
http://forum.java.sun.com/thread.jsp?forum=31&thread=437231
on "Java Programming" forum. It does exactly that to run the signon and a command. It would be easy to extend it to do multiple commands.

Similar Messages

  • How to retain socket connection for multiple requests in java 1.3

    Hi All,
    My problem is to retain client socket connection without opening and closing socket connection for every request.I want to open the socket connection once and send multiple requests one after the other based upon the response over the same socket.Finally I want to close the socket only after completing all my requests and receiving respective responses.I don't want to open and close the socket for each request and response.While at the same time I expect the socket to send each request only after receiving the response for the previous request.
    I am using java 1.3 and I am looking for the solution in same version.
    Please help me .
    Thanx in advance.

    Look at my response to "Telnet to Unix box from Java"
    http://forum.java.sun.com/thread.jsp?forum=31&thread=437231
    on "Java Programming" forum. It does exactly that to run the signon and a command. It would be easy to extend it to do multiple commands.

  • How to establish the connection between crm and r/3

    Hi,
    Sorry for posting this question in this forum, i did not find any CRM forums.My question is,How to establish the connection between CRM and R/3...in my office i installed standard alone CRM system,but it is not talking to R/3.
    Could any one tell me where to find adapters and plugins for this.
    Thanks in advance.
    Ajey

    Hello Ajey,
    in the case you mean the connection between R/3 and SAP CRM you should read the Best Practice Guides:
    B01: CRM Generation
    C71: CRM Connectivity
    B09: CRM Replication
    from http://help.sap.com/bp_crmv240/index.htm. There is a CRM Forum at http://www.sap.com/community/ and also at http://www.sapfans.com/.
    Regards
    Gregor

  • How to have Secure Connection for File Adapter.Pls help

    Hi All,
    For File to File Scenario
    How to have Secure Connection for File Adapter.
    Pls send links/blogs explaining this scenario.
    Regards

    hi rich
    go through these links
    FTPs connection failed - error ".. certificate rejected by ChainVerifier"
    Re: What is SFTP, FTI channels
    http://help.sap.com/saphelp_erp2005/helpdata/en/e3/94007075cae04f930cc4c034e411e1/frameset.htm
    http://help.sap.com/saphelp_erp2005/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/frameset.htm
    FTPS implementation question.
    http://help.sap.com/saphelp_nw04s/helpdata/en/43/0e16bfd7b021aee10000000a1553f6/frameset.htm
    Server certificate rejected by ChainVerifier:FTPS server(Points Guaranteed)
    /people/krishna.moorthyp/blog/2007/07/31/sftp-vs-ftps-in-sap-pi
    File adapter
    thanks
    Kunaal

  • We are looking for Flash-Games for our A-level exam

    Hello
    Our Project-Team creates a Game-Hompage for our A-level exam.
    We are looking for Flash-Games and Games in other Languages
    (for example: Java or VBnet), wich we will publish on our Webpage.
    The quality, category etc. doesn't matter.
    Furthermore we would be pleased if you could send us
    suggestions and ideas (for example: Projectname etc.)
    Just send us a mail:
    [email protected]
    greetz
    project-team

    http://www.gotoandplay.it

  • How to make a wall for a game

    hello developers
    I’m sharing a long time to find out how to make a wall for my game but now where is it.
    Can someone help me?
    its a wall for an iphone/ipod game.
    It must be a wall that a sprite will stop walking it’s not a killer object but a stop object.
    oh and are there differants in programing in ipad/iphone?
    Thanks for help
    Grtz Jimmy

    I don't know what's you point on the wall and the player but you should do something as that:
    -(IBAction)goLeft
         if (player.x > wall.xo && player.x < wall.xI)
                  // you are in the wall go right
              if(player.y > wall.yo && player.y < wall.yI)
                 // you are in the wall go right
                 player.x ++;
              else ; // you are up or down of wall
    -(IBAction)goRight
        if (player.x > wall.xo && player.x < wall.xI)
              if(player.y > wall.yo && player.y < wall.yI)
                 // you are in the wall go left
                 player.x --;
               else ; // you are up or down of wall

  • How to create volume slider for flash cs 5 using action script 2.0?

    how to create volume slider for flash cs 5 using action script 2.0?the output should like if user want to hear sound in slow pitch,medium pitch or high pitch(slow to high pitch anything).i have attach this sound to button with using this code:
    stop();
    mySoundBtn.onRelease = function () {
              mySoundC = new Sound(this);
              mySoundC.attachSound("mySoundClip");
              mySoundC.start(0, 10);  //10 represents the number of loops
              gotoAndPlay(2);
    This sound plays till 3-4 scene ahead.
    Can anyone help me?

    Hey thnx Ned.
    this sites are really helpful.but,i have used sound through button.so how it is possible to attavh the link with slider.i have created slider also.
    Below is my slider code for sound.
    onClipEvent (load) {
        mySound1 = new Sound();
        mySound1.loadSound((myScale)+"/"+(myTanpura)+"/"+(myTanpuraSwar)+"/"+(myTanpuraTempo)+".w av", true);
        mySound1.onSoundComplete = function() {
        mySound1.start();
        mySound1.start(0.058,999);
    onClipEvent (enterFrame) {
        downloaded = mySound1.getBytesLoaded();
        total = mySound1.getBytesTotal();
        if (downloaded != total) {
            _root.dl = "You have to buy this software...";
        } else {
            complete = 1;
            _root.dl = "";
        mySound1.setVolume(ratio * 2);
    This code is working for slider.I mean it scrolls the slider.but it dosent make any effect to sound.
    Below is my button code.
    stop();
    mySoundBtn4.onRelease = function () {
              mySoundC = new Sound(this);
              mySoundC.attachSound("mySoundClip4");
              mySoundC.start(0, 300);  //10 represents the number of loops
              gotoAndPlay("play1");
    this is on button's frame.not exactly on button.
    Button and Slider both are on diffrent scene.
    Can you plese help me out?

  • "Error do not know how to establish stage 'imported' for module "

    I get this error  (imported or checked) on an OPN module I am developing after resolving syntax errors. I am assuming it is complaining about something semantic, but there is not much information there. Is there somewhere else to look for more
    information? Here is a excerpt from the log file:
    11/7/2014 5:56:57 AM Information Module cache file doesn't exist: C:\Users\xxl_2\AppData\Local\Microsoft\MessageAnalyzer\CompilationCache\EGIEnums_7b90e77b9119eacbd90f47fbebe9f9eb_4_0_7056_0.mdb
    11/7/2014 5:56:57 AM Information running Runtime on EGIEnums
    11/7/2014 5:56:57 AM Information running Reducer on EGIEnums
    11/7/2014 5:56:57 AM Information running ReducerPrechecked on EGIEnums
    11/7/2014 5:56:57 AM Error do not know how to establish stage 'checked' for 'EGIEnums'
    11/7/2014 5:56:57 AM Information ReducerPrechecked failed with errors
    11/7/2014 5:56:57 AM Information Reducer failed with errors
    11/7/2014 5:56:57 AM Information Runtime failed with errors

    I assume this is directly from the MessageAnalyzer.log file and not from the output window?  Usually what I do is open the log and search for error.  Sometimes the problem is repeated multiple times as each reference triggers another error.
    If you want I could try with your OPN to fine your problem.  But in general we don't have a lot of support for the OPN developer.  Maybe we'll have more in the future if there is enough demand.
    Thanks,
    Paul

  • How Can I Learn To Develop Flash Games For Under $50.00 USD?

    I am completely new to anything Flash. I have never written a
    single line of Actionscript. I don't know the difference between
    Flash and Flex. I don't know in what forums Flash developers hang
    out. I don't even know what kind of coffee they drink, or if they
    drink tea instead.
    However, I have developed games and have been thinking about
    developing some casual games and have heard rumors that Adobe is
    "pushing" causal game development with Actionscript 3 and their
    latest releases. So I went to adobe.com expecting to see a link for
    something like "learn how to develop games in flash" or some such.
    I poked around the developer related pages and didn't find anything
    I thought useful.
    What I did find were plenty of stuff for *existing* flash
    developers. Links to articles and HowTos for specific topics and
    information about products that cost a minimum of several hundred
    dollars. I can't learn how to develop games and create a prototype
    with a 30-day trial, and I am not going to buy a $1000 pro-grade
    tool when I am an indie developer without a budget or a pre-funded
    project that would justify such expenditures.
    I have seen some open source stuff, but don't know if it can
    do anything more than build some annoying shaking banner ads.
    So let me introduce myself as a possible use-case for Adobe
    Marketing and the Flash (Game) Developer community.
    I am an educated experience software developer who has a day
    job doing "enterprise" software stuff. I want to *play* in my free
    time (evenings and weekends) with "Flash Stuff" and learn enough to
    be able to build a simple game that I can put on my personal
    website and have my friends download. I am not a student, so I
    can't get student discounts. The money I have goes toward
    toys^H^H^H^H tools for my other coding habits^H^H^H^H^H projects. I
    am not interested in 30-day trials, as I may go 45-days or more
    between the first and second weekends I get to play with this. I
    know OOP so I want to start out learning how to do the "advanced"
    stuff from day one and not have to start with dragging and dropping
    PNGs w/o any coding and then "relearn" how to do it in code so I
    can do anything beyond having the image appear and rotate.
    I *am* willing to put time into this endeavor, but only after
    I have a few things spoon-fed to me by "advocates" who's job is to
    get me "hooked" and willing to invest my time to go beyond Hello
    World. At the same time I am download and playing with GarageGames,
    TGE/TGB, Game Maker, Dark Basic, Blitz Basic, etc. and many
    complete development environments that are full-featured and
    completely free if I limit myself to releasing only freeware games,
    or cost me less than $50 for the "professional" version with all
    the bells and whistles.
    I have heard rumors and rumblings about some open source
    tools being available and Adobe maybe open sourcing some of their
    previously pay-to-play tools, but also understand that Adobe can
    probably provide a better "comprehensive" package of tools,
    documentation, tutorials, and support, *if I can find the right
    place to ask/start.*
    And, most of all, I don't know where to start my search as I
    have no personal contacts to bug about stuff like this.
    So, where can I find the big red button to push and get
    everything I want handed to me on a silver-platter.
    [please understand I have written this with some attempt at
    self-mocking humor and am not some clueless n00b]
    Thank you for taking the time to read my lengthy posting. I
    hope to find some helpful replies and start down an interesting
    learning path.
    --Chaim

    Just saw your post. Better late than never. You may want to
    consider GameBrix.com, where you can create Flash based, casual
    games using your web browser. No downloads are required. You can
    create a game from scratch using a library of images, sounds and
    game mechanics. You can also upload your own. The online script
    editor will allow you to view and edit the ActionScripts associated
    with each game mechanic. In short, a great way to ramp up on game
    design and build your own game without investing a lot of $
    upfront.
    BTW I am associated with GameBrix so any feedback is
    appreciated.

  • How to detact socket connection status

    hi.. i am using socket class for the connection. How can I
    detect for disconnection of the socket? Because calling the Flush()
    method (called writeUTFBytes() eariler) is not throwing IOError
    exception. I found that AIR has some network monitor which can be
    used for this case. But I am not using AIR. Also, another work
    around it to connect to some URL again to check the status. I don't
    really want to use this method because the application needs to
    send data back to the server very very often and I'd like to be
    slow down. please help me out.....thanks in advance...

    Hello Kent,
    We can view active RFC Connections through SMGW. But if you want to have the history of the login details I guess you need to activate Logging.
    SMGW -> Goto Expert Functions -> Logging -> Select appropiate options.

  • Establishing Socket Connection to a slow or busy server

    Currently, I'm developing an AIM-based BOT application in Java and it requires establishing a socket connection to their free and public server (host: toc.oscar.aol.com, port: 9898).
    About 75% of the time a connection will be successfully established using this:
    oConnection = new Socket("toc.oscar.aol.com", 9898);
    25% of the time when a connection fails (timeout) is due to the server being too slow or busy to respond to the connection request; however, the server will eventually response within 40 to 60 seconds.
    Let me go into details with my findings when attempting to connect to the slow/busy server:
    For experimental purposes, I used the telnet command (via the DOS command prompt: "telnet toc.oscar.aol.com 9898"), the connection will be established usually within 40 to 60 seconds.
    As I said before, the BOT application is developed in a Java environment and when attempting to establish a connection (using Java's Socket), a timeout exception gets raised when it hits the 20-seconds mark. It tells me that the Java Socket has the timeout defaulted to 20-seconds.
    I am aware that we can define the timeout settings using Socket's "setSoTimeout(x)" method; however, it's only good for AFTER a connection is established.
    Now, to sum up my findings � it clearly shows that the DOS' telnet prompt has longer "wait time" before raising any exceptions. As far as Java Socket is concerned, if a connection is not established within 20 seconds, it raises the timeout exception.
    Is there a way to stretch the "wait time" or "timeout" to be longer than 20 seconds for when a socket connection is being attempted?
    Millions of thanks in advance,
    Chad W. Taylor

    Yes, I also tried that option but no cigar. That
    timeout value is an alternative way of using
    setSoTimeout(int).
    I don't think so.
    First the Java documentation would not make sense:
    public void connect(SocketAddress endpoint, int timeout)
    throws IOException
    Connects this socket to the server with a specified timeout value. A timeout of zero is interpreted as an infinite timeout. The connection will then block until established or an error occurs.
    Parameters:
    endpoint - the SocketAddress
    timeout - the timeout value to be used in milliseconds.
    Throws:
    IOException - if an error occurs during the connection
    SocketTimeoutException - if timeout expires before connecting
    IllegalBlockingModeException - if this socket has an associated channel, and the channel is in non-blocking mode
    IllegalArgumentException - if endpoint is null or is a SocketAddress subclass not supported by this socket
    Since: 1.4
    Second my tests indicate otherwise:
    public class Main {
    public static void main(String[] args) {
    try {
         Socket conn = new Socket();
         conn.connect(new InetSocketAddress(InetAddress.getByName("toc.oscar.aol.com"),9898), Integer.parseInt(args[0]));
         System.out.println("connected under " + args[0] + " seconds");
         conn.close();
    } catch (Exception e) {
         System.out.println("not connected in " + args[0] + " seconds");
         e.printStackTrace();
    Different runs show:
    connected under 120 seconds
    and
    not connected in 20 seconds
    java.net.SocketTimeoutException: connect timed out
         at java.net.PlainSocketImpl.socketConnect(Native Method)
         at java.net.PlainSocketImpl.doConnect(Unknown Source)
         at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
         at java.net.PlainSocketImpl.connect(Unknown Source)
         at java.net.Socket.connect(Unknown Source)
         at Main.main(Main.java:21)
    I speculate that the "Connection Request Timeout"
    value is platform dependent because when I use a
    different machine, the request timeout is either
    longer or shorter than 20 seconds.
    That could well be the case.
    So the proper question would be -- where is the Java
    Socket borrowing the timeout value from? The settings
    in Winsock?
    That I don't know.
    Andreas
    Chad

  • How to change the connection for a recurring report

    I have a group of reports running in production on recurring schedules.  I need to update the database connection for these as we are changing our server environment.
    I open the report in Crystal Reports 11 and changed the database connection saved the report back to the Enterprise Server location (I also have a backup of the original).  When I preview the report using the Central Management Console, the report uses the updated database connection info.  When I test the recurring report I get a logon failure.  When I go to the instance to look at the database logon for the recurring instance it shows the old database connection.
    How can this database connection get updated for the current group of instances for these recurring reports?
    Thanks
    BOBJCMC

    Hi Stratos,
    I tried to use .NET SDK to update the Logon_Info properties as below. But it does not seem to be working. Is this the correct way to update logon info for recurring instances?
    infoObject.ProcessingInfo.Properties["SI_LOGON_INFO"].Properties["SI_LOGON1"].Properties["SI_USER"].Value  = <userid>
    infoObject.ProcessingInfo.Properties["SI_LOGON_INFO"].Properties["SI_LOGON1"].Properties["SI_PASSWORD"].Value  = "pwd"
    Thanks
    Ajith

  • HT201209 "Does anyone know how to purchase extra gems for the game Clash of Clans with an i-tunes gift card?"

    How do you purchase in-app game extras like gems for the game Clash of Clans with an i-tunes gift card? I have downloaded three $10 gift cards on my i-phone 4 and can't seem to purchase any extra game stuff (gems) without it charging my credit card that I have attached to my i-phone. So what I am saying is I have $30 worth of i-tunes gift cards downloaded on my i-phone and can't seem to use it, not for what I want anyways...
    Thanks any help would be great!

    Do exactly what it told you to do and contact itunes support

  • Establishing Database connection for XML Data Definition?

    I have a XML Data Definition which will query data from Oracle Database.
    I did some research and tried few setting options in JDeveloper (11g), but had no luck on finding a way to connect to Database.
    My goal is to use JDeveloper to run a XML Data Definition against Database and generate a XML File with data.
    Can this be done?
    Data Definition:
    <?xml version="1.0" encoding="WINDOWS-1252"?>
    <dataTemplate name="XX_ATT_VALIDATION" description="description"
    dataSourceRef="MTS-AT"
    version="1.0">
    <properties>
              <property name="include_parameters" value="false" />
              <property name="include_null_Element" value="true" />
              <property name="include_rowset_tag" value="false" />
    </properties>
    <parameters>
              <parameter name="p_batch_id" dataType="character"/>
    </parameters>
    <dataQuery>
         <sqlStatement name="Q_HEADER_VALUES">
              <![CDATA[
    select distinct
    sci.bill_cycle,
    to_char(sci.bill_date,'mm/dd/yyyy') bill_date,
    to_char(sysdate,'mm/dd/yyyy') report_run_date
                   from st_cm_interface sci
                   where sci.record_type='05'
                   and sci.batch_id=:p_batch_id
              ]]>
    </sqlStatement>
    <dataStructure>          
         <group name="G_HEADER_VALUES" source="Q_HEADER_VALUES">
    <element name="bill_cycle" value="bill_cycle"/>
    <element name="bill_date" value="bill_date"/>
    <element name="report_run_date" value="report_run_date"/>
    </group>
    </dataStructure>
    </dataTemplate>

    Hi,
    Consider there is 2 database, Oracle_1 and Oracle_2.
    I want to fetch some table data in Oracle_2 from Oracle_1 database Stored procedure/functions through query staments and cursors. How to establish the Oracle_1 DB connection in Oracle_2 DB stored procedure/function. Is it possible?
    It's not the same how you implement the programs in java or .Net to create DB connection. It's different over here. You have use the DataBase Links in order to make to connection with another DB and use that Link in the stored procedure or function where ever its necessary as per your requirement.
    - Pavan Kumar N

  • How to establish the connection - Best Practice

    Following is my code for database connection
    import java.sql.Connection;
    import java.sql.DriverManager;
    import oracle.jdbc.driver.OracleDriver;
    public class DBConnect
         private static Connection connection = null;
         static
              try
                   DriverManager.registerDriver( new OracleDriver() );
                   String url = "jdbc:oracle:thin:@dbserver:1521:ORCL";
                   connection = DriverManager.getConnection( url, "user", "password" );
              catch ( Exception e )
         private DBConnect()
         public static synchronized Connection getConnection()
              return connection;
    }Tell me the Best Practice to establish the connection.
    Edited by: shashiwagh on Feb 1, 2010 11:25 AM
    Edited by: shashiwagh on Feb 1, 2010 11:26 AM

    First, handle your exceptions properly.
    Second, you should not normally create static database connections.
    Third, hardcoding connection data like that is not a good idea.

Maybe you are looking for

  • VPN Client and Vista 64-bit

    We have several laptops that we need to install Vista on. We would prefer 64-bit so that we can really make use of the extra RAM these laptops have, however there is one program we require holding us back to 32-bit at the moment. Its the Cisco VPN Cl

  • How to show error message on page #NOTIFICATION_MESSAGE#?

    Hi, Is it possible to show error message on a page, where apex substitutes #NOTIFICATION_MESSAGE# at page template, with a javascript call? My requirement is to report error messages which i get from ondemand process, these on-demand processes were c

  • Connection to UDDI via /uddi/api/inquiry

    Hi, I was reading the blogs and threads written on UDDI and the use of the publishing services. I have two questions that I would like to ask if anyone could please assist me with them: - When using the local registry is it possible to login into the

  • Functional Areas (FA) in Profit Center Accounting (PCA)

    Dear all, We use Functional Areas (FA) to separate fixed costs in Profit Center Accounting (PCA). Originally, in FI, fixed costs are posted with Cost Center which is linked to FA. Now we find out that some cost centers missed their link to FA and hen

  • Receiving IDoc in XI

    Hi, All, I have tried to send IDoc from R/3 to XI and received message (in SM58) NO_EXEC_PERMISSION: "User" "Business_System". I have found note 940313 with solution: "You created a list of users in the directory who are authorized to use the "Busine