How to create client and server app using node.js in firefox os.

I want to create a client and server app using node.js for firefox os. Please suggest me how to create a apps.
I want to send a request from client to server and based on client request, service reply to client.
If any links available, Please share it.
Thanks

Hi sb00349044,
The SUMO forums focuses on end-user support.
For questions about developing for Firefox OS, you will find better guidance in MDN, StackOverflow, and mailing lists:
* [https://developer.mozilla.org/en-US/Firefox_OS MDN - Firefox OS]
* [http://stackoverflow.com/questions/tagged/firefox-os StackOverflow - Firefox OS]
* [https://lists.mozilla.org/listinfo Mailing Lists at Mozilla]
Thanks,
- Ralph

Similar Messages

  • How to create Profit and loss account using report painter

    Dear All,
    Can some one guide me as to how to create Profit and loss account using report painter.
    If some one can share the document having steps to be done,would be of great help.
    Thanks in advance.
    Regards,
    Gokul

    Hi,
    Could you please re-phrase your question? As the report painter is a reporting tool I assume you want to report on P&L accounts and not u201Ccreateu201D them. A few more details on what you intend to report would be useful.
    Regards
    Karl

  • How to bulid client and server on differen machine

    i want to build client on a sco unix machine and
    server on a tandem unix machine.how can i complete it?
    i made a test.the application is simple sample TOUPPER.
    below is my ubbconifg
    #ident     "@(#)apps:simpapp/ubbsimple     60.3"
    #Skeleton UBBCONFIG file for the TUXEDO Simple Application.
    #Replace the <bracketed> items with the appropriate values.
    *RESOURCES
    IPCKEY          50000
    #Example:
    #IPCKEY          123456
    DOMAINID     simpapp
    MASTER          simple
    MAXACCESSERS     5
    MAXSERVERS     5
    MAXSERVICES     10
    MODEL          MP
    LDBAL          N
    OPTIONS          LAN
    *MACHINES
    FSPSRB          LMID=simple
              TUXDIR="/db010/gdproj/tuxedo"
              APPDIR="/db010/home/tuxtest/gy"
              TUXCONFIG="/db010/home/tuxtest/gy/tuxconfig"
              UID=135
              GID=120
    GDPSRB          LMID=simple2
    TUXDIR="/appl/gdproj/tuxdev"
              APPDIR="/appl/home/gy/simple"
              TUXCONFIG="/appl/home/gy/simple/tuxconfig"
              UID=139
              GID=100
    #DEFAULT:
    #          APPDIR="/db010/home/tuxtest/gy"
    #          TUXCONFIG="/db010/home/tuxtest/gy/tuxconfig"
    #          TUXDIR="/db010/gdproj/tuxedo"
    #Example:
    #          APPDIR="/home/me/simpapp"
    #          TUXCONFIG="/home/me/simpapp/tuxconfig"
    #          TUXDIR="/usr/tuxedo"
    #FSPSRB          LMID=simple
    #Example:
    #beatux          LMID=simple
    *NETWORK
    simple          NADDR="//10.194.0.3:9000"
    NLSADDR="//10.194.0.3:9001"
              BRIDGE="/dev/tcp"
    simple2          NADDR="//10.194.0.155:9000"
              NLSADDR="//10.194.0.155:9001"
    BRIDGE="/dev/tcp"
    *GROUPS
    GROUP1
         LMID=simple     GRPNO=1     OPENINFO=NONE
    *SERVERS
    DEFAULT:
              CLOPT="-A"
    simpserv     SRVGRP=GROUP1 SRVID=1
    *SERVICES
    TOUPPER
    i start the tlisten at each site .
    when i exec tmboot -y i can't get BBL at client site
    below is the ULOG at server site
    092248.FSPSRB!DBBL.5148: 081802: TUXEDO Version 6.4 IRIX 5.3 11091812 IP22 mips.
    092248.FSPSRB!DBBL.5148: LIBTUX_CAT:262: INFO: Standard main starting
    092250.FSPSRB!BBL.5149: 081802: TUXEDO Version 6.4 IRIX 5.3 11091812 IP22 mips.
    092250.FSPSRB!BBL.5149: LIBTUX_CAT:262: INFO: Standard main starting
    092252.FSPSRB!DBBL.5148: CMDTUX_CAT:4350: INFO: BBL started on simple - Release
    6400
    092253.FSPSRB!BRIDGE.5150: 081802: TUXEDO Version 6.4 IRIX 5.3 11091812 IP22
    mips.
    092253.FSPSRB!BRIDGE.5150: LIBTUX_CAT:262: INFO: Standard main starting
    092253.FSPSRB!BRIDGE.5150: LIBTMIB_CAT:74: ERROR: Failed to advertise dynamic
    /Admin service TBR0
    092253.FSPSRB!BRIDGE.5150: CMDTUX_CAT:1788: WARN: Could not advertise administrative
    service
    092300.FSPSRB!DBBL.5148: LIBTUX_CAT:328: ERROR: No space in Bulletin Board for
    Service Table
    092300.FSPSRB!tmboot.5147: 081802: TUXEDO Version 6.4 IRIX 5.3 11091812 IP22
    mips.
    092300.FSPSRB!tmboot.5147: CMDTUX_CAT:825: ERROR: Process BBL at simple2 failed
    with /T tperrno (TPENOENT - no entry found)
    092300.FSPSRB!tmboot.5147: WARN: No BBL available on site simple2.
         Will not attempt to boot server processes on that site.
    092300.FSPSRB!simpserv.5153: 081802: TUXEDO Version 6.4 IRIX 5.3 11091812 IP22
    mips.
    092300.FSPSRB!simpserv.5153: LIBTUX_CAT:262: INFO: Standard main starting
    092300.FSPSRB!DBBL.5148: LIBTUX_CAT:328: ERROR: No space in Bulletin Board for
    Service Table
    092300.FSPSRB!simpserv.5153: LIBTUX_CAT:248: ERROR: System init function failed,
    Uunixerr =
    092300.FSPSRB!tmboot.5147: CMDTUX_CAT:825: ERROR: Process simpserv at simple failed
    with /T tperrno (TPENOENT - no entry found)
    below is the ULOG at client site
    071457.GDPSRB!tmloadcf.15432: 081802: TUXEDO Version 6.4 IRIX 5.3 11091812 IP22
    mips.
    071457.GDPSRB!tmloadcf.15432: NLS:4: Cannot open message catalog CMDTUX_CAT, set
    1, num 879; check TUXDIR=/appl/gdproj/tuxdev, LANG=chinese
    071457.GDPSRB!tmloadcf.15432: NLS:4: Cannot open message catalog CMDTUX_CAT, set
    1, num 871; check TUXDIR=/appl/gdproj/tuxdev, LANG=chinese
    071457.GDPSRB!BSBRIDGE.15436: 081802: TUXEDO Version 6.4 IRIX 5.3 11091812 IP22
    mips.
    071457.GDPSRB!BSBRIDGE.15436: NLS:4: Cannot open message catalog LIBTUX_CAT, set
    1, num 262; check TUXDIR=/appl/gdproj/tuxdev, LANG=chinese
    071500.GDPSRB!BBL.15441: 081802: TUXEDO Version 6.4 IRIX 5.3 11091812 IP22 mips.
    071500.GDPSRB!BBL.15441: NLS:4: Cannot open message catalog LIBTUX_CAT, set 1,
    num 262; check TUXDIR=/appl/gdproj/tuxdev, LANG=chinese
    071502.GDPSRB!BBL.15441: NLS:4: Cannot open message catalog LIBTUX_CAT, set 1,
    num 248; check TUXDIR=/appl/gdproj/tuxdev, LANG=chinese
    071502.GDPSRB!BBL.15441: NLS:4: Cannot open message catalog CMDTUX_CAT, set 1,
    num 26; check TUXDIR=/appl/gdproj/tuxdev, LANG=chinese
    i can set BRIDGE at each site.from the client ULOG ,i think
    the "LIBTUX_CAT, set 1, num 248" is the reason BBL can't boot.
    In reference manual LIBTUX_CAT 248 means "System init function faied".
    what can i do at this time.Please help me.
    If possible,please send me a exapmle.
    thanks!!!
    [email protected]

    gongyu,
    The problem is that your MAXSERVICES parameter is too low.
    Increase it (say, to 100) and while you're at it, I would increase MAXSERVERS
    and MAXACCESSERS too (Maybe 50 and 100 respectively)
    Then your app. should boot.
    There is no fundamental problem with what you're trying to do.
    Regards,
    Peter.
    gongyu wrote:
    i want to build client on a sco unix machine and
    server on a tandem unix machine.how can i complete it?
    i made a test.the application is simple sample TOUPPER.
    below is my ubbconifg
    #ident     "@(#)apps:simpapp/ubbsimple     60.3"
    #Skeleton UBBCONFIG file for the TUXEDO Simple Application.
    #Replace the <bracketed> items with the appropriate values.
    *RESOURCES
    IPCKEY          50000
    #Example:
    #IPCKEY          123456
    DOMAINID     simpapp
    MASTER          simple
    MAXACCESSERS     5
    MAXSERVERS     5
    MAXSERVICES     10
    MODEL          MP
    LDBAL          N
    OPTIONS          LAN
    *MACHINES
    FSPSRB          LMID=simple
              TUXDIR="/db010/gdproj/tuxedo"
              APPDIR="/db010/home/tuxtest/gy"
              TUXCONFIG="/db010/home/tuxtest/gy/tuxconfig"
              UID=135
              GID=120
    GDPSRB          LMID=simple2
    TUXDIR="/appl/gdproj/tuxdev"
              APPDIR="/appl/home/gy/simple"
              TUXCONFIG="/appl/home/gy/simple/tuxconfig"
              UID=139
              GID=100
    #DEFAULT:
    #          APPDIR="/db010/home/tuxtest/gy"
    #          TUXCONFIG="/db010/home/tuxtest/gy/tuxconfig"
    #          TUXDIR="/db010/gdproj/tuxedo"
    #Example:
    #          APPDIR="/home/me/simpapp"
    #          TUXCONFIG="/home/me/simpapp/tuxconfig"
    #          TUXDIR="/usr/tuxedo"
    #FSPSRB          LMID=simple
    #Example:
    #beatux          LMID=simple
    *NETWORK
    simple          NADDR="//10.194.0.3:9000"
    NLSADDR="//10.194.0.3:9001"
              BRIDGE="/dev/tcp"
    simple2          NADDR="//10.194.0.155:9000"
              NLSADDR="//10.194.0.155:9001"
    BRIDGE="/dev/tcp"
    *GROUPS
    GROUP1
         LMID=simple     GRPNO=1     OPENINFO=NONE
    *SERVERS
    DEFAULT:
              CLOPT="-A"
    simpserv     SRVGRP=GROUP1 SRVID=1
    *SERVICES
    TOUPPER
    i start the tlisten at each site .
    when i exec tmboot -y i can't get BBL at client site
    below is the ULOG at server site
    092248.FSPSRB!DBBL.5148: 081802: TUXEDO Version 6.4 IRIX 5.3 11091812 IP22 mips.
    092248.FSPSRB!DBBL.5148: LIBTUX_CAT:262: INFO: Standard main starting
    092250.FSPSRB!BBL.5149: 081802: TUXEDO Version 6.4 IRIX 5.3 11091812 IP22 mips.
    092250.FSPSRB!BBL.5149: LIBTUX_CAT:262: INFO: Standard main starting
    092252.FSPSRB!DBBL.5148: CMDTUX_CAT:4350: INFO: BBL started on simple - Release
    6400
    092253.FSPSRB!BRIDGE.5150: 081802: TUXEDO Version 6.4 IRIX 5.3 11091812 IP22
    mips.
    092253.FSPSRB!BRIDGE.5150: LIBTUX_CAT:262: INFO: Standard main starting
    092253.FSPSRB!BRIDGE.5150: LIBTMIB_CAT:74: ERROR: Failed to advertise dynamic
    /Admin service TBR0
    092253.FSPSRB!BRIDGE.5150: CMDTUX_CAT:1788: WARN: Could not advertise administrative
    service
    092300.FSPSRB!DBBL.5148: LIBTUX_CAT:328: ERROR: No space in Bulletin Board for
    Service Table
    092300.FSPSRB!tmboot.5147: 081802: TUXEDO Version 6.4 IRIX 5.3 11091812 IP22
    mips.
    092300.FSPSRB!tmboot.5147: CMDTUX_CAT:825: ERROR: Process BBL at simple2 failed
    with /T tperrno (TPENOENT - no entry found)
    092300.FSPSRB!tmboot.5147: WARN: No BBL available on site simple2.
         Will not attempt to boot server processes on that site.
    092300.FSPSRB!simpserv.5153: 081802: TUXEDO Version 6.4 IRIX 5.3 11091812 IP22
    mips.
    092300.FSPSRB!simpserv.5153: LIBTUX_CAT:262: INFO: Standard main starting
    092300.FSPSRB!DBBL.5148: LIBTUX_CAT:328: ERROR: No space in Bulletin Board for
    Service Table
    092300.FSPSRB!simpserv.5153: LIBTUX_CAT:248: ERROR: System init function failed,
    Uunixerr =
    092300.FSPSRB!tmboot.5147: CMDTUX_CAT:825: ERROR: Process simpserv at simple failed
    with /T tperrno (TPENOENT - no entry found)
    below is the ULOG at client site
    071457.GDPSRB!tmloadcf.15432: 081802: TUXEDO Version 6.4 IRIX 5.3 11091812 IP22
    mips.
    071457.GDPSRB!tmloadcf.15432: NLS:4: Cannot open message catalog CMDTUX_CAT, set
    1, num 879; check TUXDIR=/appl/gdproj/tuxdev, LANG=chinese
    071457.GDPSRB!tmloadcf.15432: NLS:4: Cannot open message catalog CMDTUX_CAT, set
    1, num 871; check TUXDIR=/appl/gdproj/tuxdev, LANG=chinese
    071457.GDPSRB!BSBRIDGE.15436: 081802: TUXEDO Version 6.4 IRIX 5.3 11091812 IP22
    mips.
    071457.GDPSRB!BSBRIDGE.15436: NLS:4: Cannot open message catalog LIBTUX_CAT, set
    1, num 262; check TUXDIR=/appl/gdproj/tuxdev, LANG=chinese
    071500.GDPSRB!BBL.15441: 081802: TUXEDO Version 6.4 IRIX 5.3 11091812 IP22 mips.
    071500.GDPSRB!BBL.15441: NLS:4: Cannot open message catalog LIBTUX_CAT, set 1,
    num 262; check TUXDIR=/appl/gdproj/tuxdev, LANG=chinese
    071502.GDPSRB!BBL.15441: NLS:4: Cannot open message catalog LIBTUX_CAT, set 1,
    num 248; check TUXDIR=/appl/gdproj/tuxdev, LANG=chinese
    071502.GDPSRB!BBL.15441: NLS:4: Cannot open message catalog CMDTUX_CAT, set 1,
    num 26; check TUXDIR=/appl/gdproj/tuxdev, LANG=chinese
    i can set BRIDGE at each site.from the client ULOG ,i think
    the "LIBTUX_CAT, set 1, num 248" is the reason BBL can't boot.
    In reference manual LIBTUX_CAT 248 means "System init function faied".
    what can i do at this time.Please help me.
    If possible,please send me a exapmle.
    thanks!!!
    [email protected]

  • Multiplayer game: how to synchronize client and server

    Hi there, I'm wondering how to synchronzie client's and server's frame number?
    I have a multiplayer spaceship(2D) game running at constant 30 FPS, since I use "frame number" to determine if a packet is too late or not, so I would like to have server and client both start frame 1 at the same time, but I have no idea how to do so, can anyone give me a hint?
    well, if you want more details(may not be too much relevant to my problem, but any way, for anyone who interested):
    I use UDP(my teammate implemented a TCP version, it's working but TCP is just way too stupid, lagging and some unknown problems produce very funny result). So far, on client side, input(key strokes) is sent via network immediately, but processed 2 frames later locally. So on lan, server will likely get the packet before it's time to process it, thus solve the packet delay problem a little bit).
    Example: If user pressed fire button at frame 5, it's sent immediately to server, then at frame 7, client engine processes this "fire" event, and likely, server will get this packet at frame 6 or 7, then it can just processes it in time as well.
    So there's a problem, server and client must both running the same frame number at the same time(maybe not exact, but gotta be very close).
    By the way, I need some suggestions implementing the server, my brain hurts just thinking about it, I hope I will never have to code network stuff again: Server runs at 30FPS(but only broadcast game state at 6FPS), it just sit there between frame 1~4, get all packets and store them, then between frame 4~5, processes all the packets recieved, then broadcast the result(game state), client recieves it, will treat this game state as "correct game state for frame 5". I use this way because it solves packet delay and out of order packet to some extend.
    However, say, if server broadcasts the game state for frame 5 at frame 5, then client is likely to recieve it at frame 7 or even later, how can client use it?
    So, together, if you have suggestion or solution for my server and client implementation, please let me know, thanks heaps. I'm in quite a desperation at the moment.
    P.S: I also posted this synchronizing problem at the socket programming forum, hope you guys (and girls) dont mind, since this is a place talking about game, that is a place talking about network, so I thought might be good to have suggestions from people in different programming area.

    Why does the client need to have the same frame number as the server? I think a good way to do it would be as follows:
    - Client sends all of the user's commands to the server (i.e. accellerate left, accellerate right, start firing, etc).
    - Server processes these to update game state and every so often sends updates to the clients, saying something like "at frame 7, user X is at (10, 10) and user Y is at (20,20) and firing south".
    - Clients process all updates from the server, as long as it hasn't seen any update from a later time yet. So if it recieves the update from time 10 before the update from time 9, it only does the one from time 10. It tries to move things smoothly, taking into average time between updates (if there are 100 ms between updates and on the next frame, user X should move 10 units, then move 1 unit every 10 ms).
    By the way, it is possible to use TCP in games. Most MMORPG games use it. I don't know whether it's fast enough for a spaceship game, but it might be worth trying to fix the code you have. Try to keep packets small (use bytes for event type codes, player numbers, etc), group multiple events into one packet if they are all available at the same time, flush() the output stream as soon as you send one, and don't use a buffered stream or reader when reading them.

  • How to Create Legend and Label Graph using VBS

    Hi,
    I've scoured the internet before I had to resort to asking my question here. I hope someone can answer my question.
    Using VBS, how can I create a legend of the channels used in the graph and label the axis in the graph? Thanks in advance!
    Solved!
    Go to Solution.

    I've managed to figure out how to create the labels...
    Call GraphObjOpen(D2AxisXObj(1))
    D2AxisXTxt = "@@ChnName(CurrChnNo)@@ [@@ChnDim(CurrChnNo)@@]" ' Defines the x-label
    Call GraphObjClose(D2AxisXObj(1))
     Now to figure out how to create the legend. If anyone can help me, that'd be great.
    ...And now I feel like a downright idiot.
    After more scouring I managed to find what I need
    Call GraphObjOpen("2D-Axis1")
    '------------------- Swith legend on -------------------------------
    D2LEGDRAW =1
    D2LEGTXTTYPE ="Free text" ' "ChannelName" or other keywords
    D2LEGTXTFREE ="My free legend"
    Call GraphObjClose("2D-Axis1")
    'redraw
    Call Picupdate()

  • How to Integrate Client and Server?

    How to Integrate Client system and Server system?
    A scenario which is working successfully in server system, not working in client system.
    help me out in this issue.
    pankaj.

    This doesn't make any sense... ???
    can you please rewrite your question?

  • How to create WXGA and 720p screenshots using the Emulator Screenshot Tool?

    I just don't see how to increase the zoom of the emulator in order to be able to take a screenshot bigger than 480x800. I need to get WXGA and 720p screenshots in order to complete my store submission.
    How to create such screenshots?
    Thanks,
    Julio

    How do you run emulator in 720p?? I don't see how
    You should have a 720p emulator. Click on the dropdown menu at the green Run button in the Toolbar.
    Alternatively, right click on your project in the Solution Explorer and open its properties. Select the emulator under Debug.

  • Does every web client and/or app use 'significant energy?'

    Brand new MacBook Pro (non-retina,) with upgraded 2.9 ghz Intel i7, and maxed 16GB 1600 DDR3 RAM.
    So far, I've attempted to use Safari, Firefox, and Chrome.  Upon using it for more than a few minutes, or having multiple tabs open, it shows under "Apps Using Significant Energy," with the battery icon.  If used constantly, I could probably squeeze 3-4 hours of battery life before charging the laptop, which seems quite low for a newer machine.  Certainly, it's no MacBook Air, but shouldn't it see a bit more juice than that?  Only occasional videos, no constant YouTube or streaming services.  Mostly searches, jobs, etc.  I've also noticed that my installed Adobe CC programs take a loooong time to startup, but didn't know if that issue is common, or if anything can be done.
    So:
      ** are all the web applications juice hogs?  I kinda like Firefox the most, and Chrome has some neat customization features, but they all end up like little piggies in a sloth.
      ** could it be the MBP?  Would resetting anything possibly positively affect the speed, battery longevity, programs on startup, etc?
    I'm decent at tinkering if I know the proper steps to ensure I'm doing everything just right.  Also, I have AppleCare on the expensive machine, so worst case, I can bring to an authorized store- but I don't want to waste their time if this is just nothing.  I've searched the discussions forums for previous advice, and nothing really, precisely answered the issue.
    Thanks, and cheers!

    The point is you are bound to do VB.Net for web services and it is not VB at all.
    The syntax surely resembles VB but wait till you see what you have instead of good old PRINT!
    VB.Net is not a continuation of VB, it is something radically different that you will have to learn. And if I had to choose between learning VB.Net and Java/Swing, I would go for the latter. I think the third choice, C#, is definitely the winner on all aspects of programming on the Windows platform. The GUI building gap is not as wide as it was with Visual C++ and VB, in fact, it is almost non-existant: .Net's Windows-forms can be developed rapidly either with C# or VB.Net; basically you get the same tool to develop GUIs.
    All things said, there is an excellent article at http://www.theserverside.com/resources/article.jsp?l=SOAP-And-EJB discussing when to opt for SOAP in an EJB environement.
    Hope it helps.

  • How to create YTD and MTD reports using Sql Server 2008 r2 report builder 3.0

    Hi All,
    How can I create YTD report from the below data. please help me
    ProdA     ProdB     ProdC     Month     Year
    10       50        40          January      2012
    Data for full Year i.e. from Jan - December 2012
    50       90       100        January       2013
    Data for full Year i.e. from Jan - December 2013
    90       40         30        January        2014
    Data for full Year i.e. from Jan - Till Date 2014
    MercuryMan

    You can use a correlated subquery to calculate YTD in query behind. You can use APPLY operator for that
    so something like
    SELECT *
    FROM Table t1
    CROSS APPLY (SELECT SUM(ProdA) AS TotA,SM(prodB) AS TotB,SUM(prodC) AS TotC
    FROM Table
    WHERE Year = t.Year)t1
    And show TotA,TotB and TotC in the required total row
    Another method is to add required totals in SSRS by clicking on relevant group and choosing Add Total option
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • How to identify client and server versions

    Hi all,
    Ok, this may sound silly, but I have to write an application to access an Oracle database. Prior development in other languages has used ODBC and works fine. VS.NET using the OLE DB works as well.
    However, I installed the ODT with ODAC 11.10.6.21 and tried that. I get an error trying to access the data.
    When I execute the conn.open(), I get:
    ORA-12154: TNS:could not resolve the connect identifier specified
    I have opened the TNSNames.ora file and used that to create the connection string just in case. But I still get the error.
    My guess is that either the client on my system is too old or the Oracle Server is still running an old version.
    Is there an easy way for me to identify the latest client I have installed as well as the version of Oracle that is running on the server?
    No, I can't just ask the people who manage the server or I would have done so already. I am a contractor here and it is very hard for me to get through to anyone who might know.
    Thanks,
    JustMe

    http://www.oracle.com/technology/tech/dotnet/col/odt_faq.html#ORA-12154:_TNS:could_not_resolve_the

  • Hoe top create summary and detail report using ABAP QUERY

    Hi ,
    Can any one suggest me how to create summary and detailed report using ABAP Quey.
    Regards,
    Raghu.

    Hi,
    Table Declaration
    tables:mara,mast.
    *Declaring the internal table
    data: begin of itab_new occurs 0,
          matnr like mara-matnr,     "Material No
          ernam like mara-ernam,     "Material Created by
          mtart like mara-mtart,     "Material Type
          matkl like mara-matkl,     "Material Desc
          werks like mast-werks,     "Plant
          aenam like mast-aenam,     "BOM created
          stlal like mast-stlal,     "Alternative BOM
          end of itab_new.
    select-options: p_matnr for mara-matnr.
    CODE A : Retrieving the data from the database
         select  f~matnr f~ernam f~mtart f~matkl m~werks m~aenam m~stlal
         into table itab_new
         from mara as f inner join mast as m
         on f~matnr = m~matnr
         where f~matnr in p_matnr.
    CODE B : Retrieving the data from the database.
        SELECT FMATNR FERNAM FMTART FMATKL MWERKS MAENAM M~STLAL
        INTO TABLE ITAB_NEW
        FROM MARA AS F INNER JOIN MAST AS M
        ON FMATNR = MMATNR
        WHERE F~MATNR = P_MATNR.
        SORT ITAB_NEW BY ERNAM.
    loop at itab_new.
    write:/5  itab_new-matnr,itab_new-ernam,itab_new-mtart,itab_new-matkl,itab_new-werks,itab_new-aenam,itab_new-stlal.
    endloop.
    *TABLES: MARA , MAST.
    *DATA:BEGIN OF ITAB_NEW OCCURS 0,
                 MATNR LIKE MARA-MATNR,
                 ERNAM LIKE MARA-ERNAM,
                 MTART LIKE MARA-MTART,
                 MATKL LIKE MARA-MATKL,
                 END OF ITAB_NEW.
       SELECT MATNR ERNAM MTART MATKL
       INTO TABLE ITAB_NEW
       FROM MARA
       WHERE MTART = 'T'
       ORDER BY MATNR ERNAM MTART MATKL.
    *DATA: BEGIN OF ITAB OCCURS 0,
         MATNR LIKE MARA-MATNR,
         END OF ITAB.
    Thank U,
    Jay....

  • Async tcp client and server. How can I determine that the client or the server is no longer available?

    Hello. I would like to write async tcp client and server. I wrote this code but a have a problem, when I call the disconnect method on client or stop method on server. I can't identify that the client or the server is no longer connected.
    I thought I will get an exception if the client or the server is not available but this is not happening.
    private async void Process()
    try
    while (true)
    var data = await this.Receive();
    this.NewMessage.SafeInvoke(Encoding.ASCII.GetString(data));
    catch (Exception exception)
    How can I determine that the client or the server is no longer available?
    Server
    public class Server
    private readonly Dictionary<IPEndPoint, TcpClient> clients = new Dictionary<IPEndPoint, TcpClient>();
    private readonly List<CancellationTokenSource> cancellationTokens = new List<CancellationTokenSource>();
    private TcpListener tcpListener;
    private bool isStarted;
    public event Action<string> NewMessage;
    public async Task Start(int port)
    this.tcpListener = TcpListener.Create(port);
    this.tcpListener.Start();
    this.isStarted = true;
    while (this.isStarted)
    var tcpClient = await this.tcpListener.AcceptTcpClientAsync();
    var cts = new CancellationTokenSource();
    this.cancellationTokens.Add(cts);
    await Task.Factory.StartNew(() => this.Process(cts.Token, tcpClient), cts.Token, TaskCreationOptions.LongRunning, TaskScheduler.Default);
    public void Stop()
    this.isStarted = false;
    foreach (var cancellationTokenSource in this.cancellationTokens)
    cancellationTokenSource.Cancel();
    foreach (var tcpClient in this.clients.Values)
    tcpClient.GetStream().Close();
    tcpClient.Close();
    this.clients.Clear();
    public async Task SendMessage(string message, IPEndPoint endPoint)
    try
    var tcpClient = this.clients[endPoint];
    await this.Send(tcpClient.GetStream(), Encoding.ASCII.GetBytes(message));
    catch (Exception exception)
    private async Task Process(CancellationToken cancellationToken, TcpClient tcpClient)
    try
    var stream = tcpClient.GetStream();
    this.clients.Add((IPEndPoint)tcpClient.Client.RemoteEndPoint, tcpClient);
    while (!cancellationToken.IsCancellationRequested)
    var data = await this.Receive(stream);
    this.NewMessage.SafeInvoke(Encoding.ASCII.GetString(data));
    catch (Exception exception)
    private async Task Send(NetworkStream stream, byte[] buf)
    await stream.WriteAsync(BitConverter.GetBytes(buf.Length), 0, 4);
    await stream.WriteAsync(buf, 0, buf.Length);
    private async Task<byte[]> Receive(NetworkStream stream)
    var lengthBytes = new byte[4];
    await stream.ReadAsync(lengthBytes, 0, 4);
    var length = BitConverter.ToInt32(lengthBytes, 0);
    var buf = new byte[length];
    await stream.ReadAsync(buf, 0, buf.Length);
    return buf;
    Client
    public class Client
    private TcpClient tcpClient;
    private NetworkStream stream;
    public event Action<string> NewMessage;
    public async void Connect(string host, int port)
    try
    this.tcpClient = new TcpClient();
    await this.tcpClient.ConnectAsync(host, port);
    this.stream = this.tcpClient.GetStream();
    this.Process();
    catch (Exception exception)
    public void Disconnect()
    try
    this.stream.Close();
    this.tcpClient.Close();
    catch (Exception exception)
    public async void SendMessage(string message)
    try
    await this.Send(Encoding.ASCII.GetBytes(message));
    catch (Exception exception)
    private async void Process()
    try
    while (true)
    var data = await this.Receive();
    this.NewMessage.SafeInvoke(Encoding.ASCII.GetString(data));
    catch (Exception exception)
    private async Task Send(byte[] buf)
    await this.stream.WriteAsync(BitConverter.GetBytes(buf.Length), 0, 4);
    await this.stream.WriteAsync(buf, 0, buf.Length);
    private async Task<byte[]> Receive()
    var lengthBytes = new byte[4];
    await this.stream.ReadAsync(lengthBytes, 0, 4);
    var length = BitConverter.ToInt32(lengthBytes, 0);
    var buf = new byte[length];
    await this.stream.ReadAsync(buf, 0, buf.Length);
    return buf;

    Hi,
    Have you debug these two applications? Does it go into the catch exception block when you close the client or the server?
    According to my test, it will throw an exception when the client or the server is closed, just log the exception message in the catch block and then you'll get it:
    private async void Process()
    try
    while (true)
    var data = await this.Receive();
    this.NewMessage.Invoke(Encoding.ASCII.GetString(data));
    catch (Exception exception)
    Console.WriteLine(exception.Message);
    Unable to read data from the transport connection: An existing   connection was forcibly closed by the remote host.
    By the way, I don't know what the SafeInvoke method is, it may be an extension method, right? I used Invoke instead to test it.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to run a datagram socket client and server program

    hi,
    I am new to socket programming. I am following the tutorial of sun for socket programming...The link is
    http://java.sun.com/docs/books/tutorial/networking/datagrams/clientServer.html
    I have understood the concept, but the problem is i cannot run the program. I am using netbeans and i have created a package and stored the files QuoteServer,QuoteServerThread, QuoteClient in this package. How can i make the server program run first and then client program in netbeans
    kindly help me
    Thankyou

    I think you are trying to run both server and client
    on one machine!!!
    It is impossible, your server is blocking the port to
    send packets, so you must run client on another
    computer!!!It's not impossible to run a client and server on the same machine just for testing or as a demo. Just have the server listen on one port and the client use a different port.
    No need to use 2 seperate computers. I've done it one computer before without a problem.
    Nick

  • How corba client and server find Naming service

    hello
    i want to ask how corba client and server find the Naming service ?
    10x

    By using a well-known port (I think the default for JavaIDL's NS is 1049) on a well-known address (localhost).
    As these values are not really standard, you can specify them when starting the server and client (+-ORBInitialPort 1050 -ORBInitialHost localhost+). See the documentation .

  • How to create users and groups using WLST Offline with Weblogic 8.1.4

    How to create users and groups using WLST Offline with Weblogic 8.1.4?
    Any ideas?

    Hi this is how i created a user using WLST Offline?
    cd('/Security/' + domainName)
    # Delete the default user name weblogic
    # incase you want to remove the defualt user weblogic
    delete('weblogic','User')
    # Creating a new user defined
    create(userName, 'User')
    # Setting the password of the user you created.
    cd ('/Security/' + domainName + '/User/' + userName)
    cmo.setPassword(password)
    Regards
    Makenzo

Maybe you are looking for

  • Why does working with Stamps cause Acrobat Pro XI to crash on close

    Although other people in my organization have been experiencing crashes several times a day with Acrobat Pro XI (usually from stamping PDFs and closing Acrobat), I've just started receiving crashes after working on custom Stamps. This hasn't happened

  • Please Help this video will not play in firefox

    Hi every one I really need some help i can not get this video to play in firefox but it will play in internet explorer any help or insite would be great. http://expressadservices.com/altlogo3.html Thanks

  • Play Audio through ATV with my HDTV off?

    I've searched the threads without too much luck on this topic. I don't have an ATV yet, but I plan to run an HDMI cable from the ATV to my TV. I also plan to run a toslink optical audio cable from the ATV to an available input on my stereo receiver.

  • Lexical Parameter

    Hi all i need to make a dynamic report using lexical parameter but in the SQL Part when I write the SQL(select name,ID from &p_where) it gives me syntax error ....i tired to use report query builder also telling me query builder not support lexical p

  • External drive to Mac mini

    Hey guys...I just got a mac mini...and I m new to a apple computer...I tried to plug in a external hard drive but it only allows me to get data out of the drive but not putting data back into the drive...anyone got any idea how can I put data back in