How do I connect multiple telnet clients to a telnet server in LabVIEW?

Good afternoon,
I'm writing a telnet server in LabView 6.1 that needs to handle multiple clients. To do this, I modified the "viserver\runvi.llb" example to use the telnet VI's from the Internet Toolkit instead of the TCP VI's. Then I changed the Open VI Reference to point to my telnet handler. Right now my handler just echoes the characters received from the client.
My software works ok for the first connection. After the server accepts two or more connections, characters typed in one client get echoed to all clients. In addition, only one client will accept characters at a time. The client accepting input changes randomly every few seconds as characters are entered.
Has anyon
e gotten the telnet VI's to run in parallel? Not sure if they are thread-safe or not. If you have some experience with this, I have attached my llb if you think you can help.
Thanks!
Chris Norris
Carrier Access Corp.
[email protected]
(303) 218-5826
Attachments:
CAC_Telnet_Server.llb ‏92 KB

I don't think there's a problem with the TCP/connection portion of things. My feeling is that the problem is lurking somewhere in the timing of the application, or in the way LabVIEW task scheduling/multitasking is working compared to the way you expect it to work.
For instance, I'm wondering why you stuck with 25 seconds (25000 ms) as the timeout value for the Telnet Read in Telnet Handler.vi. I assume you're expecting LabVIEW to quickly "sleep" that while loop and move on to check on the while loops of any other Telnet Handler.vi instances that might have been spawned as a result of connection requests from other remote clients.
Instead, it seems to me (on my system, anyway, with three simultaneous connections active) that LabVIEW is not cyc
ling through the other Telnet Handler.vi instances as you expect, but is only getting to them to read a byte at a time each time the main loop iterates in response to a byte appearing from the first of the three remote clients.
If you change the Telnet Read timeout to 50 ms instead, the behavior is closer to what you might expect, but still not perfect.
Because timing/threading/scheduling is a complicated subject in LabVIEW, I'm going to give LabVIEW the benefit of the doubt and assume it's operating as designed. Maybe someone else can provide more insight into what's happening in this particular case, and whether reentrancy or something else is affecting things.
One option I would consider if I were in your shoes: program a simpler version of things that mimics Date Server.vi and cycles through a queue of connections to service them without relying on spawning new reentrant instances of a handler VI.
I realize that your version of things (along with the reentrancy example
that ships with LabVIEW) is expressly intended to handle this daemon-style situation, but simpler may be better for the purposes of debugging and development ease.
My two cents,
John Lum
National Instruments

Similar Messages

  • How do I connect multiple displays to a Lenovo 405

    how do I connect multiple displays to a Lenovo 405 running windows 7?  I tried a video card but the built in amd video port would not function with the video card plugged in.
    Moderator Note; subject edit, post moved to here

    hi harry13,
    Welcome to the Lenovo Forums.
    If you're referring to the Lenovo® H405, this unit has an integrated VGA and HDMI out according to this pdf data sheet.
    If you'll be using a flat panel monitor (that usualy has a VGA connector and a single link DVI D digital interface), you will need to connect 1 monitor to the VGA out and use an HDMI to single link DVI-D converter on the other monitor. You might need to scan for hardware changes under the device manager to identify the monitor that's connected to the HDMI to DVI-D converter. Note that you need to change the video setup under BIOS to IGD or the onboard graphics.
    If you'll be using your discrete video adapter for the multi-monitor setup, you must change the video setup to PEG under the BIOS and the video card must have a vga or hdmi/dvi out.
    Also, see these guides as a reference:
    How to set up dual monitors in Windows 7
    Dual monitor setup: Two monitors are better than one
    Hope this helps.
    Did someone help you today? Press the star on the left to thank them with a Kudo!
    If you find a post helpful and it answers your question, please mark it as an "Accepted Solution"! This will help the rest of the Community with similar issues identify the verified solution and benefit from it.
    Follow @LenovoForums on Twitter!

  • How do I host multiple domains on a single Messaging Server?

    How do I host multiple domains on a single Messaging Server?
    <p>
    To host multiple domains on one Messaging Server, use the
    mailAlternateAddress attribute. If you want to host two domains
    (customer1.com and customer2.com) on your server mail1.domain.com,
    make sure that:
    The various domains (in DNS) point to the installed mail server
    (you must have the MX records that
    points mail for customer1.com to mail1.domain.com and
    customer2.com to mail1.domain.com)
    That each person receiving mail at customer1.com and
    customer2.com has an appropriate mailAlternateAddress
    attribute describing the appropriate email address. For
    instance, John Doe can have an email address (i.e. the value
    of the 'mail' attribute for the John Doe LDAP entry) of
    [email protected] and receive his mail on
    [email protected] (the value of the mailAlternateAddress
    attribute)
    With Messaging Server 3.5, mailAlternateAddress can take the
    form of @mail1.domain.com. If jdoe's mailAlternateAddress is
    set to @mail1.domain.com, mail sent to [email protected]
    will be delivered to [email protected]

    jaygatsby1123 wrote:
    So what exactly am I doing with virtual hosts?  There is a place for Aliases...  What would I put in the "Aliases" box?
    Any other host name that you want to resolve to the specified virtual host.  It's quite literally an alias.
    if you want www.example.com and www.example.org to end up at the same web site and you already have a virtual host — Apple refers to virtual hosts as sites — configured for www.example.com in Server.app, then you'd add www.example.org as an alias for the www.example.com virtual host (site).
    Virtual hosts are implemented in a web server using some details of the HTTP or HTTPS protocol, and what the web browser (client) specified.  The client gets handed an IP address or a domain name by the user, and the client then fetches the associated IP address for the target web server from the client's DNS services or local host database, and the client then connects to the IP address and passes over the text string that the user had requested — the IP address or domain name or even some local shortcut set up in the client system — via the HTTP or HTTPS protocol.  The web server receives and processes this arriving text string from the client, and uses it to select which web site to render back to the web client.   One subtle detail lurks here, too: the server's own DNS configuration really isn't involved in the selection of the virtual host.

  • How can I connect multiple clients to a single client ?

    I am currently developing an instant messaging program.I created a server and connected multiple clients to it by using thread logic.However I do not know how to connect multiple client to a single client.
    What shall I do for that?Does anybody know a good tutorial or sample program?Or shall anybody explain me what I shall do for building the Instant Messaging part of my chat program?
    Thank u in advance.

    You may use UDP multicast socket. But since you are using the UDP protocol you might risk losing the data that you send since UDP does not guarantee the safe transfer of data.
    Alternately, you might create a server that allows multiple client to connect to it whose connection Socket objects are then stored in a Vector <Socket> object. The server then sends back data to the connected client about the other clients connected to it. Now when the client wants to send data (like an IM) to another connected client, it has to send a request to the server specifying the client login name and the server in turn streams that particular client's Address and Port to the requesting client. The requesting client then initiates the connection with the other client and then starts a conversation. One more thing, when the client communicates it needs to send information to the server like the name by which it likes to be referenced. In this scenario the server acts like a central repository for clients to query the existence of other clients in the chat room. Each client here runs a thread that listens to incoming connections and when a connection is established, may be opens a IM window or something.
    The third option is to make the server to relay the information from one client to another. Like say, I'm connected to whoopy server and i want to send "Hello" to jackson, then i send the message (ie, Hello) along with the name of the client to which i wish to send it to (ie, jackson). The server then performs a lookup in its Vector <Socket> object and then initiates a connection with jackson and sends the information. However, this method is pretty costly in that you will be wasting a lot of processing behind the server.
    --Subhankar
    P.s. If you stumble upon any other brilliant ideas let me know.

  • Connecting multiple ECC Clients on same ECC system to BW system(s)

    Hello.
    We are considering connecting our Dev BW system to multiple clients on the same Dev ECC system. This connection would be for a limited time.  We are wondering what the effect would be on the ECC system after we 'disconnect' our BW system from one of the clients.
    Another thing we are considering is to create a seperate BW sandbox system and to connect that to a client on our Dev ECC system.  The Dev ECC system will, at the same time, have a connection to a client on our existing Dev BW system. For example, having DEVBWcnlt100 -> DEVECCclnt100 and SNDBWclnt200 -> DEVECCclnt200 where DEVECC is a system and DEVBW and SNDBW are systems of their own. Our Sandbox BW system will have a limited life and at some point be taken down and no longer be a valid source system for the DEVECC system. We are concerned about what the impact would be to the DEV ECC system's client independent data once the Sandbox BW system is disconnected and taken down permenantly. Is 'residual' client independent data something we need to be concerned about? Is having two different BW systems connected to ECC clients on the same ECC systems a 'bad practice'? Any and all comments are welcome as we have not yet acted on our ideas yet.
    Thanks very much for whatever comments you might provide,
    Geoff.

    We are considering connecting our Dev BW system to multiple clients on the same Dev ECC system. This connection would be for a limited time. We are wondering what the effect would be on the ECC system after we 'disconnect' our BW system from one of the clients.
    No impact on the BW system. The only thing that you will have to take care of is that any process chains which fetch data from this DEV ECC system should not be put on periodic cycle because after disconnecting the ECC system, these would start failing.
    Another thing we are considering is to create a seperate BW sandbox system and to connect that to a client on our Dev ECC system. The Dev ECC system will, at the same time, have a connection to a client on our existing Dev BW system. For example, having DEVBWcnlt100 -> DEVECCclnt100 and SNDBWclnt200 -> DEVECCclnt200 where DEVECC is a system and DEVBW and SNDBW are systems of their own. Our Sandbox BW system will have a limited life and at some point be taken down and no longer be a valid source system for the DEVECC system. We are concerned about what the impact would be to the DEV ECC system's client independent data once the Sandbox BW system is disconnected and taken down permenantly. Is 'residual' client independent data something we need to be concerned about?
    Again no impact on ECC system. As for the client connected earlier to sandbox system, just clear all the queues in RSA7, LBWQ
    Is having two different BW systems connected to ECC clients on the same ECC systems a 'bad practice'?
    No its not at all a bad practice

  • How best to connect multiple (not Apple) monitors to mac mini

    Hi all,
    I'm looking to purchase a Mac Mini and need some advice about setting up two non Apple monitors that have both HDMI & VGA ports.
    Can I use USB ports?
    If I connect one on the Thunderbolt and the other to the HDMI port will it work well?
    Can I connect two monitors through one HDMI or Thunderbolt port?
    Can I add other monitors later of I want to?
    Also what cables/adapters will I need.
    Thank you
    Drew    

    Connect one to the computer's HDMI port and the other to the Thunderbolt port using a Mini DisplayPort to HDMI cable or adapter
    <http://www.kanexlive.com/mdphd10ft>
    <http://store.apple.com/us/product/H1824ZM/A/moshi-mini-dp-to-hdmi-adapter-with-a udio-support>
    It is possible to connect multiple displays to the HDMI port by using a HDMI splitter, but all will show the same picture.
    It is possible to connect two displays to the Thunderbolt port but at least one must be a Thunderbolt display, and you can't use the HDMI port.
    It is possible to connect extra displays via USB, but performance is limited
    <http://www.newertech.com/products/viddu2dvia.php>

  • Unable to connect to SMC Client system from SMC Server System

    hi,
    i have installed SMC 3.6.1. on Solaris 10 OS . The SMC agents are installed are all system but SMC Server is unable to communicate with Client systems. SMC Server System can Ping and Telnet all the SMC Client systems , but unable to connect from SMC .
    Please guide how can resolve this problem
    best regards,
    Adeel Mehmood

    Hi Adeel,
    i have installed SMC 3.6.1. on Solaris 10 OS . The
    SMC agents are installed are all system but SMC
    Server is unable to communicate with Client systems.
    SMC Server System can Ping and Telnet all the SMC
    Client systems , but unable to connect from SMC .
    Please guide how can resolve this problemSo, you can login to SunMC, but you're unable to make an icon for any of your Agents? Or you have icons you made bofre but when you click on them now you get errors?
    If these are new Agents, do they have more than one netowrk interface? If so, they may have security information for the "other" network (the one the SunMC Server's not on). You can try manully specifying the correct network for one Agent and see if it helps:
    http://forums.halcyoninc.com/showthread.php?t=2
    Regards,
    [email protected]
    http://www.HalcyonInc.com
    !! New !! : http://forums.HalcyonInc.com

  • Connect oracle 8 client to oracle 9i server

    hi friends,
    I have earlier oracle 8.0.4 installed on my network.
    Now i upgraded server to oracle 9i release 1.
    How can i make connectivity between oracle 8.0.4 client to oracle 9i server?
    Should i install oracle 9i client on every machine?
    what will be the role of net configuration assistant's listner and naming method setting?
    thanks.

    You should be able to connect to your Oracle 9i databases just as you would connect to your 8.0.4 databases using the 8.0.4 client. To simply make a connection, you should not need to install new versions of the Oracle client, although it may be necessary to take advantage of some of the 9i functionality that requires client-side support.
    If you are using local naming now (i.e. you maintain a tnsnames.ora file on each machine), you will need to continue maintaining a tnsnames.ora file and just add new entries, either manually or through the Net Configuration Assistant (may be called Net8 Easy Config on 8.0.4).
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • Unable to connect the crm client with the IPC server

    Hi,
    I am unable to connect with one CRM client with the IPC server.
    my Dispatcher and all the IPC servers are working all.
    Plz helpme out.
    With thanks and Regards,
    Yusuf.

    Hi Muhammed,
    Check in the file dispatcher.properties if the RFC names are correctly maintained.
    Regards,
    Patricia
    PS Your post was in the wrong forum. I moved it to the correct one where the chance of an answer is much higher.
    Hope you understand and good luck.
    Regards,
    Patricia
    SDN Moderator

  • Connect Oracle 9 client from windows 2012 server to 9.0 oracle database

    I have windows 2012 64 bit with installed oracle 9.0 32 bit client
    and i want to connect to oracle 9.0 64 bit server installed on windows 2003 R2 64 bit
    Is it possible to make this connection because when i have tried to connect received this error ORA-06413 connection is not open

    942609 wrote:
    I know that oracle client 9.2.0 is too old but company about i work have tests which run on this systemIf you are stuck using antiquated versions of software, the company really ought to stick to antiquated versions of the operating system as well. Trying to combine versions of the Oracle client that weren't even certified on Windows 2003 with a bleeding edge Windows 2012 system is a recipe for pain and suffering. Even if you appear to get things working, there are any number of bugs that will likely crop up over time due to the massive version incompatibility.
    If i understood right i can't make connection between oracle 9.2.0 32 bit client installed on windows 2012 to connect to oracle server 10 i?As others have pointed out, you probably can though you'll need to change the firewall rules. As others have stated, the firewall changes you'll need to make should probably be the same for a 9.2 client and a 10.2 client. But if you're determined to work with highly unsupported combinations of software, you're likely to have to embrace the idea that you're going to be blazing some new trails and that you'll have to spend a decent amount of time debugging issues that arise from your very unique combination.
    Justin

  • How to add 10.8 managed clients to 10.8 server

    Specifically, using Workgroup Manager 10.8 rather than Profile Mgr.
    Previously, you could point your clients to the OD Server using Directory Assistant (or via Users & Groups in 10.7) which would then become available to add to a Computer group you had created in WGM. Even though I've got mine set up that way, WGM 10.8 can't see any of 'em. Is there another prerequisite I'm not aware of? Or does this method no longer apply to clients running 10.8?
    thanks.

    I'll check but I wouldn't doubt it. You can add clients in Profile Mgr. that way too (it's the only way you can add them AFAICT). If you can't browse for available clients, why bother with WGM? They're just adding extra layers of administration hassle in my opinion to make you collect and submit UUIDs in order to bind clients.

  • How do we connect multiple Apple ID's to one common account?, How do we connect multiple Apple ID's to one common account?

    My wife and daughter both have iPhones - they like different music and Apps.  How can we keep their iTunes accounts separate, but allow them to both get access to the paid apps and music we currently have in the one account?

    Hello JamyandTami,
    It sounds like you purchase all the apps and music for your wife and daughter with one Apple ID, but you want to sync different information to each iPhone.  I recommend using method 2 in the article below and just syncing the information you want to each phone using a playlist for the music and selecting only the apps you want on each device:
    Method Two
    You may use multiple devices on a computer without the need to create multiple user accounts. To do this, you can set iTunes to update each device with only certain playlists. This method allows you to put all your music on, say, your iPod and keep your iPod shuffle updated with only your workout music. Here's how to do this with iTunes:
    Create new iTunes playlists that contain all the music that you want to sync to each device.
    Learn how to sync your device.
    I recommend reviewing the full article if you would like to see other options:
    How to use multiple iPhone, iPad, or iPod devices with one computer
    http://support.apple.com/kb/HT1495
    You can also download only what you want from the App and iTunes Store to each respective device using the steps in this article:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store
    http://support.apple.com/kb/HT2519
    With either of these methods, you would want to disable automatic downloads on each device so that any new purchases are not automatically downloaded on your wife's phone when your daughter downloads something and vice versa:
    iTunes Store: How to enable Automatic Downloads
    http://support.apple.com/kb/HT4539
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

  • How do i connect multiple devices to itunes

    I have multiple apple devices (3 Iphones and 5 ipods) to connect to Itunes.  I can't get Itunes to recognize the independent devices.

    http://support.apple.com/kb/HT1495

  • Help-how can i connect between a client and servlets on different machines

    hi all
    I asked this question already but:
    I am tring to run a client which is an HTML file that has a "submit" button, that when pressed it should connect (or something) to a servlet, which is on a different mechine.
    what must i write instead of: "localhost"?
    and what web server should i use?
    this is the code on the client side:
    <form action=http://localhost:8080/servlet/MyServlet method=POST target=_blank>
    <input type=submit name="M1" >
    </form>
    thank you

    thanks
    I tryed that by writing the ip address of the servlets mechine instead of "localhost", but there was no reaction
    i wrote:
    <form action=http://10.33.24.33:8080/servlet/MyServlet
    method=POST >
    <input type=submit>
    </form>
    what is wrong with that?
    when i pressed the submit button nothing happened.
    does any body know what can i do?

  • How do you connect multiple TC's

    How do i add TC's to my current setup. i need to have 2 in my home.
    thank you

    All of what you want to is very possible and done by many people every day. You connect over your network, your home or busines LAN (Local Area Network) to share files, folders, drives and connect both externals to either one Mac or one external to each Mac then when you want to save a file to the other Mac, or to an external drive connect to the other Mac, or to another drive connected to the same Mac you Broswe for that other Mac, drive, folder over the network or on the same Mac. You do all that from a Finder window or the Save As dialog box that opens when you select Save As in a program you are using.

Maybe you are looking for

  • Bridge CS6 overwrites EXIF data and changes image orientation.

    Hi, I seem to be having issue with Bridge CS6 overwriting or corrupting my image EXIF data. The situation is this, while in Bridge CS6, I open a folder with some images in it. There I select one image. Right-click on it and select File Info. In the X

  • Indices and F4_GET_RESULT

    Hello, Introduction: There is a performance problem with VF03. When You provide only BUKRS(company code) and XBLNR (reference)on the selection screen and press Search, then You must wait several minutes before a screen with 1 selected entry pops up.

  • Error Export DB 9.2.0.8 Windows 2003

    I have DB Oracle 9.2.0.8 in windows 2003 cluster (Active/Passive) export db, error: EXP-00008: errore ORACLE 37002 rilevato ORA-37002: Oracle OLAP failed to initialize, please contact Oracle Support. ORA-06512: a "SYS.DBMS_AW", line 18 ORA-06512: a "

  • Partitioning Error, Do I really have to format ?

    All, I was happy that my update to Snow Leopard went really smooth and everything worked fine until today LOL I try to install Windows Vista and used the Bootcamp software and he is showing the following error message : http://i82.servimg.com/u/f82/0

  • 10.4 Install disk won't see new hard drive

    My 10.5.6 drive is dying so I replaced it with a brand new drive. I bought my computer just after the 10.5.0 upgrade, so it came with two 10.4 disks and a 10.5 upgrade disk. When I insert 10.4 disk 1 and boot, I get to the point where I am asked to s