Timestamp in TCP package In Windows

I have one question regarding client request that is initiated from windows OS.
Do the client running on windows machine includes timestamp in TCP package for outgoing request ?
Thanks

Hi,
This is indeed a odd problem, would you please take a screenshot for this pheonmenon and post here?
To resolve this problem, have you tried to reinstall NIC driver for test? 
If still no use, you can try to use the method of the link below to fix the problem for test.
https://support.microsoft.com/kb/937056?wa=wsignin1.0
I made a test in our testing enviroment, the registry in its contents also applies to Windows 2012 R2.
Please make a backup before you make any change to Registry in case these operation do harm your system.
Roger Lu
TechNet Community Support

Similar Messages

  • About send TCP package to other server program with the ABAP

    I have a server program, it receipt the tcp data package,then process,then return the result with tcp package.
    the data come from the sap system.
    for example, the material master record.
    I can use the abap to get the data,but i have no idea to send the data to server progam and receipt the result.
    How to do it? Who can help me.Thanks a lot.
    Best regards.
    LnSinco.

    > As an experiment, I tried going the other way. That it, I started up the
    > Simple Data Server VI on the Windows PC. I then "pointed" my SGI client at
    > the server on the PC. It works, ... sort of. I am getting an
    > appropriately sized list of numbers displayed on the SGI host, but while
    > most look like floating point values, some look like VERY large integers.
    >
    > I believe I have a data representation problem. That is, I don't know if I
    > should expect to send (server-side) or see (client-side) C programming
    > variables of type 4-byte floats, 8 byte doubles, or something else. Also, I
    > am not certain how many values I should expect to send/see in each message.
    > I think the default for the Simple Data Client/Server programs is 200
    > points
    , but I am not sure what that really means, either.
    >
    By default, LV converts all of the datatypes to be in big endian form.
    I'm not sure about your SGI, but if it is a little endian machine, then
    that will cause problems. If that is the case, you will want to swap
    the words and bytes of the four byte values.
    To debug this more easily, you might just make sure you send over very
    predictable data such as 0, 1, 2, 3, etc. Lots of times these are
    tested with random data, but that makes it pretty hard to see a pattern
    when the data is wrong.
    Greg McKaskle

  • Problems with starting App-v packages in Windows 10

    Hello, 
    I am testing some app-v 5 (sp3) packages on windows 10 (Build 9926). But with some packages I get this Error:
    “The application was unable to start correctly (0xc0000142)”. Click OK to close the application"
    This package contains Google Chrome 41.
    This is the error I can find in the Event Viewer:
    Log Name: Application
    Source: Application Error
    Date: 20/03/2015 13:06:42
    Event ID: 1000
    Task Category: (100)
    Level: Error
    Keywords: Classic
    User: N/A
    Computer: %computername%
    Description:
    Faulting application name: chrome.exe, version: 41.0.2272.89, time stamp: 0x54fa819a
    Faulting module name: unknown, version: 0.0.0.0, time stamp: 0x00000000
    Exception code: 0xc0000005
    Fault offset: 0x00000000
    Faulting process id: 0x132c
    Faulting application start time: 0x01d06306529e9124
    Faulting application path: C:\Users\%username%\AppData\Local\Microsoft\AppV\Client\Integration\F6864A3D-8FDB-49D4-9E52-062D22FEA3B5\Root\VFS\ProgramFilesX86\Google\Chrome\Application\chrome.exe
    Faulting module path: unknown
    Report Id: 917fe03e-cef9-11e4-ab38-00155d016404
    Faulting package full name:
    Faulting package-relative application ID:
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
    <System>
    <Provider Name="Application Error" />
    <EventID Qualifiers="0">1000</EventID>
    <Level>2</Level>
    <Task>100</Task>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated SystemTime="2015-03-20T12:06:42.000000000Z" />
    <EventRecordID>895</EventRecordID>
    <Channel>Application</Channel>
    <Computer>%computername%</Computer>
    <Security />
    </System>
    <EventData>
    <Data>chrome.exe</Data>
    <Data>41.0.2272.89</Data>
    <Data>54fa819a</Data>
    <Data>unknown</Data>
    <Data>0.0.0.0</Data>
    <Data>00000000</Data>
    <Data>c0000005</Data>
    <Data>00000000</Data>
    <Data>132c</Data>
    <Data>01d06306529e9124</Data>
    <Data>C:\Users\%username%\AppData\Local\Microsoft\AppV\Client\Integration\F6864A3D-8FDB-49D4-9E52-062D22FEA3B5\Root\VFS\ProgramFilesX86\Google\Chrome\Application\chrome.exe</Data>
    <Data>unknown</Data>
    <Data>917fe03e-cef9-11e4-ab38-00155d016404</Data>
    <Data>
    </Data>
    <Data>
    </Data>
    </EventData>
    </Event>
    If I start the same package in Windows 8.1, no problems occur. 
    Chrome is not the only package that I have problems with.
    I am still new in working with app-v.
    Has anyone experienced the same problem and found a solution for it?

    Hello,
    Since Windows 10 is in technical preview I would guess that this is not supported by anyone.
    Had one googled this the Three following top-topics would have showed up;
    https://support.microsoft.com/en-us/kb/2777003?wa=wsignin1.0
    https://packnowledge.wordpress.com/2014/04/28/launching-a-network-executable-inside-an-app-v-5-virtual-environment-revised/
    http://blogs.technet.com/b/gladiatormsft/archive/2013/06/11/app-v-5-0-on-these-0xc0000142-errors-and-where-they-are-coming-from.aspx
    Nicke Källén | The Knack| Twitter:
    @Znackattack

  • ORA-12571 error while creating packages from Windows clients

    Hello,
    We are facing the ORA-12571 error while creating / replacing packages from Windows Clients connected to a 8.1.7.2.0 db on a Solaris server.
    However, there are
    1. no errors in connecting and creating transactions from a Sql session
    2. no errors in creating / replacing unwrapped/wrapped small (few lines) packages
    3. no errors in connecting from a Unix session (remote telnet sessions inclusive).
    This happens only when creating wrapped/unwrapped packages, source code of which is greater than 500 kb approx.
    Can somebody help me resolve this issue. Any Help would be greatly appreciated.
    Regards.
    Lakshmanan, K

    Update: I had unintentionally left my custom tablespace in READONLY state after an earlier experiment with transportable tablespaces. After putting the tablespace back into READ WRITE mode and creating a new template, I was successfully able to create a new db from the template.
    I'm still a little curious why this procedure wouldn't work properly with a READONLY tablespace, however.
    Ben

  • Lenovo Settings Dependency Package for Windows 8.1 - fails on T440s

    Hello everybody,
    I just tried to install the Lenovo Settings Dependency Package for Windows 8.1  on my T440s and it repeatedly tells me that it fails because mfplatt.dll is missing. Has anybody experienced that and knows how to proceed in this case?
    Thanks for your help

    I confirm the problem on T510 too.
    I have Windows 8.1 PRO N.
    I installed the windows Windows6.3-KB2835517-x64.msu windows media package.
    After this, I can restart Lenovo Settings Dependency Package and it works wright, without the error on MFPlat.dll
    And after it works, my camera started to work correctly!
    Bye

  • Error connecting to Oracle from when running SSIS Package on Windows 64-bit

    Hi.
    I have an SSIS (SQL Server Integration Services) Package that reads a view on Oracle and loads data into table in SQL Server 2005. This is on a Windows 2008 Server (64-bit). SQL Server 2005 with SP3. Oracle Client 11g (32 bit & 64 bit) Runtime Version installed on server. The server has been rebooted since installing OracleClient.
    I get the following error when run as a SQLAgent job 64 Bit (Execution type SQL Server Integration Services Package)...
    Started: 9:29:24 AM
    Error: 2010-01-04 09:29:25.37
    Code: 0xC0202009
    Source: SADM_CURR_Address_and_Cell_Phone-Oracle Connection manager "Oracle/PeopleSoft"
    Description: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80040154.
    An OLE DB record is available. Source: "Microsoft OLE DB Service Components" Hresult: 0x80040154 Description: "Class not registered".
    End Error
    Error: 2010-01-04 09:29:25.37
    Code: 0xC020801C
    Source: DFT-Oracle to SS2005 OLE DB Source [1]
    Description: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER. The AcquireConnection method call to the connection manager "Oracle/PeopleSoft" failed with error code 0xC0202009. There may be error messages posted before this with more information on why the AcquireConnection method call failed.
    End Error
    Error: 2010-01-04 09:29:25.37
    Code: 0xC0047017
    Source: DFT-Oracle to SS2005 DTS.Pipeline
    Description: component "OLE DB Source" (1) failed validation and returned error code 0xC020801C.
    End Error
    Error: 2010-01-04 09:29:25.37
    Code: 0xC004700C
    Source: DFT-Oracle to SS2005 DTS.Pipeline
    Description: One or more component failed validation.
    End Error
    Error: 2010-01-04 09:29:25.37
    Code: 0xC0024107
    Source: DFT-Oracle to SS2005
    Description: There were errors during task validation.
    End Error
    DTExec: The package execution returned DTSER_FAILURE (1).
    Started: 9:29:24 AM
    Finished: 9:29:25 AM
    Elapsed: 1.108 seconds
    When I execute this same exact package as a SQLAgent job 32-bit (type Operating System CmdExec) it runs successfully. When I run the package using the Execute Package Utility, it runs successfully. When I am editting the package in BIDS I can connect to Oracle. For both 64 and 32 bit, I use a dtsconfig file which specifies the Oracle connection string and password.
    Someone mentioned on another forum that maybe there is no Oracle ODBC driver for 64-bit Windows. I would assume that the OracleClient 64-bit would include that.
    I hope I have included all info needed. Please let me know if you may have a resolution to this problem.
    Thanks.
    John

    I was trying to transfer data from oracle to sql server 2008 on a daily basis.
    I have very hard time connecting to oracle from ssis package on windows server 2008. I am almost dead and cannot find any help. i was able to connect to oracle using import/export 64 bit feature of SQL Server 2008 using Oracle provider for OLEDB. But I am not sure why the same does not work with BIDS?
    Here's the environment info:
    1. Oracle Client 10g
    2. SQL Server 2008
    3. Windows Server 2008
    Appreciate your help. Please save me.
    Thanks,

  • Is there a "SCCM Package For Windows 7 (64-bit)" for an X220?

    Hey all,
    i found the "SCCM package for Windows 7 (32-bit) and (64-bit)" for ThinkPad X230s here...
     http://support.lenovo.com/en_US/downloads/detail.p​age?DocID=DS034785
    ...but is there one for the X220s as well? I only see ones for M82, M92p M92, and X230
    any help would much appreciated. 

    That sounds great - actually based on our early research that is exactly the route we've decided to go.
    I don't see a document linked in your post, would you mind re-linking?
    Specifically, we'll want to include drivers for lots of x210, x220 and x230 varieties - and there are a lot of them that I don't have available for testing - they are many miles away.
    Appreciate the help!
    EDIT - I found the document linked in another thread and we've used it to pull in all the drivers we require for the 4 models in our environment.  thanks!
    http://download.lenovo.com/ibmdl/pub/pc/pccbbs/mob​iles_pdf/dml_ur_ti_mdt_2.0.pdf

  • I couldn't install iTunes on my laptop and showed me "This is a problem with this windows installer package a program required to install to complete could not be run. Contact your support personnel or package vendor '.Windows of my laptop is win8 Enterpr

    Dear supporter
    I couldn’t install iTunes on my laptop and showed me “This is a problem with this windows installer package a program required to install to complete could not be run. Contact your support personnel or package vendor ‘.Windows of my laptop is win8 Enterprise Build 9200, 64bit.
    Best regards
    Majid

    Try the following user tip:
    "There is a problem with this Windows Installer package ..." error messages when installing iTunes for Windows

  • How To Increase TCP Connections in Windows 2012 Server

    We have installed our Java application in Windows 2012 Server. After running for some time application started showing Connection Time out. We have set TCP Parameters MaxUserPort = 65534 and TcpTimedWaitDelay = 30.
    We are facing the same issue, even after setting the parameters in windows registry. We have verified in our application, "There is no connection pool issue and no thread issue".
    We are using JDK v6.0.29, Tomcat 7, MYSQL 5.5.
    Apart from MaxUserPort and TcpTimedWaitDelay is there any other TCP parameters in Windows 2012 to improve performance of the server and our application.
    2) At the same time we have found that ‘There is sluggishness in I/O process’. Is there any registry parameters to improve I/O performance in the system.
    Thank You.

    Hi,
    You can refer the following article “Tuning TCP” part.
    Windows Server 2012 Performance
    Tuning Guidelines
    Hope this helps.
    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.

  • I can't find the appx or xap package from windows app studio souce code in visual studio 2015

    I created a project from Windows App Studio then downloaded the source code and modify it. I set all configuration to Release Any CPU. But after rebuilding solutions several times there are no appx or xap package files found. How to create appx package
    from windows app studio source code using visual studio 2015?

    For that right click on the solution folder in Visual Studio, and you would find an option to create App Packages. 
    Hope this might help! 
    Create an app package
    Happy Coding!

  • Configuring TCP Locators on Windows 64bit

    We are converting LC clustering from UDP to TCP locators, on windows 64 bit, we would like to create a service or find an automated way to call the batch files. This will be vital, when many clusters are patched and restarted, as it is redundant to maunally login and start the locators for each server.
    We tried configuring a JavaService but, it wouldn't stop the locator successfully. Due to some incompatibility, we get a null pointer class exception. Therefore, I'd like to know if anyone has a similar setup and how you have achieved it.
    Aditya

    For viewer benefit
    http://blogs.adobe.com/livecycle/2012/06/windows-service-for-tcp-locator.html

  • SSIS Package Execution, Windows Authentication, Error: Failed to acquire connection

    Hello,
    I have developed one SSIS Package in SSDT 2012 to create Reporting Database from SQL Datasource and 1 SharePoint List.
    On Development Environment : (Windows Authentication)
    Here everything is running fine.
    On Test Environment Client Side : (Windows Authentication)
    Deployed successfully.
    Validating successfully.
    While executing the package: getting below error.
    SSISPackage:Error: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error Code : 0x80040E21.
    An OLE DB record is abailable. Source: "Microsoft OLE DB Service Componenets" Hresult: 0x80040E21 Description: "Multipe-step OLD DB operation generated errors. Check each OLD DB status value, if available. No work was done.".
    Execute SQL Task: Error: Failed to acquire connection "ReportingDB". Connection may not be configured correctly or you may not have the right permissions on this connection.
    I have done below things:
    On SSIS Package side,
    1. DelayValidation is Set to True for all the connections and each tasks in package
    2. RetainSameConnection : True
    3. ProtectionLevel : DoNotSaveSensitiveData
    On SSMS,
    1. Created one Credential
    2. Create Proxy under SSIS SQL Service Agent to run package as Windows User
    3. Checked all the permissions and roles.
    Below is the connection string which I am using.
    Data Source=DBTEST;Initial Catalog=ReportingDB;Integrated Security=SSPI; persist security info=False;
    Trusted_Connection=Yes;
    Can anyone please help me? As I am trying to resolve this error for the last 4 days and could not find any solution yet.
    Thank you,
    Mittal.

    Can you try changing protection  to - EncryptSensitiveWithUserkey
    can you also enable DTC
    To enable MSDTC on each Web server on Windows Server 2008
    Click Start, click Run, type dcomcnfg and then click OK to open Component Services.
    In the console tree, expand Component Services, expand Computers, expand My Computer, and then expand Distributed Transaction Coordinator.
    Right click Local DTC, and click Properties to display the Local DTC Properties dialog box.
    Click the Security tab.
    In the Security Settings section, click Network DTC Access.
    In the Client and Administration section, select Allow Remote Clients and Allow Remote Administration.
    In the Transaction Manager Communication section, select Allow Inbound and Allow Outbound.
    In the Transaction Manager Communication section, select Mutual Authentication Required (if all remote machines are running Windows Server 2003 SP1), select Incoming Caller Authentication Required (if running MSDTC in a cluster), or select No Authentication
    Required if some of the remote machines are pre-Windows Server 2003 SP1. No Authentication Required is the recommended selection.
    Select Enable XA Transactions, and then click OK.
    Repeat steps 1 through 9 on the other Web servers.
    Please mark
    this reply as the answer or vote as helpful, as appropriate, to make it useful for other readers

  • Getting error after enabling the Transaction in SSIS package in Windows Server 2008 R2 Standard machine

    Hi,
    I created a package with "Execute SQL Task and Data Flow Task". I am able to execute successfully in my server having
    "Windows Server 2008 R2 Standard" Operating System.
    But after enabling the Transaction in my SSIS Package I am not able to execute it. It is giving error. The same package is running in my local machine with Transaction enabled on
    Windows 7 Operation System.
    The error which I got in my server after enabling the Transaction is
    "The SSIS Runtime has failed to enlist the OLE DB connection in a distributed transaction with error 0x8004D025 
    "The partner transaction manager has disabled its support for remote/network transactions.".  End Error "
    I search with this error message in google and found some solutions in the following links
    http://social.msdn.microsoft.com/Forums/en-US/7172223f-acbe-4472-8cdf-feec80fd2e64/the-partner-transaction-manager-has-disabled-its-support-for-remotenetwork-transactions
    http://technet.microsoft.com/en-us/library/cc753510(WS.10).aspx
    http://support.microsoft.com/kb/817064
    But none of the above solution is not working. Kindly help me to resolve this issue.
    Thanks in Advance.
    Sridhar

    Hi Sridhar,
    Please compare the DTS settings on the Windows 7 computer and the Windows Server 2008 R2 computer and make sure they are identical.  Make sure the “Allow Inbound” and “Allow Outbound” options are check, and pay attention to the authentication mode as
    well.
    Besides, make sure both Distributed Transaction Coordinator (TCP-In) and Distributed Transaction Coordinator (TCP-Out) rules in Firewall are enabled.
    If the issue persists and there are any security/anti-virus software, temporarily disable the security/anti-virus software and check the issue again.
    Regards,
    Mike Yin
    TechNet Community Support

  • Failed to install win 8.1 app package on Windows 10

    Hi all,
    The app package complied with VS2013 on Windows 8.1 fails to install on Windows 10.  This is expected ??
    The package could be successfully  installed on Window 8.1, bug failed on Windows 10. Here is the screen shot.

    Hi Dong,
    The error message you show give you instructions for looking up the activity ID.  Please so that and let us know the result.
    Jeff Sanders (MSFT)
    @jsandersrocks - Windows Store Developer Solutions
    @WSDevSol
    Getting Started With Windows Azure Mobile Services development?
    Click here
    Getting Started With Windows Phone or Store app development?
    Click here
    My Team Blog: Windows Store & Phone Developer Solutions
    My Blog: Http Client Protocol Issues (and other fun stuff I support)
    Hi Jeff,
    I got the log, paste it here.  Thanks.
    PS C:\Users\dong> Get-AppxLog -ActivityID a1fac9b5-6bd0-0003-b06a-29a4d06bd001
    Time                      ID           Message
    4/2/2015 9:37:26 AM       301          The calling process is C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
    4/2/2015 9:37:26 AM       604          Started deployment Add operation on a package with main parameter: file:///D:/pr
                                           ojects/win81app/AppPackages/win81app/win81app_1.0.0.0_Win32_Test/win81app_1.0.0.
                                           0_Win32.appx, dependency parameters: file:///D:/projects/win81app/AppPackages/wi
                                           n81app/win81app_1.0.0.0_Win32_Test/Dependencies/x86/Microsoft.VCLibs.x86.12.00.a
                                           ppx, file:///D:/projects/win81app/AppPackages/win81app/win81app_1.0.0.0_Win32_Te
                                           st/Dependencies/x64/Microsoft.VCLibs.x64.12.00.appx and Options:
                                           ForceApplicationShutdownOption. See
                                           http://go.microsoft.com/fwlink/?LinkId=235160 for help diagnosing app
                                           deployment issues.
    4/2/2015 9:37:26 AM       157          The app package signature was validated for core content of the app package
                                           published by CN=dong. Payload won't be validated until the files are read.
    4/2/2015 9:37:26 AM       170          The streaming reader was created successfully for app package
                                           fec010c0-306b-4e7e-88fd-52bdfdcb8fda_1.0.0.0_x86__92cw22eayst0g.
    4/2/2015 9:37:26 AM       157          The app package signature was validated for core content of the app package
                                           published by CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond,
                                           S=Washington, C=US. Payload won't be validated until the files are read.
    4/2/2015 9:37:26 AM       170          The streaming reader was created successfully for app package
                                           Microsoft.VCLibs.120.00_12.0.21005.1_x86__8wekyb3d8bbwe.
    4/2/2015 9:37:26 AM       157          The app package signature was validated for core content of the app package
                                           published by CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond,
                                           S=Washington, C=US. Payload won't be validated until the files are read.
    4/2/2015 9:37:26 AM       170          The streaming reader was created successfully for app package
                                           Microsoft.VCLibs.120.00_12.0.21005.1_x64__8wekyb3d8bbwe.
    4/2/2015 9:37:26 AM       10002        Creating Resiliency File C:\ProgramData\Microsoft\Windows\AppRepository\4f281c8e
                                           -bfc1-465e-bd8d-538fd2991196_S-1-5-21-1213812938-303559523-3196125145-1000_3.rsl
                                           c for Add Operation on Package
                                           fec010c0-306b-4e7e-88fd-52bdfdcb8fda_1.0.0.0_x86__92cw22eayst0g.
    4/2/2015 9:37:26 AM       607          Deployment Add operation on package
                                           fec010c0-306b-4e7e-88fd-52bdfdcb8fda_1.0.0.0_x86__92cw22eayst0g has been
                                           de-queued and is running for user WIN-TNFE02CEC5L\dong.
    4/2/2015 9:37:26 AM       613          Adding uri to the list of Uris: file:///D:/projects/win81app/AppPackages/win81ap
                                           p/win81app_1.0.0.0_Win32_Test/win81app_1.0.0.0_Win32.appx.
    4/2/2015 9:37:26 AM       613          Adding uri to the list of Uris: file:///D:/projects/win81app/AppPackages/win81ap
                                           p/win81app_1.0.0.0_Win32_Test/Dependencies/x86/Microsoft.VCLibs.x86.12.00.appx.
    4/2/2015 9:37:26 AM       613          Adding uri to the list of Uris: file:///D:/projects/win81app/AppPackages/win81ap
                                           p/win81app_1.0.0.0_Win32_Test/Dependencies/x64/Microsoft.VCLibs.x64.12.00.appx.
    4/2/2015 9:37:26 AM       605          The last successful state reached was BundleProcessed. Failure occurred before
                                           reaching the next state Indexed.
    4/2/2015 9:37:26 AM       401          Deployment Add operation with target volume C: on Package
                                           fec010c0-306b-4e7e-88fd-52bdfdcb8fda_1.0.0.0_x86__92cw22eayst0g from:  (file:///
                                           D:/projects/win81app/AppPackages/win81app/win81app_1.0.0.0_Win32_Test/win81app_1
                                           .0.0.0_Win32.appx)  failed with error 0x80073CF9. See
                                           http://go.microsoft.com/fwlink/?LinkId=235160 for help diagnosing app
                                           deployment issues.
    4/2/2015 9:37:26 AM       404          AppX Deployment operation failed for package
                                           fec010c0-306b-4e7e-88fd-52bdfdcb8fda_1.0.0.0_x86__92cw22eayst0g with error
                                           0x80073CF9. The specific error text for this failure is: Deployment Add
                                           operation with target volume C: on Package
                                           fec010c0-306b-4e7e-88fd-52bdfdcb8fda_1.0.0.0_x86__92cw22eayst0g from:  (file:///
                                           D:/projects/win81app/AppPackages/win81app/win81app_1.0.0.0_Win32_Test/win81app_1
                                           .0.0.0_Win32.appx)  failed with error 0x80073CF9. See
                                           http://go.microsoft.com/fwlink/?LinkId=235160 for help diagnosing app
                                           deployment issues.
    PS C:\Users\dong>
    Regards.
    Dong.

  • Establishing a socket connection between a .swf file and a socket-test program (TCP/IP builder - Windows), in AS3.

    I have an issue with a college project I'm working on.
    Using Actionscript 3, I made a simple .swf program, an animated, interactive smiley, that 'reacts' to number inputs in a input-box.
    For the sake of the project, I now need to make the framework for establishing a socket connection with the smiley .swf, and another program.
    This is where I encounter issues. I have very little knowledge of AS3 programming, so I'm not certain how to establish the connection - what's required code-wise for it, that is.
    To test the connection, I'm attempting to use the "TCP/IP builder" program from windows, which lets me set up a server socket. I need to program the .swf file into a client - to recognize it, connect to it, then be able to receive data (so that the data can then be used to have the smiley 'react' to it - like how it does now with the input-box, only 'automatically' as it gets the data rather than by manual input).
    My attempts at coding it are as follows, using a tutorial (linked HERE):
    //SOCKET STUFF GOES HERE
        var socket:XMLSocket;        
        stage.addEventListener(MouseEvent.CLICK, doConnect); 
    // This one connects to local, port 9001, and applies event listeners
        function doConnect(evt:MouseEvent):void 
        stage.removeEventListener(MouseEvent.CLICK, doConnect); 
        socket = new XMLSocket("127.0.0.1", 9001);   
        socket.addEventListener(Event.CONNECT, onConnect); 
        socket.addEventListener(IOErrorEvent.IO_ERROR, onError); 
    // This traces the connection (lets us see it happened, or failed)
        function onConnect(evt:Event):void 
            trace("Connected"); 
            socket.removeEventListener(Event.CONNECT, onConnect); 
            socket.removeEventListener(IOErrorEvent.IO_ERROR, onError); 
            socket.addEventListener(DataEvent.DATA, onDataReceived); 
            socket.addEventListener(Event.CLOSE, onSocketClose);             
            stage.addEventListener(KeyboardEvent.KEY_UP, keyUp); 
        function onError(evt:IOErrorEvent):void 
            trace("Connect failed"); 
            socket.removeEventListener(Event.CONNECT, onConnect); 
            socket.removeEventListener(IOErrorEvent.IO_ERROR, onError); 
            stage.addEventListener(MouseEvent.CLICK, doConnect); 
    // Here, the flash tracks what keyboard button is pressed.
    // If 'q' is pressed, the connection ends.
            function keyUp(evt:KeyboardEvent):void 
            if (evt.keyCode == 81) // the key code for q is 81 
                socket.send("exit"); 
            else 
                socket.send(evt.keyCode); 
    // This one should handle the data we get from the server.
            function onDataReceived(evt:DataEvent):void 
            try { 
                trace("From Server:",  evt.data ); 
            catch (e:Error) { 
                trace('error'); 
        function onSocketClose(evt:Event):void 
            trace("Connection Closed"); 
            stage.removeEventListener(KeyboardEvent.KEY_UP, keyUp); 
            socket.removeEventListener(Event.CLOSE, onSocketClose); 
            socket.removeEventListener(DataEvent.DATA, onDataReceived);
    Trying to connect to the socket gives me either no result (other than a 'connection failed' message when I click the .swf), or the following error:
    Error #2044: Unhandled securityError:. text=Error #2048: Security sandbox violation: file:///C|/Users/Marko/Desktop/Završni/Flash%20documents/Smiley%5FTCP%5FIP%5Fv4.swf cannot load data from 127.0.0.1:9001.
        at Smiley_TCP_IP_v4_fla::MainTimeline/doConnect()[Smiley_TCP_IP_v4_fla.MainTimeline::frame1:12] 

    Tried adding that particular integer code, ended up with either errors ("use of unspecified variable" and "implicit coercion") , or no effect whatsoever (despite tracing it).
    Noticed as well that the earlier socket code had the following for byte reading:
    "sock.bytesAvailable > 0" (reads any positive number)
    ...rather than your new:
    "sock.bytesAvailable != 0" (reads any negative/positive number)
    Any difference as far as stability/avoiding bugs goes?
    So then, I tried something different: Have the program turn the "msg" string variable, into a "sentnumber" number variable. This seemed to work nicely, tracing a NaN for text (expected), or tracing the number of an actual number.
    I also did a few alterations to the input box - it now no longer needs the 'enter' key to do the calculation, it updates the animation after any key release.
    With all this considered and the requirements of the project, I now have a few goals I want to achieve for the client, in the following order of priority:
    1) Have the "sentnumber" number variable be recognized by the inputbox layer, so that it puts it into the input box. So in effect, it goes: Connect -> Send data that is number (NaN's ignored) -> number put into input box -> key press on client makes animation react. I optionally might need a way to limit the number of digits that the animation reacts to (right now it uses 1-3 digit numbers, so if I get sent a huge number, it might cause issues).
    - If the NaN can't be ignored (breaks the math/calculus code or some other crash), I need some way of 'restricting' the data it reads to not include NaN's that might be sent.
    - Or for simplicity, should I just detect the traced "NaN" output, reacting by setting the number variable to be "0" in such cases?
    2) After achieving 1), I'll need to have the process be automatic - not requiring a keyboard presses from the client, but happening instantly once the data is sent during a working connection.
    - Can this be done by copying the huge amounts of math/calculus code from the inputbox layer, into the socket layer, right under where I create the "sentnumber" variable, and modifying it delicately?
    3) The connection still has some usability and user issues - since the connection happens only once, on frame 1, it only connects if I already have a listening server when I run the client, and client can't re-connect if the server socket doesn't restart itself.
    I believe to do this, I need to make the connection happen on demand, rather than once at the start.
    For the project's requirement, I also need to allow client users to define the IP / port it's going to connect to (since the only alternative so far is editing the client in flash pro).
    In other words, I need to make a "Connect" button and two textboxes (for IP and port, respectively), which do the following:
    - On pressing "Connect", the button sets whatever is in the text boxes as the address of the IP and port the socket will connect to, then connects to that address without issues (or with a error message if it can't due to wrong IP/port).
    - The connection needs to work for non-local addresses. Not sure if it can yet.
    - On re-pressing connect, the previous socket is closed, then creates a new socket (with new IP/port, if that was altered)
    It seems like making the button should be as simple as putting the existing socket code under the function of a button, but it also seems like it's going to cause issues similar to the 'looping frames' error.
    4) Optional addition: Have a scrolling textbox like the AIR server has, to track what the connection is doing on-the-fly.
    The end result would be a client that allows user to input IP/Port, connects on button press (optionally tracking/display what the socket is doing via scrollbox), automatically alters the smiley based on what numbers are sent whilst the connection lasts, and on subsequent button presses, makes a new connection after closing off the previous one.
    Dropbox link to new client version:
    https://www.dropbox.com/s/ybaa8zi4i6d7u6a/Smiley_TCP_IP_v7.fla?dl=0
    So, starting from 1), can I, and how can I, get the number variable recognized by "inputbox" layer's code? It keeps giving me 'unrecognized variable' errors.

Maybe you are looking for