What protocol is this function using to connect?

try{
               kin = new BufferedReader(new InputStreamReader(System.in));
               s = new Socket("127.0.0.1",9191);
               dos = new DataOutputStream(s.getOutputStream());
dis = new DataInputStream(s.getInputStream());
System.out.print(dis.readUTF());//connected
System.out.print(dis.readUTF());//user
dos.writeUTF(kin.readLine());dos.flush();
System.out.print(dis.readUTF());//pass
dos.writeUTF(kin.readLine());dos.flush();
String z="";
               BufferedWriter out = new BufferedWriter(fstream);
while (true){
     System.out.print(dis.readUTF());//xml msl
          }catch(Exception e){
               e.printStackTrace();
          }

TCP -Transmission Control Protocol

Similar Messages

  • What are the different functions used in sap script?

    Hi,
    What are the different functions used in sap script? What are the parameters used in each Function?
    Regards,
    Mahesh

    he print program is used to print forms. The program retieves the necesary data from datbase tables, defines the order of in which text elements are printed, chooses a form for printing and selects an output device and print options.
    Function modules in a printprogram:
    When you print a form you must used the staments OPEN_FORM and CLOSE_FORM. To combine forms into a single spool request use START_FORM and END_FORM.
    To print textelements in a form use WRITE_FORM. The order in which the textelements are printed, is determined by the order of the WRITE_FORM statements. Note: for printing lines in the body, you can also use the WRITE_FORM_LINES function module.
    To transfer control command to a form use CONTROL_FORM.
    Structure of a print program
    Read data
    Tables: xxx.
    SELECT *
    FROM xxx.
    Open form printing - Must be called before working with any of the other form function modules.
    Must be ended with function module CLOSE FORM
    call function 'OPEN_FORM'.....
    To begin several indentical forms containing different data within a single spool request, begin each form using START_FORM, and end it using END_FORM
    call funtion 'START_FORM'.....
    Write text elements to a window of the form
    call function 'WRITE_FORM'.....
    Ends spool request started with START_FORM
    call funtion 'END_FORM'.....
    Closes form printing
    call function 'CLOSE_FORM'...
    OPEN_FORM function
    Syntax:
    CALL FUNCTION 'OPEN_FORM'
    EXPORTING
      APPLICATION                       = 'TX'
      ARCHIVE_INDEX                     =
      ARCHIVE_PARAMS                    =
      DEVICE                            = 'PRINTER'
      DIALOG                            = 'X'
      FORM                              = ' '
      LANGUAGE                          = SY-LANGU
      OPTIONS                           =
      MAIL_SENDER                       =
      MAIL_RECIPIENT                    =
      MAIL_APPL_OBJECT                  =
      RAW_DATA_INTERFACE                = '*'
    IMPORTING
      LANGUAGE                          =
      NEW_ARCHIVE_PARAMS                =
      RESULT                            =
    EXCEPTIONS
      CANCELED                          = 1
      DEVICE                            = 2
      FORM                              = 3
      OPTIONS                           = 4
      UNCLOSED                          = 5
      MAIL_OPTIONS                      = 6
      ARCHIVE_ERROR                     = 7
      INVALID_FAX_NUMBER                = 8
      MORE_PARAMS_NEEDED_IN_BATCH       = 9
      SPOOL_ERROR                       = 10
      OTHERS                            = 11
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Some important parameters:
    FORM      Name of the form
    DEVICE      
    PRINTER : Print output using spool
    TELEFAX: Fax output
    SCREEN: Output to screen
    OPTIONS      Used to control attrubutes for printing or faxing (Number of copies, immediate output....
    The input for the parameter is structure ITCPO.
    CLOSE_FORM function
    CALL FUNCTION 'CLOSE_FORM'
    IMPORTING
      RESULT                         =
      RDI_RESULT                     =
    TABLES
      OTFDATA                        =
    EXCEPTIONS
      UNOPENED                       = 1
      BAD_PAGEFORMAT_FOR_PRINT       = 2
      SEND_ERROR                     = 3
      SPOOL_ERROR                    = 4
      OTHERS                         = 5
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Paramerters:
    RESULT      Returns status information and print/fax parameters after the form has been printed. RESULT is of structure ITCPP.
    WRITE_FORM function
    CALL FUNCTION 'WRITE_FORM'
    EXPORTING
      ELEMENT                        = ' '
      FUNCTION                       = 'SET'
      TYPE                           = 'BODY'
      WINDOW                         = 'MAIN'
    IMPORTING
      PENDING_LINES                  =
    EXCEPTIONS
      ELEMENT                        = 1
      FUNCTION                       = 2
      TYPE                           = 3
      UNOPENED                       = 4
      UNSTARTED                      = 5
      WINDOW                         = 6
      BAD_PAGEFORMAT_FOR_PRINT       = 7
      SPOOL_ERROR                    = 8
      OTHERS                         = 9
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Some important parameters:
    ELEMENT      Specifies which textelement is printed
    WINDOW      Specifies which window is printed
    TYPE      Specifies the output area of the main window. This can be:
    TOP - Used for headers
    BODY
    BOTTOM - Used for footers
    FUNCTION      Specifies whether text is to be appended, replaced or added
    Example of how to use the WRITE_FORM function module together with a script.
    Form layout of the MAIN window
    /E INTRODUCTION
    Dear Customer
    /E ITEM_HEADER
    IH Carrier, Departure
    /E ITEM_LINE
    IL &SBOOK-CARRID&, &SPFLI-DEPTIME&
    /E CLOSING_REMARK
    The print program
    Writing INTRODUCTION
    CALL FUNCTION 'WRITE_FORM'
         EXPORTING
              ELEMENT                  = 'INTRODUCTION'
              FUNCTION                 = 'SET'
              TYPE                     = 'BODY'
              WINDOW                   = 'MAIN'
        EXCEPTIONS
             OTHERS                   = 8
    Writing ITEM_HEADER
    CALL FUNCTION 'WRITE_FORM'
         EXPORTING
              ELEMENT                  = 'ITEM_HEADER'
              FUNCTION                 = 'SET'
              TYPE                     = 'BODY'
              WINDOW                   = 'MAIN'
        EXCEPTIONS
             OTHERS                   = 8
    Set ITEM_HEADER into TOP area of main window for subsequent pages
    CALL FUNCTION 'WRITE_FORM'
         EXPORTING
              ELEMENT                  = 'ITEM_HEADER'
              FUNCTION                 = 'SET'
              TYPE                     = 'TOP'
              WINDOW                   = 'MAIN'
        EXCEPTIONS
             OTHERS                   = 8
    Write ITEM_LINE
    LOOP AT .....
       CALL FUNCTION 'WRITE_FORM'
            EXPORTING
                 ELEMENT               = 'ITEM_LINE'
                 FUNCTION              = 'SET'
                 TYPE                  = 'BODY'
                 WINDOW                = 'MAIN'
           EXCEPTIONS
                OTHERS                 = 8.
    ENDLOOP.
    Delete ITEM_HEADER from TOP area of main window
    CALL FUNCTION 'WRITE_FORM'
         EXPORTING
              ELEMENT                  = 'ITEM_HEADER'
              FUNCTION                 = 'DELETE'
              TYPE                     = 'TOP'
              WINDOW                   = 'MAIN'
        EXCEPTIONS
             OTHERS                    = 8
    Print CLOSING_REMARK
    CALL FUNCTION 'WRITE_FORM'
         EXPORTING
              ELEMENT                  = 'CLOSING_REMARK'
              FUNCTION                 = 'SET'
              TYPE                          = 'BODY'
              WINDOW                   = 'MAIN'
        EXCEPTIONS
             OTHERS                    = 8
    START_FORM function
    CALL FUNCTION 'START_FORM'
    EXPORTING
      ARCHIVE_INDEX          =
      FORM                   = ' '
      LANGUAGE               = ' '
      STARTPAGE              = ' '
      PROGRAM                = ' '
      MAIL_APPL_OBJECT       =
    IMPORTING
      LANGUAGE               =
    EXCEPTIONS
      FORM                   = 1
      FORMAT                 = 2
      UNENDED                = 3
      UNOPENED               = 4
      UNUSED                 = 5
      SPOOL_ERROR            = 6
      OTHERS                 = 7
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    END_FORM function
    CALL FUNCTION 'END_FORM'
    IMPORTING
      RESULT                         =
    EXCEPTIONS
      UNOPENED                       = 1
      BAD_PAGEFORMAT_FOR_PRINT       = 2
      SPOOL_ERROR                    = 3
      OTHERS                         = 4
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CONTROL_FORM function
    The CONTROL_FORM function module alows you to create SapScript control statements from within an APAB program.
    Syntax:
    CALL FUNCTION 'CONTROL_FORM'
      EXPORTING
        command         =
    EXCEPTIONS
      UNOPENED        = 1
      UNSTARTED       = 2
      OTHERS          = 3
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Example:
    Protecting the text element ITEM_LINE
    CALL FUNCTION 'CONTROL_FORM'
      EXPORTING
        COMMAND = 'PROTECT'.
    CALL FUNCTION 'WRITE_FORM'
      EXPORTING
        TEXELEMENT = 'ITEM_LINE'.
    CALL FUNCTION 'CONTROL_FORM'
      EXPORTING
        COMMAND = 'ENDPROTECT'.

  • What I.Link wire is used to connect my Sony Handy Cam to my iMac Mountain Lion?

    What I.Link wire is used to connect my Sony Handy Cam to my iMac Mountain Lion?

    Hi,
    If I remember correctly it is some while since Sony used iLink (Firewire) which would mean it is Firewire 400.
    This would be the smaller 6 pin at the camera end and a 400 9 pin one at the "computer" end.
    However we would now be looking at needing a 400 to 800 adaptor/link cable for newer computers.
    http://en.wikipedia.org/wiki/IEEE_1394
    9:30 pm      Friday; February 14, 2014
      iMac 2.5Ghz 5i 2011 (Mavericks 10.9)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad

  • What plug adapter do I use to connect the new Macbook USB-C port to a cinema display?

    What plug adapter do I use to connect the new Macbook USB-C port to a cinema display?

    If you intend to connect your 2008 display to the new macbook then you will need a USB-C VGA Multiport Adapter ($79) as well as a mini display port to VGA port adapter ($29) and also a VGA-VGA Standard 15-Pin VGA Male to VGA Male Cable ($5).
    http://store.apple.com/us/product/MJ1L2AM/A/usb-c-vga-multiport-adapter
    http://store.apple.com/us/product/MB572Z/B/mini-displayport-to-vga-adapter
    http://www.amazon.com/VGA-VGA-Standard-15-Pin-Male-Cable/dp/B0002AHT0M
    The 2008 old cinema analogue Apple Cinema Displays were mostly pre-quipped with a mini display port rather than a  VGA or HDMI port. So you will have to connect the mini display port to VGA port adapter to your 2008 ACD and the USB-C VGA Multiport Adapter to your new macbook and connect the two female VGA ports with a VGA-VGA Standard 15-Pin VGA Male to VGA Male Cable.
    But I can't guarantee though that the above setup will work for your new macbook and your 2008 Apple Cinema Display. You should double check with Apple support regarding my suggestion. Just let me know.......

  • ODI error-THIS CLAUSE USES MULTIPLE CONNECTIONS AND THEREFORE CANNOT BE EXE

    Hi John,
    I have tried loading the smartlist values and the following error is encountered.
    THIS CLAUSE USES MULTIPLE CONNECTIONS AND THEREFORE CANNOT BE EXECUTED ON THE SOURCE

    Hi John,
    I am still facing the some problem.
    I have updated the join with the expression like yours
    then ran the interface
    The exception is as follows
    org.apache.bsf.BSFException: exception from Jython:
    Traceback (innermost last):
    File "<string>", line 26, in ?
    java.sql.SQLException: Table not found: EXCEPTION in statement [select   C1_PERIOD    "Period",C2_ACCOUNT    "Account",C3_ENTITY    "Entity",C4_EMPLOYEE    "Employee",C5_YEAR    "Year",C6_SCENARIO    "Scenario",C7_VERSION    "Version",'Local'    "Currency",'HSP_InputValue'    "HSP_Rates",CASE WHEN C10_ENTRY_ID IS NULL
    THEN C8_DATA
    ELSE C10_ENTRY_ID
    END    "Data" from "C$_1Totplan_WrkforceData"   left outer join "C$_0Totplan_WrkforceData"   ON C8_DATA=C11_NAME
    AND C9_ENUMERATION_ID=
    (SELECT ENUMERATION_ID FROM Exception]
         at org.hsqldb.jdbc.jdbcUtil.sqlException(jdbcUtil.java:67)
         at org.hsqldb.jdbc.jdbcStatement.fetchResult(jdbcStatement.java:1598)
         at org.hsqldb.jdbc.jdbcStatement.executeQuery(jdbcStatement.java:194)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java)
         at org.python.core.PyMethod.__call__(PyMethod.java)
         at org.python.core.PyObject.__call__(PyObject.java)
         at org.python.core.PyInstance.invoke(PyInstance.java)
         at org.python.pycode._pyx5.f$0(<string>:26)
         at org.python.pycode._pyx5.call_function(<string>)
         at org.python.core.PyTableCode.call(PyTableCode.java)
         at org.python.core.PyCode.call(PyCode.java)
         at org.python.core.Py.runCode(Py.java)
         at org.python.core.Py.exec(Py.java)
         at org.python.util.PythonInterpreter.exec(PythonInterpreter.java)
         at org.apache.bsf.engines.jython.JythonEngine.exec(JythonEngine.java:144)
         at com.sunopsis.dwg.codeinterpretor.k.a(k.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.scripting(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execScriptingOrders(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execScriptingOrders(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSqlI.treatTaskTrt(SnpSessTaskSqlI.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java)
         at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java)
         at com.sunopsis.dwg.cmd.DwgCommandSession.treatCommand(DwgCommandSession.java)
         at com.sunopsis.dwg.cmd.DwgCommandBase.execute(DwgCommandBase.java)
         at com.sunopsis.dwg.cmd.e.i(e.java)
         at com.sunopsis.dwg.cmd.h.y(h.java)
         at com.sunopsis.dwg.cmd.e.run(e.java)
         at java.lang.Thread.run(Unknown Source)
    java.sql.SQLException: java.sql.SQLException: Table not found: EXCEPTION in statement [select   C1_PERIOD    "Period",C2_ACCOUNT    "Account",C3_ENTITY    "Entity",C4_EMPLOYEE    "Employee",C5_YEAR    "Year",C6_SCENARIO    "Scenario",C7_VERSION    "Version",'Local'    "Currency",'HSP_InputValue'    "HSP_Rates",CASE WHEN C10_ENTRY_ID IS NULL
    THEN C8_DATA
    ELSE C10_ENTRY_ID
    END    "Data" from "C$_1Totplan_WrkforceData"   left outer join "C$_0Totplan_WrkforceData"   ON C8_DATA=C11_NAME
    AND C9_ENUMERATION_ID=
    (SELECT ENUMERATION_ID FROM Exception]
         at org.apache.bsf.engines.jython.JythonEngine.exec(JythonEngine.java:146)
         at com.sunopsis.dwg.codeinterpretor.k.a(k.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.scripting(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execScriptingOrders(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execScriptingOrders(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSqlI.treatTaskTrt(SnpSessTaskSqlI.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java)
         at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java)
         at com.sunopsis.dwg.cmd.DwgCommandSession.treatCommand(DwgCommandSession.java)
         at com.sunopsis.dwg.cmd.DwgCommandBase.execute(DwgCommandBase.java)
         at com.sunopsis.dwg.cmd.e.i(e.java)
         at com.sunopsis.dwg.cmd.h.y(h.java)
         at com.sunopsis.dwg.cmd.e.run(e.java)
         at java.lang.Thread.run(Unknown Source)
    Edited by: Sravan Ganti on May 4, 2009 6:07 AM

  • What's the difference between using a connection pool and a datasource

    Howdy. I figure this is a newbie question, but I can't seem to find an
    answer.
    In the docs at bea, the datasource docs say
    "DataSource objects provide a way for JDBC clients to obtain a DBMS
    connection. A DataSource is an interface between the client program and the
    connection pool. Each data source requires a separate DataSource object,
    which may be implemented as a DataSource class that supports either
    connection pooling or distributed transactions."
    In there it says the datasource uses the connection pool, but other than
    that, what is the difference between a connection pool and a datasource?

    Thanks for the info. I think it makes some sense. But it's a bit greek.
    I'm sure it'll make more sense the more I work with it. Thanks.
    "Chuck Nelson" <[email protected]> wrote in message
    news:3dcac1f5$[email protected]..
    >
    Peter,
    Here is a more formal definition of a DataSource from the Sun site
    "A factory for connections to the physical data source that thisDataSource object
    represents. An alternative to the DriverManager facility, a DataSourceobject
    is the preferred means of getting a connection. An object that implementsthe
    DataSource interface will typically be registered with a naming servicebased
    on the JavaTM Naming and Directory (JNDI) API.
    The DataSource interface is implemented by a driver vendor. There arethree types
    of implementations:
    Basic implementation -- produces a standard Connection object
    Connection pooling implementation -- produces a Connection object thatwill automatically
    participate in connection pooling. This implementation works with amiddle-tier
    connection pooling manager.
    Distributed transaction implementation -- produces a Connection objectthat may
    be used for distributed transactions and almost always participates inconnection
    pooling. This implementation works with a middle-tier transaction managerand
    almost always with a connection pooling manager.
    Does that help clarify the distinction?
    Chuck Nelson
    DRE
    BEA Technical Support

  • How do I call a function using local connection?

    I have 3 Flash banners on 1 page that run through a synched animation together. At the end of the animation, there is a replay button in each of the 3 banners. I want the replay button when clicked in any of the banners to call a replay function in all 3 banners. Is there any easy way to do this? Using localconnection?
    The banners are already using a local connection for the syching of the animation, if that helps.
    Thanks!
    Elliott

    I take it back... I figured it out. I just needed to paste the function below into each of the other banners...
    Thanks! :-P

  • Long monitor cables... what do I need to use to connect across a room?

    Hi,
    I have an odd situation where I need to connect a PPC G5 to a couple of flat screen Dell monitors about 15 feet away, and then a Dell computer to two other Dell monitors that are also several feet away.
    So two computers, each CPU connected to two monitors across the room from each other. The two CPUs don't interact at all... this is just for the monitors.
    Are there cables this long? And do they make them for the Mac? And what would be the term for that... AVI? I usually just use the cables that come with the monitors and that's it, so I don't know the names for the connections at all.

    Sorry,
    The Dell monitors are 1908FP and P170S.
    My G5 has one of each kind of connector plus one adaptor.
    So, Do I look for a 10'+ cable with DVI to DVI? Or DVI to VGA? That's what I need to know and can't quite figure out.

  • Whats wrong in this code using ODBC interface of T10 in C ?

    Hi!
    I am trying to connect TimesTen using ODBC in a C application, I am trying to use the dynamic binding of parameters the query. The problem is elaborated in the code. In the comments.
    #include <windows.h>
    #include <sql.h>
    #include <sqlext.h>
    #include <stdio.h>
    #include <string.h>
    #include <stdlib.h>
    int main()
    SQLRETURN rc = SQL_SUCCESS;
    /* General return code for the API */
    SQLHENV hEnv = SQL_NULL_HENV;
    /* Environment handle */
    SQLHDBC hDbc = SQL_NULL_HDBC;
    /* Connection handle */
    SQLHSTMT hStmt = SQL_NULL_HSTMT;
    /* Statement handle */
    SQLCHAR ConnOut[255];
    /* Buffer for completed connection string */
    SQLSMALLINT connOutLen;
    /* number of bytes returned in ConnOut */
    SQLCHAR ConnString = (SQLCHAR ) "DSN=testTT;PWD=spideradm;";
    /* Connection attributes */
    rc = SQLAllocEnv(&hEnv);
    if (rc != SQL_SUCCESS) {
    fprintf(stderr,"Unable to allocate an environment handle\n");
    exit(1);
    SQLINTEGER param1 = 0;
    SQLINTEGER paramstatus = 0;
    rc = SQLAllocConnect(hEnv, &hDbc);
    rc = SQLDriverConnect(hDbc, NULL,ConnString, SQL_NTS,ConnOut, 255,&connOutLen,SQL_DRIVER_NOPROMPT);
    hStmt = SQL_NULL_HSTMT;
    rc = SQLAllocStmt(hDbc, &hStmt);
    rc = SQLPrepare(hStmt,(SQLCHAR*) "select * from test where recno = ? ",SQL_NTS);
    rc = SQLBindParameter(hStmt,1,SQL_PARAM_INPUT,SQL_C_SHORT,SQL_INTEGER,0,0,¶m1,0,¶mstatus);
    param1= 1;
    rc = SQLExecute(hStmt); // here it goes very perfect
    param1 = 2;
    rc = SQLExecute(hStmt); // here is the problem it returns -1
    }

    There are (at least) 3 problems with this code:
    1. The error checking after each ODBC call is far too simplistic. Whenever an ODBC call returns something other than SQL_SUCCESS then you need to call the SQLError() function (multiple times in a loop until it returns SQL_NO_DATA) to retrieve the error or warning information which you should then report. If you do that then the error information would give you a clue to the problem.
    2. The parameter variable 'param1' is declared as a SQLINTEGER (32-bit integer) but you bind it in the SQLBindParameter() call as a SQL_C_SHORT. This is incorrect and will likely cause problems. It should be bound as a SQL_C_SLONG.
    3. When you execute a statement that retrieves data (such as the SELECT statement in your example) a cursor is created. The cursor remains open until (a) you explicitly close it with SQLFreeStmt(hStmt, SQL_CLOSE), or (b) you do a commit or rollback (which closes all open cursors on the connection).
    Your problem here is that the first SQLExecute opens a cursor for hStmt but you then do not fetch any data or close the cursor. When you try the second execute you get an error as there is already an open cursor for that statement. If you had used SQLError(0 to retrieve and report the error codes and messages you would see that you had incurred either an 'INVALID CURSOR STATE' or 'FUNCTION SEQUENCE ERROR' error.
    The fix is to insert the call:
    SQLFreeStmt(hStmt,SQL_CLOSE);
    after the each SQLExecute(0 call. Of course, in a real application there would also be a SQLFetch() loop first to retrieve and process the results of the query.
    Chris

  • Airport Express - Can this be used to connect my wired Xbox360?

    Hi
    I currently have a Timecapsule set up as my main internet and network hub. I wanted to connect my Xbox360 and Mac Mini to the internet and network but they are in a different room and I wanted to use ethernet cables (the Xbox doesn't have wifi).
    Could I use an Express for this - i.e. connect the express near the xbox and within the signal from the Timecapsule and then run an ethernet cable from the express to the xbox - would this work? Would I get close to 802n speeds this way. My Mac Mini only has 802g so if I connected this way would I get closer to 802n speeds when transferring data across the network etc.
    Let me know - my other option is to just an ethernet cable from the Timecapsule to the Mac Mini and Xbox - flat ethernet cable - but this would need to be run under the carpets.
    I'd like to know which option would give me good speeds etc.

    With regards to plugging your XBox into the Airport Express, then yes, it appears this is possible - http://support.apple.com/kb/HT1515 (Although I don't have an xbox or an Airport Express so I can't guarantee this).
    In theory you should get 802.11n speed between the wireless points although your speed via the ethernet cable is slower (in theory) than n-mode. In practice, the n-mode won;t connect at full speed all the time and you're likely to get a better speed from a cable running from the mac-mini to the TC.
    I use my Macbook over the air to my TC in n-mode and while the speed isn't lightning fast, it gets the job done.

  • What protocol does air play use

    I have purchased a Marantz MCR603 which is airplay enbabled but airplay keeps dropping out. I have been advised by both Apple and Marantz that my BTHomhob (3.0, the latest) does not support airplay protocols. BT,as usual, have no idea what I'm talking about. Can anybody advise?

    AirPlay is an Apple propriety protocol stack and is based on the RTSP network control protocol. An AirPlay device, such as your Marantz, would have to work with one or both of the following two services: ROAP used for audio streaming, and AirPlay for video/photo content.
    ROAP uses TCP port 49152 and AirPLay uses TCP port 7000. Note: These ports would not need to be opened on your home router as all streaming is being done on the local network, but both the Marantz and the iTunes host device must be able to open these ports to communicate.

  • What is the CVI function use to get the Read-Only attribute of currently loaded sequence file in TS?

    I am working with CVI 8.0 and TS 3.5.  The VCI code is called from the process model (I want to get the attribute of the currently loaded users sequence file)

    Never mind.  I found it.

  • Use of function module 'FTP connect'

    when we use the function module 'FTP connect', and 'FTP_R3_TO_SERVER'

    Hi,
    The Function module GUI_DOWNLOAD is used to download the data into presentation server and Dataset concepts to download the data into Application server. Sometimes we may require to download the data from other system (3rd Party System) to SAP and Vice Versa. In such scenarios, the concept of FTP commands comes into picture.
    the various FTP commands are:
    HTTP_SCRAMBLE, FTP_CONNECT, FTP_R3_TO_SERVER, FTP_DISCONNECT, RFC_CONNECTION_CLOSE function modules.
    FTP_CONNECT : This is used to connect to other system from SAP with the help of Userid & amp; scrambled password & Host string & destination (default 'SAPFTP').
    FTP_R3_TO_SERVERThis is used to transfer the internal table data as a file to other system in the character mode.
    for more details refer to link:
    Transferring Data from SAP to Other Systems
    Thanks
    Rajesh Kumar

  • Helper.eventURL( , , ) in MAM CODE - What this function does ??

    Hi all,
    Following are few code lines from MAM code :
    // this is in common.inc"
    <jsp:useBean id="helper"
        class="com.sap.mbs.core.web.ViewHelper" scope="request"/>
    String allOrderURL = helper.eventURL("onOrderList", "orderListType", "ALL_ORDERS");
    helper.getApplicationURL()
    Could anyone please tell what this eventURL ,getApplicationURL methods are for ?
    I couldnt find any documentation that explains it.
    Regards,
    Vipin

    Hello Vipin.
    Jo is rite.
    The class is abstract but the class which is used to create the bean is the implementation class:
    <b>DefaultViewHelper</b>
    This is the implementation of the abstract class ViewHelper.
    The ViewHelper is used to create URLs which are used to load a new page with our without submitting a form.
    You can use eventURL to build an URL for a link you want to create (JO's example).
    You can use submitEventURL in order to submit your form.
    This method builds a call to a JavaScript method.
    You can find this method in the file:
    app-root/include/common.inc
    function submitURL(url).
    This function uses url as action for the submit.
    So if you use something like this:
    onClick="<%=helper.submitEventURL("onOK")%>"
    all the form content is written to the context and the onOK method of the corresponding controller class is called. You can get the form content using the context in this controller method then.
    When I started working with MAM I was also confused about the mbs.core Framework.
    Read this maybe it helps:
    SAP MAU MVC
    Best regards,
    Sascha
    Message was edited by: Sascha Dingeldey

  • What kind of devices/router series can be used to connecta leased line for a office of 50-60 users

    What kind of equipments, what series router can be used to connect a leased line,in  a office of 50-60 users,and the steps of setup and configurations in details,Condsider the budget also.
    what kind of port/interfaces are used to connect a lease line?
    I am novice in netwrking field,
    Kindly answers in detail.
    Correct answers are appreciated
    Regards
    Sudipto

    What is the WAN speed?

Maybe you are looking for

  • I cannot access my multi-function DAQ hardware from VB/Meas Studio after upgrading to latest Meas Studio Version and NI-DAQmx

    I have a farily complex project that was initially written in VB6.0 with Meas Studio 3.0 and using traditional NiDAQ.  For seveal reasons, I wanted to upgrade to the latest NI software.  So, I purchased the latest version of Meas. Studio.  I installe

  • Spoil national characters while migration

    I ran into a bit problem: while migration from MS SQL to Oracle all national symbols were transformed to "?" character. Oracle was installed with two locale - American and Russian. Changing of current operatio system localization hasn't taken any eff

  • Download TableView in Excel

    Hi, Is there any way to download whole TableView Data in Excel,which have more than one pages . Looking forward your response. Regards Sachin S M

  • Reg parameter table

    Hi , plz check my below program and exaplain me how to make use of parameter table CLASS cl_abap_objectdescr DEFINITION LOAD. CLASS add DEFINITION.   PUBLIC SECTION.     METHODS add IMPORTING x TYPE i                           y TYPE i               

  • IPhoto Book Paper Quality

    I have ordered books before from apple and was happy with the results. I am considering ordering a large amount of books from another printing company. I was asked what kind of paper weight/gsm I would like. I have no idea, but was wonder if anyone k