Receiving data through TCP Socket

Hi all,
I am trying to receive some data through TCP Socket from the
server using XMLSocketClass. Ther server is responding with some
data. But I can't access this data in my application. Pls tell me
the reasons for not working of handler private function
dataHandler(event:DataEvent):void .
=============================================================================
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
layout="absolute">
<mx:Script>
<![CDATA[
import mx.controls.Alert;
import mx.collections.ArrayCollection;
import flash.display.Sprite;
import flash.events.Event;
import flash.events.DataEvent;
import flash.events.IOErrorEvent;
import flash.net.XMLSocket;
private var socket:XMLSocket;
private var nextId:int;
private var events:ArrayCollection = new ArrayCollection();
public static var host:String = "34.234.43.97";
public static var port:Number = 8002;
public var xml:XML;
private function connectToServer():void
socket = new XMLSocket();
socket.addEventListener(DataEvent.DATA, dataHandler);
configureListeners(socket);
socket.connect(host, port);
//This function is Not working
private function dataHandler(event:DataEvent):void {
Alert.show("dataHandler: " + event.data);
xml = new XML(event.data);
Alert.show(xml); }
private function
configureListeners(dispatcher:IEventDispatcher):void {
dispatcher.addEventListener(Event.CLOSE, closeHandler);
dispatcher.addEventListener(Event.CONNECT, connectHandler);
dispatcher.addEventListener(DataEvent.DATA, dataHandler);
dispatcher.addEventListener(IOErrorEvent.IO_ERROR,
ioErrorHandler);
dispatcher.addEventListener(ProgressEvent.PROGRESS,
progressHandler);
dispatcher.addEventListener(SecurityErrorEvent.SECURITY_ERROR,
securityErrorHandler);
private function closeHandler(event:Event):void {
trace("closeHandler: " + event);
private function ioErrorHandler(event:IOErrorEvent):void {
trace("ioErrorHandler: " + event);
private function progressHandler(event:ProgressEvent):void {
trace("progressHandler loaded:" + event.bytesLoaded + "
total: " + event.bytesTotal);
private function
securityErrorHandler(event:SecurityErrorEvent):void {
trace("securityErrorHandler: " + event);
/* private function dataHandler(event:DataEvent):void {
trace("dataHandler: " + event);
private function connectHandler(event:Event):void
var obj:Object = new Object();
obj.id = nextId++;
obj.eventName="connect";
obj.timestamp = new Date().valueOf();
events.addItem(obj);
private function sendData():void
var xmlvalue:String=txtData.text.toString() ;
var xmlfile:String =
"<command>SndIns<parameter1>0x06</parameter1><parameter2>0x00</parameter2><parameter3>0x7 1</parameter3><parameter4>0x0F</parameter4><parameter5>0x11</parameter5><parameter6>0xFF</ parameter6></command>";
socket.send(xmlfile);
Alert.show(xmlfile);
]]>
</mx:Script>
<mx:HBox width="80%" horizontalAlign="center">
<mx:TextInput id="txtData" name=""/>
<mx:Button id="btnConnect" label="Connect"
click="connectToServer();btnConnect.enabled = false"/>
<mx:Button id="btnSend" label="Send Data"
click="sendData()"/>
<!--<mx:Button label="getData" id="btnGet"
click="getData()"/>-->
</mx:HBox>
<mx:HBox x="10" y="30" width="100%">
<mx:DataGrid width="80%" height="100%"
dataProvider="{xml}">
<mx:columns>
<mx:Array>
<mx:DataGridColumn headerText="Event Name"
dataField="eventName"/>
</mx:Array>
</mx:columns>
</mx:DataGrid>
</mx:HBox>
</mx:Application>

Hi all,
I am trying to receive some data through TCP Socket from the
server using XMLSocketClass. Ther server is responding with some
data. But I can't access this data in my application. Pls tell me
the reasons for not working of handler private function
dataHandler(event:DataEvent):void .
=============================================================================
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
layout="absolute">
<mx:Script>
<![CDATA[
import mx.controls.Alert;
import mx.collections.ArrayCollection;
import flash.display.Sprite;
import flash.events.Event;
import flash.events.DataEvent;
import flash.events.IOErrorEvent;
import flash.net.XMLSocket;
private var socket:XMLSocket;
private var nextId:int;
private var events:ArrayCollection = new ArrayCollection();
public static var host:String = "34.234.43.97";
public static var port:Number = 8002;
public var xml:XML;
private function connectToServer():void
socket = new XMLSocket();
socket.addEventListener(DataEvent.DATA, dataHandler);
configureListeners(socket);
socket.connect(host, port);
//This function is Not working
private function dataHandler(event:DataEvent):void {
Alert.show("dataHandler: " + event.data);
xml = new XML(event.data);
Alert.show(xml); }
private function
configureListeners(dispatcher:IEventDispatcher):void {
dispatcher.addEventListener(Event.CLOSE, closeHandler);
dispatcher.addEventListener(Event.CONNECT, connectHandler);
dispatcher.addEventListener(DataEvent.DATA, dataHandler);
dispatcher.addEventListener(IOErrorEvent.IO_ERROR,
ioErrorHandler);
dispatcher.addEventListener(ProgressEvent.PROGRESS,
progressHandler);
dispatcher.addEventListener(SecurityErrorEvent.SECURITY_ERROR,
securityErrorHandler);
private function closeHandler(event:Event):void {
trace("closeHandler: " + event);
private function ioErrorHandler(event:IOErrorEvent):void {
trace("ioErrorHandler: " + event);
private function progressHandler(event:ProgressEvent):void {
trace("progressHandler loaded:" + event.bytesLoaded + "
total: " + event.bytesTotal);
private function
securityErrorHandler(event:SecurityErrorEvent):void {
trace("securityErrorHandler: " + event);
/* private function dataHandler(event:DataEvent):void {
trace("dataHandler: " + event);
private function connectHandler(event:Event):void
var obj:Object = new Object();
obj.id = nextId++;
obj.eventName="connect";
obj.timestamp = new Date().valueOf();
events.addItem(obj);
private function sendData():void
var xmlvalue:String=txtData.text.toString() ;
var xmlfile:String =
"<command>SndIns<parameter1>0x06</parameter1><parameter2>0x00</parameter2><parameter3>0x7 1</parameter3><parameter4>0x0F</parameter4><parameter5>0x11</parameter5><parameter6>0xFF</ parameter6></command>";
socket.send(xmlfile);
Alert.show(xmlfile);
]]>
</mx:Script>
<mx:HBox width="80%" horizontalAlign="center">
<mx:TextInput id="txtData" name=""/>
<mx:Button id="btnConnect" label="Connect"
click="connectToServer();btnConnect.enabled = false"/>
<mx:Button id="btnSend" label="Send Data"
click="sendData()"/>
<!--<mx:Button label="getData" id="btnGet"
click="getData()"/>-->
</mx:HBox>
<mx:HBox x="10" y="30" width="100%">
<mx:DataGrid width="80%" height="100%"
dataProvider="{xml}">
<mx:columns>
<mx:Array>
<mx:DataGridColumn headerText="Event Name"
dataField="eventName"/>
</mx:Array>
</mx:columns>
</mx:DataGrid>
</mx:HBox>
</mx:Application>

Similar Messages

  • Receive data through TCP connection

    Hi
    I'm receiving a string "Hello" from TCP from a C-program, where I have to display this string in a string indicator in LabVIEW. 
    I have the following block diagram I found among the examples: 
    The point here is that I can only read the last character "o" in the indicator when I change the "bytes to read" value to 4 bytes, but can read the characters "ello" when setting the bytes to read value to 1. How do I read the whole "Hello" string ?. 
    Best regards
    Oesen
    Attachments:
    Simple TCP - Client.vi ‏15 KB

    Since you are sending a string, I would try using "CLRN" mode on TCP Read.  Then you can trigger it to read all the text until the "/r/n" characters in C.
    mode indicates the behavior of the read operation.
    0
    Standard (default)—Waits until all bytes you specify in bytes to read arrive or until timeout ms runs out. Returns the number of bytes read so far. If fewer bytes than the number of bytes you requested arrive, returns the partial number of bytes and reports a timeout error.
    1
    Buffered—Waits until all bytes you specify in bytes to read arrive or until timeout ms runs out. If fewer bytes than the number you requested arrive, returns no bytes and reports a timeout error.
    2
    CRLF—Waits until all bytes you specify in bytes to read arrive or until the function receives a CR (carriage return) followed by a LF (linefeed) within the number of bytes you specify in bytes to read or until timeout ms runs out. The function returns the bytes up to and including the CR and LF if it finds them in the string.
    3
    Immediate—Waits until the function receives any bytes from those you specify in bytes to read. Waits the full timeout only if the function receives no bytes. Returns the number of bytes so far. Reports a timeout error if the function receives no bytes.
    Otherwise, you need to follow the instructions per protocol;
    bytes to readis the number of bytes to read. Use one of the following techniques to handle messages that might vary in size:
    Send messages that are preceded by a fixed size header that describes the message. For example, it might contain a command integer that identifies what kind of message follows and a length integer that identifies how much more data is in the message. Both the server and client receive messages by issuing a read function of eight bytes (assuming each is a four byte integer), converting them into the two integers, and using the length integer to determine the number of bytes to pass to a second read function for the remainder of the message. Once this second read is complete, each side loops back to the read function of the eight byte header. This technique is the most flexible, but it requires two reads to receive each message. In practice, the second read usually completes immediately if the message is written with a single write function.
    Make each message a fixed size. When the content of a message is smaller than the fixed size you specify, pad the message to the fixed size. This technique is marginally more efficient because only a single read is required to receive a message at the expense of sending unnecessary data sometimes.
    Send messages that are strictly ASCII in content, where each message is terminated by a carriage return and linefeed pair of characters. The read function has a mode input that, when passed CRLF, causes it to read until seeing a carriage return and linefeed sequence. This technique becomes more complicated when message data can possibly contain CRLF sequences, but it is quite common among many internet protocols, including POP3, FTP, and HTTP.
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    If someone helped you out, please select their post as the solution and/or give them Kudos!

  • TCODES FOR SENDINGIG AND RECEIVING DATA THROUGH ALE

    Hi,
    All,
    Message type I can find for the following :
    Equipment master: EQUIPMENT_CREATE
    Work centre: WORKC2, WORKC3 or WORKC4
    Functional location: FUNC_LOC_CREATE
    but i did'nt  find  a transaction code for sending and receiving data through ALE.
    For example:  Send material    T.code BD10,
                         Receive material T.code BD11.
    Please give the solution.
    Regards.

    can Tx BD21 is of any help

  • Passing data through TCP/IP

    Hello ! My challenge is this: I have a vi that i have to use as a server and a vi as a client. In the server vi, i want to modify multiple parameters of one graph and these modifications should reflect on the client vi. How can i transmit, through TCP/IP, the modified graph to the client vi/application ? I would appreciate very much a link or a example vi that can show me exactly how such an opperation can be achieved. Thank you!

    You can make the string you pass include any data.  Here is a simple example using an XML string.
    <Graph>
    <Value>1,2,3,4,5,6</Value>
    <Visible>True<\Visible>
    </Graph>
    Send this string on the server side taking a reference to a graph and build a simple vi to generate a string containing  the data you want to send.
    At the client side you parse this string an a loop as set the appropriate property node as the tag dictates.
    I cant think of a precanned solution for this but my morning coffee has not kicked in yet.
    Paul 
    Paul Falkenstein
    Coleman Technologies Inc.
    CLA, CPI, AIA-Vision
    Labview 4.0- 2013, RT, Vision, FPGA

  • I need to find out how much wifi data my apps are using. I have a very limited amount of wifi data, and I am exceeding my monthly allowance. Apparently, even apps I think are not open are sending/receiving data through the wifi and using up my allowance.

    I need to find out how much wifi data my apps are using. I am on a very limited amount of WiFi data each month, which I am regularly exceeding. I have been told to work out which of my apps is using the data. Also, I think I have closed an app by double clicking the home button, then swiping the app up - is this the way to close it, or will it still be sending/receiving data?

    Go into your Settings : General : and turn off background refresh for your apps.  In Settings : Mail  turn Fetch new data to OFF and Load Remote Images to OFF.  This will mean that Mail will only check for messages when you actually use it, and all your advertising junk mail won't have all the images in it.
    Turn off push notifications every chance you get.
    Make sure you are actually quitting apps:  to quit apps press the Home button twice and you should see a bunch of smaller screen images for every open app.  To quit the app swipe from the screen image (not the icon) upward off the top of the iPad.  You can swipe left and right to see more open apps, but there must be no left-right movement on the screen when you swipe upward to close the app.
    Turn off your internet connection when you do not need it.  The easiest way to do this is to swipe up from the bottom of you screen to get the control centre, and then touch the airplane to turn on airplane mode.  You can repeat this sequence to turn it back on again when you need it.  Most especially turn airplane mode on whenever you are sleeping your iPad for long periods.  This will save battery life too.  OR actually turn your iPad off - which means holding the power key down for several seconds until the red swipe bar appears, and then swipe to turn it off.  If you go this route, note that it will take longer to turn on then it takes to wake from sleep.

  • [HELP] problem with receiving data through rs232

        When I connect my VI with MCU (using proteus to simulate), why does it run stable in only 20 seconds? After that, it seem to be unstable. And when I stop simulation in proteus, why does my VI still run and stop after about more than 10 seconds?
       thanks!
    Attachments:
    anh.zip ‏5432 KB
    3D Picture original.vi ‏30 KB
    UART.zip ‏99 KB

    linhvm wrote:
    Reading and sending speed are 9600. you are right, the buffer was filled up, but I don't know the reasons. If I read 22 bytes in Labview, it will run stable for 20s, when I decrease the byte count, the stable time increase. If sending and reading speed are the same, why is the buffer filled up?
    When I stop simulation in Proteus, it still run for several seconds before stop (I think, it run by the data in the buffer). But, if I connect with PL2303 module then disconnect, it will stop immediately.
    It sure would be easier to read your pictures if your wires were somewhat straighter, didn't go backwards, didn't run under other wires or structures, appear to enter subVIs at the wrong terminal, or just appear or disappear at the edges of structures.
    If your program stops after approximately 53,000 bytes (422,000 bits) no matter how many you read in a chunk, then I'd look at the sending end rather than the receiving end. But I don't have LV 2013, as many of us don't yet, to look at the VIs you sent in the first message.
    Cameron
    To err is human, but to really foul it up requires a computer.
    The optimist believes we are in the best of all possible worlds - the pessimist fears this is true.
    Profanity is the one language all programmers know best.
    An expert is someone who has made all the possible mistakes.
    To learn something about LabVIEW at no extra cost, work the online LabVIEW tutorial(s):
    LabVIEW Unit 1 - Getting Started
    Learn to Use LabVIEW with MyDAQ

  • Establish connection with database to send/receive data through Xcelsius

    Hi
    Iu2019m working on a Xcelsius project that requires to establish 2 way communication with the SQL server.
    2 way communication requirement: When user selects an option (country) from the accordion component, it needs to send that to database as a query and retrieves that particular country data onto Xcelsius and refresh the chart data accordingly.
    Iu2019m thinking of using ASPX to communicate between Xcelsius and the SQL server, but not sure how to proceed.
    Appreciate if anyone can provide instructions or pointers to where I can get started with it
    Thanks,
    Malik

    Malik,
    I had worked on a similar requirement, where Sql server should be integrated with Xcelsius and should retrieve real time data.
    Here is what we did...
    -->Configured web service on SQL server side (you will find plenty of doc related to this on google)
    -->Configured Web Service connection in Xcelsius (by passing the WSDL url generated from the SQL server)
    -->Developed dashboard in Xcelsius which retrieves data from SQL server realtime i.e. when user passes Variable value through a component (Combo box or anything), then this value in inturn passed to webservice, and then this web service will retrieve the data to Xcelsius.
    Hope this helps...
    -Anil

  • Receive data through php without button

    Hi,
    This is the situation: I have an application that is
    displaying pictures.
    First I would like to display a score with each picture, so
    everytime a picture is being loaded I would need to get the score
    by posting the name of the picture through HTTPService to a php
    file, and then get the score back and display it (without asking
    the user to push a button).
    The users should allso be able to give the pictures a score,
    but this time they would push a button after giving a score.
    Is there a way to refresh the score (the average score of the
    picture) after the user gives a score?
    Thx!

    To diagnose this problem, I would recommed that you try to connect with sqlplus from the machine where PHP is running.
    Using your settings, the connection attempt should look like this:
    sqlplus -L "user/pass@(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=db0-srv.domain.edu)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=dw.domain.edu)))"
    Try also from a client machine that is known to work with this database server.
    Yours,
    Laurenz Albe

  • CANT receive data via a network, help me please

    Hi, I am not as newbie as I look like to.
    I am trying to receive data through a network. The problem is that I dont know the file size, so I kept reading until reaching the end of file and the save it to a file. The problema is that I am never geting the -1 result from the read method.
    Now, I noticed that the -1 is returned when I close the DataOutputStream. So thats okay. The problem is that the sender is not make in java, but on pocketBuilder. And I cant ask for the client to close an outputStream. So Is there any way to just read the data without knowing the number of the bytes to receive and doesnt waiting for the end of the stream.

    When the number of bytes read is less than the array
    lengthThat doesn't necessarily mean you're at the end of the data.
    Any other wahy, maybe a timer (if is not receiving
    any byte for 20 seconds then cut the conexion?)Again that doesn't necessarily mean you're at the end of the data.
    There is no way to know you're at the end of the data without either an application protocol containing the length, or a socket close at the sender.

  • Labview was blocked when building communication through TCP/IP

    I am trying to transfer data between a Labview system with Win2k and a RT system on PXI controller through TCP/IP. A problem is that when the Labview program started to build the communication to RT, the other Labview programs are all blocked. Howerver, the other application programs except Labview are running properly.  

    Thank you Mike.
    I am trying to transfer data through TCP/IP and Ethernet. The source is a Labview RT program in a PXI controller, and the receiver is a Labview 6.1 program in a workstation with Win2k, and here we focus on the program in the workstation. Besides the communication program, some other Labview programs are also running in the workstation in the mean time.
    The problem occurred at the beginning of the TCP connection: during the following several seconds after the communication program started, I cannot access any of the Labview programs (no response when click on any Labview program). Meanwhile, I found that the CPU usage and memory usage were in normal level and I can access any other windows application program properly. So it seems that the communication program held up all the LabVIEW programs when it started to build connection. Do you have any idea?
    Pierce

  • Flatten to string for sending through TCP/IP contains CRLF characters

    Hi,
    I'm using a 'flatten to string' function to send some data through TCP/IP.
    To minimise delays, I use the CRLF mode so that the receive function returns as soon as it receives a CRLF sequence (termination character).
    I noted that every now and then only part of the data is transmitted because the flattened string itself sometimes (albeit rarely) contains CRLF characters.
    I was wondering if this is correct behaviour, or if I'm missing something.I expected flatten to string to produce pure ASCII strings without special characters.
    Now I first have to scan the string and replace possible CRLF characters by some known series of characters and do the opposite on the receiving side, and hope that this particular sequence never occurs.
    Any comment is appreciated,
    Manu
    Certified LabVIEW Developer (CLD)
    Solved!
    Go to Solution.

    mkdieric wrote:
    Hi,
    thanks for the feedback. I'll use the way you describe, by first sending the number of characters to expect.
    Manu
    Make sure you are consistent with the format for the number of butes. That is, always use an 8, 16 or 32 bit value. Which one you use is up to you and will depend on the size of your data. A 32 bit value is the most common size to use. Anyway what I am basically saying is that if you are inconsistent with what size number you use for the size you will get inconsistent results when you read the data since you will be interpretting the size incorrectly some of the time.
    Mark Yedinak
    "Does anyone know where the love of God goes when the waves turn the minutes to hours?"
    Wreck of the Edmund Fitzgerald - Gordon Lightfoot

  • CTRL-M (^M) characters in data read from sockets

    Hi,
    We have developed a software applications which opens upto 300 TCP connections and 4000 UDP sockets. The data from the TCP application is multiplexed to UDP sockets and viceversa.
    We connect to the application using a TCP socket and send certain data to the application which in turns sends this data to all the 4000 UDP sockets. The data received from 4000 UDP sockets is in turn sent back to the TCP socket as responses.
    We used telnet to connecct to thespecific TCP port on our application, sent a request to be sent to all 4000 UDP sockets and noticed ctrl-M characters in the data received from TCP socket. However we are sure we are not appending or adding this ctrl-m character while sending the data on TCP socket.
    telnet host port >/tmp/abc
    send a request
    send next request
    (after 10 mins, close connection)
    cat -vet /tmp/abc >/tmp/xyz
    There are ctrl-m characters in /tmp/xyz.
    ^M is observed only at the end of few lines and not on all lines. Successive repeatition of this test generates ^M in different lines but at the end of the line always.
    Can anybody help me to know why these ^M characters are getting generated?
    Note: We are completely working on Solaris and do not move contents across Windows and Unix. Our application is completely written on C++
    Thanks.
    Message was edited by:
    shekhnam

    I think I've misunderstood something here. The problem you're having is with the response being filtered by Telnet or your client, not what telnet is sending to the server?
    In that case I think the explanation is clear. Telnet is trying to display what comes back on a screen, and it is deleting and inserting newlines every now and then according to its internal whim so as to make the data wrap. I don't know if you can control that, but I also don't know if it matters as long as you have your own client application. You just have to stop treating Telnet as a viable test client.

  • Transfering data through WiFi or GSM

    Hi there,
    I need some help here..I want to send and receive data through the wiFi or GSM..Is it possible??What module that I have to use?Please assist me...I need some idea how to start my project..
    Please..

    A Wi-Fi connection replaces the physical part of an IP based network. You need to buy Wi-Fi access points and configure them to form your network (there are all kinds of access points on the market) and then you need to connect one end to the PXI module (assuming it has an Ethernet port) and one end to the PC (usually through an Ethernet port or through USB). Once you do that and you have the IP addresses of at least one device, you can communicate between them.
    To learn how to set up a Wi-Fi network I suggest you go to a local computer store and ask them. I'm sure they'll be happy to sell you some equipment.
    Try to take over the world!

  • Send many files through a socket without closing Buffered Streams?

    Hi,
    I have an application that sends/receives files through a socket. To do this, on the receiver side I have a BufferedInputStream from the socket, and a BufferedOutputStream to the file on disk.
    On the sender side I have the same thing in reverse.
    As you know I can't close any stream, ever.. because that closes the underlying socket (this seems stupid..?)
    therefore, how can I tell the receiver that it has reached the end of a file?
    Can you show me any examples that send/receive more than one file without closing any streams/sockets?

    Hi,
    As you know I can't close any stream, ever.. because that closes the underlying socket (this seems stupid..?)Its not if you want to continuosly listen to the particular port.. like those of server, you need to use ServerSocket.
    for sending multiple files the sender(Socket) can request the file to server (ServerSocket). read the contents(file name) and then return the file over same connection, then close the connection.
    For next file you need to request again, put it in loop that will be better.
    A quick Google gives me this.
    Regards,
    Santosh.

  • Handle Received data of Multiple TCP clients on TCP Server by displaying them into Datagrid

    Hello All,
    I have developed a C# based TCP server GUI application which is accepting the data from multiple TCP clients on TCP server.
    The data i am receiving from TCP clients is a 32 bit data. In my application multiple TCP client data goes like this:
    00012331100025123000124510321562
    01112563110002512456012451032125 and so on...
    Now i want those data of the TCP clients to be parsed into 4 bits first and display it in 8 columns (32/4=8) of (say) datagrid as each 4 bit represents some characteristics of the TCP client. The same thing
    should work for next TCP client on second row of datagrid.            
    Can you give me some suggestion or an example how to go about this? Any help would be appreciated.
     Thank you in advance.
    Here is my code for receiving data from multiple TCP clients.
    void m_Terminal_MessageRecived(Socket socket, byte[] buffer)
    string message = ConvertBytesToString(buffer, buffer.Length);
    PublishMessage(listMessages, string.Format("Sockets: {0}", message));
    // Send Echo
    // m_ServerTerminal.DistributeMessage(buffer);
    private string ConvertBytesToString(byte[] bytes, int iRx)
    char[] chars = new char[iRx + 1];
    System.Text.Decoder d = System.Text.Encoding.UTF8.GetDecoder();
    d.GetChars(bytes, 0, iRx, chars, 0);
    string szData = new string(chars);
    return szData;

    Now i want those data of the TCP clients to be parsed into 4 bits first and display it in 8 columns (32/4=8) of (say) datagrid as each 4 bit represents some characteristics of the TCP client. The same thing
    should work for next TCP client on second row of datagrid
    If mean it's a Windows Forms application and you want to display those bits in a DataGridView control, then please see these threads:
    Add row to datagridview
    Programmatically add new row to DataGridView
    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.

Maybe you are looking for

  • How to set up a samsung 2433LW monitor as a second monitor?

    I have a HP Pavilion Elite HPE running on Windows 7 64bit.  I have one monitor attached, a HP 2311x connected using one of the two available DVI ports.  When I connect a second monitor, a Samsung 2433LW using the second DVI port, the second monitor i

  • How to create Business Partner in CFM

    Hello, I want to Know which TCode should be use while creating Business Partner in CFM Module Regards Reshma

  • Adobe CC64bit and Adobe CC 2014, what is the difference?

    I have installed Adobe CC in several versions: CC, CC 64bit and CC 2014. I have Windows 7 64 bit. Which one is the newest an best version for me?

  • BO Edge 3.1 Update - From 3.1A to SP3

    Hi everyone, We performed an install of BO Edge 3.1 SP3 on 3.1A. The installation seems to have completed OK however the web applications do not seem to have updated correctly. From About the version still shows 12.1 which is very weiird. We are usin

  • IPhone Bluetooth rejects call

    My iPhone 5c is rejecting all calls when I use Bluetooth in my car. Does anyone know which setting control this? I can call out without issues. It is only the incoming calls that don't work.