Gateway Socket changes

Anyone got any ideas how I could change the characters control that uses the socket gateway. Sound by adding a character for the ACK message I'm going back to another system. Its causing us some problems. I want to remove this last tank, I would change the character of the message that my messages are frequently cut upward because of stray Chr values (13) in the string that sends me. I'm this trapping Needlestick messages together until I get the EOF marker, but once more it's a pain and not very effective.

Thank you very much

Steve

Once more responded to my post. I'm really turn into a very, very sad person, which may not cause problems. Its very very bad for me.

I had a problem with the bridge, it was message to cut into segments and each segment as a message.

It was down to the character of Chr carriage return CR (13) in the message stream.

He draw segment separate message but CHR (28) actually indicates the end of the message.

I also had a few additional characters sent after my answers that the other end of the link comms groaned, because there was data of characters after the end of the message I was including in my response.

If a quick trawl through some books of Java and a careful reading of the upturned Socket gateway code lines incriminated

To stop the additional tanks sent with my response, I just commented on another line which added ">"at the exit. "

Like this:

public void writeOutput (String this)
{
out.println (theOutput);

Comment this one out, it's the extra bit transmitted
//
out. Print(">");
}

Maybe I need to change the out.println an out.print if extra Chr (13) function println adds continues to cause problems.

Regarding the incoming email be divided. I followed it it down to this section

While (((inputLine = in.readLine ())! = null) & listens)
{
If (inputLine.equals ("exit"))
{
break;
}
on the other
{
processInput (inputLine, this.getName ());
TODO: wait() would be cool
}
}

Its the in.readLine () which is originally, it reads lines off the BufferedReader which is the input stream.

Lines which are defined with Chr (13) as an indicator of their end.

So I have modified the function concatenate lines into a temp string they are read and only call the processInput function if the last char of inputLine was CHR (28).

After calling processInput clear down the temp chain ready for the next line.

And that seems to work a treat.

Feel beat V!

Tags: ColdFusion

Similar Questions

  • Gateway network change after deployment of each will

    Can someone point me in the right direction on how to change the default gateway on each workspace GOES after deployment?

    If I change in/etc/sysconfig/network/routes in each virtual machine... and save the file, it came back on the next reboot.

    I can add a new route to the same file, which will persist through a reboot, but I really need to change the default gateway.

    Redeployment is not an option, so I hope that everyone WILL pull a config from somewhere I can I change?

    Suggestions fast until I log a support call?

    Ignore it! ... found the setting in the settings of the VDS.

  • Default gateway will not save

    Hello

    My riding school just bought a printer LaserJet 500 color M551.  I set up the IP port on our print server and manually entered the IP of the printer settings.  This includes the IP address, subnet mask and default gateway.  However, the default gateway changes itself to the same thing as what I entered IP address as soon as I leave the JetDirect menu on the printer.

    After that, I tried to change through the web browser interface.  So I changed to get a DHCP IP address and browsed to the printer and changed from the manaul IP browser.  After I clicked on save, I could navigate is more to the printer based on the IP address I have affected it.  I went into the menu of the printer to the printer itself and found that the default gateway changes itself again to the IP I assigned to the printer.

    For this reason, the printer is essentially useless, because anyone on the network can be printed on it.  Has anyone about this before?  Is it an easy setting I'm missing?  I am a network administrator and have implemented dozens of printers before and have never encountered this before.  Any input would be appreciated.

    Just an update for anyone who looks at this: when I print configuration, under the IPv4 settings page, it shows an error message indicating the INVALID GATEWAY ADDRESS.  Lower than that, it shows the IP address of the default gateway that I have tried to enter.  It shows then below the IP address of the printer, the subnet mask and the default gateway (it changed to be the same as the IP address).  Here is the subnet and the gateway that I use:

    255.255.0.0

    10.1.1.1

    After seeing this message, I tried to change the subnet mask of 255.0.0.0, and I received is no longer the error message.  However, because I changed the subnet mask, it is not on the same network that the rest of our network, is still essentially useless.  But when I change the settings of DHCP TCP/IP instead of manual, it pulls the subnet mask and the gateway that I entered in the first place (when I get the message to the INVALID GATEWAY ADDRESS).

    I called HP support and they had me erase the disc and reload the firmware, and when she came back to the top the same problems happened.  Its almost as if the printer (or the JetDirect card) is too smart for his own good and does not allow a combination of gateway and the subnet mask that is not a normal combination.  Any ideas out there?

  • I can't connect to my default gateway

    I'm trying to port before my router because I can host a server on a game. For the port forward, I need to connect to my default gateway to change the things I need to change.

    Resettlement will almost certainly cause the loss of your data files and applications that you added. First, consider the following steps.

    1) run the SFC/scannow command. This will check and repair if necessary all of the critical Windows system files.

    Click on start / all programs/accessories then
    Right-click on the command prompt option and select "Run as Administrator".
    (or "Safe Mode" open a command prompt)
    At the command prompt, enter: SFC/scannow

    Windows 7 - order SCANNOW SFC - System File Checker
    http://www.SevenForums.com/tutorials/1538-SFC-SCANNOW-Command-System-File-Checker.html

    How to use the System File Checker tool to fix the system files missing or corrupted on Windows Vista or Windows 7
    http://support.Microsoft.com/kb/929833

    How to analyze the entries in log file generating the program Checker (SFC.exe) resources of Microsoft Windows in Windows Vista:
    http://support.Microsoft.com/kb/928228

    (2) how to run a startup repair in Windows 7:
    http://www.SevenForums.com/tutorials/681-startup-repair.html
    "Startup Repair is a Windows 7 system recovery tool that can fix certain problems, such as missing or damaged system files
    (ex: boot MBR file), that might prevent Windows from starting correctly.

    How to start on the System Recovery Options in Windows 7:
    http://www.SevenForums.com/tutorials/668-system-recovery-options.html
    "The System Recovery Options menu is on the Windows 7 installation disc. If your computer (OEM) manufacturer has preinstalled the recovery options, the menu can also be installed on your hard drive as a recovery partition. »

    How to create a Windows 7 system repair disc:
    http://www.SevenForums.com/tutorials/2083-system-repair-disc-create.html
    "That you will show how to create a Windows 7 system repair disc to use at startup in the system recovery options if you do not have a disk Windows installation, cannot find your Windows installation disc, or cannot access to the recovery options provided by your computer manufacturer."

    Windows 7 - repair facility:
    http://www.SevenForums.com/tutorials/3413-repair-install.html
    "This will show how to do a repair of trouble Windows 7 installation and to preserve your user accounts, data, programs and drivers of the system."

    Windows 7 - download the repair disc
    http://NeoSmart.net/blog/2009/Windows-7-system-repair-discs/

  • Gateway authentication

    Hello

    I have install a gateway siebel on a physical machine. Later, I install a siebel Enterprise (A) and then by installing siebel Enterprise (B) on the same machine.
    Everything works fine for a few months now until I have change the SADMIN siebel Enterprise (B) password. When I tried to access the Discover Server Management and back end, using srvrmgr I could open the configuration of the gateway.

    After further investigation, I discovered that regardless of which company the bridge actually uses siebel Enterprise (A) SADMIN account it to connect. This can be repeated when I change company SADMIN (A) password to be the same with the SADMIN (B) company.

    The questions are
    (1) is a behaviour whereas access gateway is always based on the first large company installed?
    (2) if not, how can I point the bridge to watch different DB for access.

    I hope someone can shine a light in there? If the best can provide metalink IDS.


    Concerning
    Joey Tan, MY

    Joey,

    1. Yes, the authentication settings are based in the first large company installed.

    2. check the gateway.cfg file in the gtwysrvr/bin folder and ensure that the below settings match the values of the company b. restart the gateway after changes to these settings.

    [ServerDataSrc]
    ConnectString
    TableOwner

    Document below contains more details about the authentication gateway:

    http://docs.Oracle.com/CD/E14004_01/books/secur/Secur_ChangePwd8.html#wp1075526
    http://docs.Oracle.com/CD/E14004_01/books/secur/Secur_SecAdaptAuth52.html#wp1653970

    Thank you

    Wilson

  • change password of weblogic admin

    How can I change the password of weblogic server admin?

    Here are the steps to do:

    (1) - connect to the console of administration WebLogic Server with the existing user id & password.

    (2) - in the tree view of the left hand to safety-online realms-online myrealm =>, click users

    (3) - in hand right pane, click the user for which the password must be changed

    (4) - in the hand right pane, click the general-online password: change

    (5) - enter the new password and retype the same password to confirm.

    (6) - click on apply.

    (7) - stop the administration server.

    (8) - change the server startup script to change the WLS_PW setting for the new password, it will be like:

    WLS_PW = new_password

    (9) - change the gateway.ini located in METASOLV_HOME/servername/appserver/gateway/directory where servername is the name of the server. In gateway.ini change the password under the JDNI tag parameter, it will look like:

    [JNDI]
    User = admin_user
    Password = new_password
    Factory = WebLogic.JNDI.WLInitialContextFactory
    URL = http://xx.xxx.xxx.xx:7001

    (10) - restart the management server.

    Hope that helps.

  • Satellite A200 hangs or restarts at any time

    Hello

    I am facing problem with my Toshiba Satellite A200 since last week. The problem, I noticed even is mentioned below in steps:

    1. start & freezes on the screen at any time or logon
    2 restart at any time without any notification as blue screen or any message dumping

    Explanation in detail:

    As I start my laptop it can freeze or restart at any moment after the Startup logo. This has happened several times, I noticed. If it freezes, after waiting for half an hour, if it does not, restart any movement of the mouse, no appeal of taskmgr, etc. it completely freezes. Then I made him stop forcing for example, by pressing the power button / stop for a long time.

    * Things to note here: this happens when the power adapter is connected *.

    Same thing repeated here with AC not plugged (on battery), the system works absolutely perfect until that hard battery backup with permitted load on the processor and any diet Plan. Tested also on AC only (battery does not exist) but same results, no resolution.

    As soon as AC is plugged the laptop is ready to freeze or reboot anytime * and the time varies between instant to max 45 minutes I noticed several times.

    Second thing to note is that if I boot in SafeMode it works absolutely fine with & without plugged AC.

    * Measures taken to resolve: *.

    * High temperature set: *.
    I also cleaned the heatsink fan heat + metal bands filter in front of the FAN to avoid high temperatures, but same results, no resolution.

    * OS Installation costs: *.
    I installed a clean copy of the OS, but no effect not found, same results, no resolution

    * AC adapter power supply check & replacement: *.
    I checked the output of the AC adapter / CC it 19.7V DC no load. I borrowed a new AC adapter with my cousin with the same model, but the same results, no resolution.

    * AC adapter Socket change: *.
    To avoid the bad food, but the same results, no resolution.

    * BIOS: *.
    Settings to change the frequency of the dynamics processor to still weak & 2nd Core Disabled, same results, no resolution.

    After searching a solution on various sites, I tried several ways but without success.

    Finally worked for me is to start in "SafeMode-> Device Manager-> disabled both processors ' & restarted in normal mode, everything works fine.

    * Question: *.
    1 but what is the real fault I want to know who?
    2. How safe to operate with disabled processors?
    3. What is the effect of it on the laptop?
    4. it's the real solution?

    Please give me the real solution.

    Thank you
    Hemant

    Hi mate

    The sounds of history for me really weird I mean disabling processors in Device Manager
    Is this laptop must not freeze and must restart not anytime if that's the case then something must be wrong with the software or hardware.
    Because you installed the OS and the problem is still available, I guess something must be wrong with the material; Perhaps the mother or the CPU itself

    It is difficult to say what could be wrong, but it seems like material is affected

  • BEFW1154 to a SE567

    I have a BEFW1154 and Iam tring to hook it to a Telus SE567
    Modem, but have had no luck. I read until I'm confised!
    In my reading I came across a few post (not on this site)
    people having the same trouble.
    Can Q one, be done?
    Q two, it is in the firmware?
    Q three, will be the firmware never updated to take into account the SE567?
    or do I have to upgrade the BEFW1154?

    Thanks Lyle

    OK, got that thing to do. It's all in the Siemens software.
    In advanced settings go to the Local network and then go to the customer

    Allocation of addresses.
    Gigaset IP network gateway.
    Change of settings customized to
    Select your range 192.168.254.0 / 255.255.255.0

    I also changed (don't know if this part had nothing to do with the connection) in the advanced settings, local area network, Plug and

    Game, Setup UPnP. I chose, Enable full Internet

    Technical support Gateway Device (IGD).
    In the Options, I left blank.

    Reset the Linksys router and ran the Linksys disk.

    And finely the Siemens allow the Linksys to connect.

    I also want to thank jonathancnewcom for all the help and

    pointing me in the right direction!   (Kudos to the PM)

    Thanks again jake1

  • Created view of the link of database on dg4msql a column type as long

    Hi all

    I read some views of SQL server using dg4msql to Oracle database 11 G r2.

    All work fine, except columns that are usually varchar2 are now of type LONG. It is the origin of the issues given the wide range of restrictions of data type long.

    Is it possible that when I create a view in Oracle such as:
    CREATE or replace view as v1 (
    select a1, a2, a3 from msqlserver_table@dblink)
    The columns do not come as long but as varchar2 upward?

    Problem, it is once its long form, I can't change it to a different format in a SELECT statement (as cast as varchar 2 etc.).

    Thank you.

    Published by: xarg-Xrc on October 3, 2012 19:26

    Add these 2 parameters to your gateway init file:
    HS_KEEP_REMOTE_COLUMN_SIZE = LOCAL
    HS_NLS_LENGTH_SEMANTICS = CHAR

    It allows me to describe the nvarchar sunk to the varchar column (4000) in Oracle as varchar2 (4000).

    P.S.: Please make sure you open a new connection to gateway (for example to launch SQL * newest) when you have changed a setting gateway as changes in the bridge file are read at the beginning of a new gateway connection handshake.

  • Changed to Comcast modem / gateway of the infinite. Ethernet cable lights are at both ends, but yellow light flashes on the airport. Diagnosis says not connected, but I have internet service. How to return to the GREEN?

    Changed the old Comcast to Comcast modem / gateway Infinity with wifi. Ethernet cable lights are lit at both ends, but yellow light flashes on the airport. Diagnosis says not connected, but I have internet service. How to return to a GREEN fixed?

    Whenever you change your network hardware, it's always a good idea to carry out a new round of full power to all your devices. Check out the following Tip of an airport users for more details. Please post back your results.

  • Change the Simple user interface for 2 Sockets example

    Hi gentlemen, I'm changing the sample application "simple labview UI" taking two, but after I did probably, I just second requeteexecution displays the socket running frist requeteexecution left blank (grey). attached the picture. Relatively, the drop-down list on top of the requeteexecution box is also empty. (However, if you click the drop-down list and select right sleeve, the first requeteexecution appear right by running the sequence). Please someone check my code to see my mistakes, thank you.

    I tried to integrate this code and it works very well with a parallel sequence in the example.  Specifically, look at my implementation of 'DisplayExecution event Callback.vi.  I hope that this solves your problem.

    Pulido Technologies LLC

  • Change the color of the frame of the socket in parallel Mode

    Hello, good day everyone!

    I'm runnning my sequences in parallel Mode.

    When I run a sequence, its color of frame socket continue in blue.

    When I finish a sequence, its color of frame socket turns green momentarily.

    I would like to change that color by program from my TestStand sequence. I don't know if it is possible.

    Example: If the sequence is waiting for something, the color should change to Orange.

    ---

    When I wanted to change the text that appears in the large textbox of the socket, I had to add the code to my paralleluutdlg.c, the PostParallelUUTDialogStatusMessage function.

    http://forums.NI.com/T5/NI-TestStand/parallel-model/m-p/345847/highlight/true#M10401

    I think maybe I need to add something like this once again to change the color, but I've found nothing related.

    Thanks in advance!

    Hello

    I did recently added this feature to my system. I did it by modifying the example in this article in the knowledge base of NOR. I don't know if it's the best way to handle this, but it worked fine for me. I have modified the function as shown below. You simply pass your message and the hexadecimal color you want to use.

    Hope this helps, maybe someone more knowledgeable can ring in to see if my work practice seems ok.

    _stdcall DLLEXPORT int PostParallelUUTDialogStatusMessage (int dlgHandle, int testSocketIndex, int myColor, char * statusMsg)
    { Int error = 0;}
    ERRORINFO errorInfo.

    int panelId = dlgHandle;
    int childPanel = - 1;

    PUUT_PanelData * panelData = NULL;
    TestSocketData * testSocketData = NULL;

    errChk (GetPanelAttribute (panelId, ATTR_FIRST_CHILD, & childPanel));
    errChk (GetPanelAttribute (panelId, ATTR_CALLBACK_DATA, & panelData));

    testSocketData = & (panelData-> testSocketDataArray [testSocketIndex]);
    SetCtrlAttribute (childPanel, testSocketData-> tonalite [kTSCtrl_Bg], ATTR_FRAME_COLOR, myColor);

    SetCtrlAttribute (childPanel, testSocketData-> tonalite [kTSCtrl_TestSocketIndex], ATTR_TEXT_BGCOLOR, myColor);

    errChk (ResetTextBox (childPanel, testSocketData-> [kTSCtrl_Status] tonalite, statusMsg));

    Error:

    error return;
    }

  • Change the appearance of windows messages by socket

    I use TestStand for control of the two USE both. The problem is that I have to change the appearance of the windows of information for each socket. It is difficult for the operator to see which USE (socket) is associated with what message window. I would prefer to use generic text in message boxes; is there a variable that indicates what socket is in effect for this appeal of message so that I can use in the message?

    Thank you

    David W.

    Melbourne, Florida

    RunState.TestSockets.MyIndex

    Use this variable to determine what socket is running.

  • Is there a way to change the number of Sockets of Test, the User Interface of CVI?

    I would like to have the number of sockets in an INI file, the User Interface would be read the value of the file and set the number of Sockets of Test.  I know that it is possible by adding a callback sequence, ModelOptions, to my files in sequence and by changing the setting.  How would you do it in the UI?

    You might have the user interface to read and edit the reportoptions config file as the process template (see the source code for modelsupport2.dll in \Components\Models\TestStandModels). But why do you need UI to do this? Why not simply substitute the recall of ModelOptions and he do there?

    -Doug

  • When I try to log the p2p soulseek site, I get the error message "connection failed: socket error.» change the connection settings. How can I fix it?

    "socket error".

    When I try to log the p2p soulseek site, I get the error message "connection failed: socket error.» change the connection settings. How can I fix it? Is - this type of error called a winsock error?  It keeps happening to me on this site. What I've read, it happens when you make changes to a program before concluding that under its weight. Could it happen because I'm deleting files, I don't think that will be completed while the other files are D/Ling? That's what I'm doing wrong? I found a solution to correct an error in Winsock that is to enter the "command prompt" and type "netsh winsock. Will this work? (I'm sorry I have so many questions in this post, but I have had TO KNOW!!)

    Hello

    I suggest you send the question here for best support about the issue.

Maybe you are looking for