Ask help, How make my TCP server program stronger

I'm develop a simple c/s program using TCP.
I use recv (sock, buff, len, WAITALL) func recieving the message sent by client, if the client don't send enough lenth message, the server will block, how to resolve this problem.
I'm a network programming beginner, could you give me some advise and information, thanks.

It would be useful for you to read
http://docs.sun.com/ab2/coll.45.13/NETP/
especially "Overview of Sockets" and "Socket Basics".
You can find there many code examples.
And the general way to deal with stream message size
is to put it into the message header. This will allow
the receiver first to read the message size, and then
the entire message.
Enjoy!

Similar Messages

  • How to make a tcp server in loop

    Hello everybody!
    I just want to know how to make a server keeping turning even when the client has deconnected.
    My work is based on examples TCP Communicator - Active.vi and TCP Communicator - Passive.vi.
    The problem with these VIs is that when the client deconnects, the server doesn't work any longer, and I want the server to be able to listen for other clients (one client in the same time).
    How can I modify them to apply my will? If you have some examples it will be perfect!!
    Thank you!
    SebGAM

    You could probably get away with putting a big While loop around the server code, but there is always the greatest TCP server example I have ever seen. It lives over at OpenG, the Open Source LabVIEW community. You can download and use it for free. There's even decent documentation right there online.
    EXAMPLE - TCP Server at OpenG
    Beware, the code is not easily understood by the novice LabVIEW programmer. All you need to know is that you should only modify the VI called "TCP Server Example.vi" and "TCP Server Example Connection Handler VI.vi".
    Enjoy,
    Daniel L. Press
    PrimeTest Corp.
    www.primetest.com

  • How can I make a TCP server for muticonnec​tion clients??

    Dear group,
    I try to change a complicated TCP server with only one client posibility to
    a multiclient.
    I've seen the examples, even some solution on the ni web, but I don't
    understand very well how it's works. I need also logging for each client in
    a different file.
    Thanks for your help.

    The best example I have found is this one
    Understanding Client-Server Applications -- Example Code
    There are a couple of good links to tutorials off the page as well.
    If you have questions about the specific example let us know what they are.

  • How to run a server program in the background on Linux or Windows?

    I just finished writing a Java network application with multiple clients and one server.
    However, I am not sure how I can run the server (SomeServer.class) in the background on Windows. Also when I am running it on Linux, I don't want it to terminate when I logout of the Linux shell.
    To run the server on Linux, should I use a command like this?
    nohup java -cp . SomeServer.class > output.txt &
    Or is there another command, or perhaps some code that I can add to the program so that it would run in the background automatically and/or continues even when I logout of the Linux shell??
    Sometimes, I also like to run the program on a Windows XP machine for testing purpose. How can I do it so that it runs in the background without openning a Console/Command Prompt window??
    (redirecting the standard output to a file)
    And is there an easy way to create a EXE file that runs the program with the default JRE in windows?

    On many UNIX systems there's a utility called detach which will launch the following command in such a manner that killing the shell will not kill the process. On systems that lack this command, I'd find an open source implementation and install it.

  • Client server programming

    Hi;
    I want to learn client server programming on using windows xp for the client and windows server 2003.
    I downloaded the 9.2 windows xp database version for the client . What do I need to download for the server? I see that there is a 32 and 64 bit version for the server.
    Thanks for your help!

    What I was asking is what should I install on the server
    the 32 or 64 bit version of oracle?
    I want to learn how to write client/server programs using Oracle.
    I have a network at home with one computer serving as the client and another has server 2003 on it.
    Again Thanks for your help!

  • How to configure http server in oracle 10g

    Hi
    I am configuring apex 3.2.1 on oracle 10g 10.2.0 I need help how to configure http server bec i did not find any Apache file or folder in 10g if it is then how .
    Arshad

    Hi
    I use to configure only this in $ORACLE_HOME/forms/server/forms.conf (and restart ias):
    AddType application/x-orarrp rrp_
    AddType application/x-orarrp-text rrpt
    AddType application/x-orarrp-ps rrpp
    AddType application/x-orarrp-pdf rrpa
    AddType application/x-orarrp-rtf rrpr
    AddType application/x-orarrp-html rrph

  • How to bounce Weblogic Server

    I am running a WebAPP on WL 10.3.2. I want to Applciation changes to be get effected without restarting the server. I know bouncing the server helps. how do I bounce server on Linux platform.
    Version: WL 10.3.2

    Bouncing means restarting.
    Though Weblogic supports hot deployment it is not recommended. If changes are on just jsp's then it is fine. Class level changes will not be guarenteed without a bounce.
    Venkat

  • To:NOAH:REGARDING CLIENT/SERVER Program

    Dear Noah,,,how to run the server program since there is no component inside?Pls reply

    Noah.
    can u pls send the client porgram so i can run the program and see.Got one point i still doesn;t understand
    which is jdk only allow user to run JAVAC *.java one time
    if i run the server ,how could i run the client?

  • Please help how to execute jfree......

    please help how to execute[b] jfree  programs
    step by step procedure.....
    package org.jfree.chart.demo;
    import org.jfree.chart.ChartFactory;
    import org.jfree.chart.ChartPanel;
    import org.jfree.chart.JFreeChart;
    import org.jfree.chart.axis.CategoryAxis;
    import org.jfree.chart.axis.CategoryLabelPosition;
    import org.jfree.chart.axis.CategoryLabelPositions;
    import org.jfree.chart.axis.CategoryLabelWidthType;
    import org.jfree.chart.plot.CategoryPlot;
    import org.jfree.chart.plot.PlotOrientation;
    import org.jfree.data.category.CategoryDataset;
    import org.jfree.data.category.DefaultCategoryDataset;
    import org.jfree.text.TextBlockAnchor;
    import org.jfree.ui.ApplicationFrame;
    import org.jfree.ui.RectangleAnchor;
    import org.jfree.ui.RefineryUtilities;
    import org.jfree.ui.TextAnchor;
    import org.jfree.util.Log;
    import org.jfree.util.PrintStreamLogTarget;
    * A simple demonstration application showing how to create a horizontal 3D bar chart using data
    * from a {@link CategoryDataset}.
    public class BarChart3DDemo2 extends ApplicationFrame {
        // * JFREECHART DEVELOPER GUIDE                                               *
        // * The JFreeChart Developer Guide, written by David Gilbert, is available   *
        // * to purchase from Object Refinery Limited:                                *
        // * http://www.object-refinery.com/jfreechart/guide.html                     *
        // * Sales are used to provide funding for the JFreeChart project - please    *
        // * support us so that we can continue developing free software.             *
         * Creates a new demo.
         * @param title  the frame title.
        public BarChart3DDemo2(final String title) {
            super(title);
            // create the chart...
            final DefaultCategoryDataset dataset = new DefaultCategoryDataset();
            dataset.addValue(23.0, "Series 1", "London");
            dataset.addValue(14.0, "Series 1", "New York");
            dataset.addValue(14.0, "Series 1", "Istanbul");
            dataset.addValue(14.0, "Series 1", "Cairo");
            dataset.addValue(13.0, "Series 2", "London");
            dataset.addValue(19.0, "Series 2", "New York");
            dataset.addValue(19.0, "Series 2", "Istanbul");
            dataset.addValue(19.0, "Series 2", "Cairo");
            dataset.addValue(7.0, "Series 3", "London");
            dataset.addValue(9.0, "Series 3", "New York");
            dataset.addValue(9.0, "Series 3", "Istanbul");
            dataset.addValue(9.0, "Series 3", "Cairo");
            final JFreeChart chart = createChart(dataset);
            // add the chart to a panel...
            final ChartPanel chartPanel = new ChartPanel(chart);
            chartPanel.setPreferredSize(new java.awt.Dimension(500, 270));
            setContentPane(chartPanel);
         * Creates a chart.
         * @param dataset  the dataset.
         * @return The chart.
        private JFreeChart createChart(final CategoryDataset dataset) {
            final JFreeChart chart = ChartFactory.createBarChart3D(
                "3D Bar Chart Demo 2",       // chart title
                "Category",                  // domain axis label
                "Value",                     // range axis label
                dataset,                     // data
                PlotOrientation.HORIZONTAL,  // orientation
                true,                        // include legend
                true,                        // tooltips
                false                        // urls
            final CategoryPlot plot = chart.getCategoryPlot();
            plot.setForegroundAlpha(1.0f);
            // left align the category labels...
            final CategoryAxis axis = plot.getDomainAxis();
            final CategoryLabelPositions p = axis.getCategoryLabelPositions();
            final CategoryLabelPosition left = new CategoryLabelPosition(
                RectangleAnchor.LEFT, TextBlockAnchor.CENTER_LEFT,
                TextAnchor.CENTER_LEFT, 0.0,
                CategoryLabelWidthType.RANGE, 0.30f
            axis.setCategoryLabelPositions(CategoryLabelPositions.replaceLeftPosition(p, left));
            return chart;       
         * Starting point for the demonstration application.
         * @param args  ignored.
        public static void main(final String[] args) {
            Log.getInstance().addTarget(new PrintStreamLogTarget());
            final BarChart3DDemo2 demo = new BarChart3DDemo2("3D Bar Chart Demo 2");
            demo.pack();
            RefineryUtilities.centerFrameOnScreen(demo);
            demo.setVisible(true);
    }this is the first time i'm trying to execute jfree programs...
    regards,
    R.Raghavan

    here's error message
    E:\raghav>javac BarChart3DDemo2.java
    BarChart3DDemo2.java:3: cannot find symbol
    symbol : class ChartFactory
    location: package org.jfree.chart
    import org.jfree.chart.ChartFactory;
    ^
    BarChart3DDemo2.java:4: cannot find symbol
    symbol : class ChartPanel
    location: package org.jfree.chart
    import org.jfree.chart.ChartPanel;
    ^
    BarChart3DDemo2.java:5: cannot find symbol
    symbol : class JFreeChart
    location: package org.jfree.chart
    import org.jfree.chart.JFreeChart;
    ^
    BarChart3DDemo2.java:6: package org.jfree.chart.axis does not exist
    import org.jfree.chart.axis.CategoryAxis;
    ^
    BarChart3DDemo2.java:7: package org.jfree.chart.axis does not exist
    import org.jfree.chart.axis.CategoryLabelPosition;
    ^
    BarChart3DDemo2.java:8: package org.jfree.chart.axis does not exist
    import org.jfree.chart.axis.CategoryLabelPositions;
    ^
    BarChart3DDemo2.java:9: package org.jfree.chart.axis does not exist
    import org.jfree.chart.axis.CategoryLabelWidthType;
    ^
    BarChart3DDemo2.java:10: package org.jfree.chart.plot does not exist
    import org.jfree.chart.plot.CategoryPlot;
    ^
    BarChart3DDemo2.java:11: package org.jfree.chart.plot does not exist
    import org.jfree.chart.plot.PlotOrientation;
    ^
    BarChart3DDemo2.java:12: package org.jfree.data.category does not exist
    import org.jfree.data.category.CategoryDataset;
    ^
    BarChart3DDemo2.java:13: package org.jfree.data.category does not exist
    import org.jfree.data.category.DefaultCategoryDataset;
    ^
    BarChart3DDemo2.java:14: package org.jfree.text does not exist
    import org.jfree.text.TextBlockAnchor;
    ^
    BarChart3DDemo2.java:15: package org.jfree.ui does not exist
    import org.jfree.ui.ApplicationFrame;
    ^
    BarChart3DDemo2.java:16: package org.jfree.ui does not exist
    import org.jfree.ui.RectangleAnchor;
    ^
    BarChart3DDemo2.java:17: package org.jfree.ui does not exist
    import org.jfree.ui.RefineryUtilities;
    ^
    BarChart3DDemo2.java:18: package org.jfree.ui does not exist
    import org.jfree.ui.TextAnchor;
    ^
    BarChart3DDemo2.java:19: package org.jfree.util does not exist
    import org.jfree.util.Log;
    ^
    BarChart3DDemo2.java:20: package org.jfree.util does not exist
    import org.jfree.util.PrintStreamLogTarget;
    ^
    BarChart3DDemo2.java:27: cannot find symbol
    symbol: class ApplicationFrame
    public class BarChart3DDemo2 extends ApplicationFrame {
    ^
    BarChart3DDemo2.java:80: cannot find symbol
    symbol : class CategoryDataset
    location: class org.jfree.chart.demo.BarChart3DDemo2
    private JFreeChart createChart(final CategoryDataset dataset) {
    ^
    BarChart3DDemo2.java:80: cannot find symbol
    symbol : class JFreeChart
    location: class org.jfree.chart.demo.BarChart3DDemo2
    private JFreeChart createChart(final CategoryDataset dataset) {
    ^
    BarChart3DDemo2.java:50: cannot find symbol
    symbol : class DefaultCategoryDataset
    location: class org.jfree.chart.demo.BarChart3DDemo2
    final DefaultCategoryDataset dataset = new DefaultCategoryDataset();
    ^
    BarChart3DDemo2.java:50: cannot find symbol
    symbol : class DefaultCategoryDataset
    location: class org.jfree.chart.demo.BarChart3DDemo2
    final DefaultCategoryDataset dataset = new DefaultCategoryDataset();
    ^
    BarChart3DDemo2.java:64: cannot find symbol
    symbol : class JFreeChart
    location: class org.jfree.chart.demo.BarChart3DDemo2
    final JFreeChart chart = createChart(dataset);
    ^
    BarChart3DDemo2.java:67: cannot find symbol
    symbol : class ChartPanel
    location: class org.jfree.chart.demo.BarChart3DDemo2
    final ChartPanel chartPanel = new ChartPanel(chart);
    ^
    BarChart3DDemo2.java:67: cannot find symbol
    symbol : class ChartPanel
    location: class org.jfree.chart.demo.BarChart3DDemo2
    final ChartPanel chartPanel = new ChartPanel(chart);
    ^
    BarChart3DDemo2.java:82: cannot find symbol
    symbol : class JFreeChart
    location: class org.jfree.chart.demo.BarChart3DDemo2
    final JFreeChart chart = ChartFactory.createBarChart3D(
    ^
    BarChart3DDemo2.java:87: cannot find symbol
    symbol : variable PlotOrientation
    location: class org.jfree.chart.demo.BarChart3DDemo2
    PlotOrientation.HORIZONTAL, // orientation
    ^
    BarChart3DDemo2.java:82: cannot find symbol
    symbol : variable ChartFactory
    location: class org.jfree.chart.demo.BarChart3DDemo2
    final JFreeChart chart = ChartFactory.createBarChart3D(
    ^
    BarChart3DDemo2.java:93: cannot find symbol
    symbol : class CategoryPlot
    location: class org.jfree.chart.demo.BarChart3DDemo2
    final CategoryPlot plot = chart.getCategoryPlot();
    ^
    BarChart3DDemo2.java:97: cannot find symbol
    symbol : class CategoryAxis
    location: class org.jfree.chart.demo.BarChart3DDemo2
    final CategoryAxis axis = plot.getDomainAxis();
    ^
    BarChart3DDemo2.java:98: cannot find symbol
    symbol : class CategoryLabelPositions
    location: class org.jfree.chart.demo.BarChart3DDemo2
    final CategoryLabelPositions p = axis.getCategoryLabelPositions();
    ^
    BarChart3DDemo2.java:100: cannot find symbol
    symbol : class CategoryLabelPosition
    location: class org.jfree.chart.demo.BarChart3DDemo2
    final CategoryLabelPosition left = new CategoryLabelPosition(
    ^
    BarChart3DDemo2.java:100: cannot find symbol
    symbol : class CategoryLabelPosition
    location: class org.jfree.chart.demo.BarChart3DDemo2
    final CategoryLabelPosition left = new CategoryLabelPosition(
    ^
    BarChart3DDemo2.java:101: cannot find symbol
    symbol : variable RectangleAnchor
    location: class org.jfree.chart.demo.BarChart3DDemo2
    RectangleAnchor.LEFT, TextBlockAnchor.CENTER_LEFT,
    ^
    BarChart3DDemo2.java:101: cannot find symbol
    symbol : variable TextBlockAnchor
    location: class org.jfree.chart.demo.BarChart3DDemo2
    RectangleAnchor.LEFT, TextBlockAnchor.CENTER_LEFT,
    ^
    BarChart3DDemo2.java:102: cannot find symbol
    symbol : variable TextAnchor
    location: class org.jfree.chart.demo.BarChart3DDemo2
    TextAnchor.CENTER_LEFT, 0.0,
    ^
    BarChart3DDemo2.java:103: cannot find symbol
    symbol : variable CategoryLabelWidthType
    location: class org.jfree.chart.demo.BarChart3DDemo2
    CategoryLabelWidthType.RANGE, 0.30f
    ^
    BarChart3DDemo2.java:105: cannot find symbol
    symbol : variable CategoryLabelPositions
    location: class org.jfree.chart.demo.BarChart3DDemo2
    axis.setCategoryLabelPositions(CategoryLabelPositions.replaceLeftPosition(p, left));
    ^
    BarChart3DDemo2.java:118: cannot find symbol
    symbol : class PrintStreamLogTarget
    location: class org.jfree.chart.demo.BarChart3DDemo2
    Log.getInstance().addTarget(new PrintStreamLogTarget());
    ^
    BarChart3DDemo2.java:118: cannot find symbol
    symbol : variable Log
    location: class org.jfree.chart.demo.BarChart3DDemo2
    Log.getInstance().addTarget(new PrintStreamLogTarget());
    ^
    BarChart3DDemo2.java:120: cannot find symbol
    symbol : method pack()
    location: class org.jfree.chart.demo.BarChart3DDemo2
    demo.pack();
    ^
    BarChart3DDemo2.java:121: cannot find symbol
    symbol : variable RefineryUtilities
    location: class org.jfree.chart.demo.BarChart3DDemo2
    RefineryUtilities.centerFrameOnScreen(demo);
    ^
    BarChart3DDemo2.java:122: cannot find symbol
    symbol : method setVisible(boolean)
    location: class org.jfree.chart.demo.BarChart3DDemo2
    demo.setVisible(true);
    ^
    44 errors

  • How to find the server connected from multiple switched netwtwork

    I have one server connected to distrubted switch or acces switch  in network .
    They were 45 switches in netwrok and need help how to find that server  connected switch  from  Core switch ?
    How many  mehtodes and process we can use to find that connected physical switch ?
    Thanks in advance !!!

    It's a bit of a tedious process. but if you ping the IP address of the server from the core switch and then check the ARP entry to get its MAC address, you can then trace the address tables in the switches to find the switch that the server is physically connected to. Once you have the MAC address, you'll have to check the address table in each switch in the path between the core and the server to find it.

  • How make my panel transparent?

    pleze help
    how make my background panel is transparent in awt

    Don't pay 300$ for that, just use JPanelThe OP specifically requested AWT, not Swing. If you're going to recommend mixing heavyweight and lightweight components, you should at least warn of the consequences. See here: [url http://java.sun.com/products/jfc/tsc/articles/mixing/]Mixing Heavy and Light Components

  • Help with MIDlets - TCP client server program

    Hi I am new to using MIDlets, and I wanted to create a simple TCP client server program.. I found a tutorial in J2me forums and I am able to send a single message from server(PC) to client(Phonemulator) and from client to server. But I want to send a stream of messages to the server. Here is my program and I am stuck in the last step wher i want to send lot of messages to server. Here is my program, Could any one of u tell me how to do it? Or where am i going wrong in thsi pgm?
    Code:
    import java.io.InputStream;
    import java.io.IOException;
    import java.io.OutputStream;
    import javax.microedition.io.Connector;
    import javax.microedition.io.SocketConnection;
    import javax.microedition.io.StreamConnection;
    import javax.microedition.lcdui.Alert;
    import javax.microedition.lcdui.AlertType;
    import javax.microedition.lcdui.Command;
    import javax.microedition.lcdui.CommandListener;
    import javax.microedition.lcdui.Display;
    import javax.microedition.lcdui.Displayable;
    import javax.microedition.lcdui.Form;
    import javax.microedition.lcdui.StringItem;
    import javax.microedition.lcdui.TextField;
    import javax.microedition.midlet.MIDlet;
    import javax.microedition.midlet.MIDletStateChangeExcepti on;
    public class SocketMIDlet extends MIDlet
    implements CommandListener, Runnable {
    private Display display;
    private Form addressForm;
    private Form connectForm;
    private Form displayForm;
    private TextField serverName;
    private TextField serverPort;
    private StringItem messageLabel;
    private StringItem errorLabel;
    private Command okCommand;
    private Command exitCommand;
    private Command backCommand;
    protected void startApp() throws MIDletStateChangeException {
    if (display == null) {
    initialize();
    display.setCurrent(addressForm);
    protected void pauseApp() {
    protected void destroyApp(boolean unconditional)
    throws MIDletStateChangeException {
    public void commandAction(Command cmd, Displayable d) {
    if (cmd == okCommand) {
    Thread t = new Thread(this);
    t.start();
    display.setCurrent(connectForm);
    } else if (cmd == backCommand) {
    display.setCurrent(addressForm);
    } else if (cmd == exitCommand) {
    try {
    destroyApp(true);
    } catch (MIDletStateChangeException ex) {
    notifyDestroyed();
    public void run() {
    InputStream is = null;
    OutputStream os = null;
    StreamConnection socket = null;
    try {
    String server = serverName.getString();
    String port = serverPort.getString();
    String name = "socket://" + server + ":" + port;
    socket = (StreamConnection)Connector.open(name, Connector.READ_WRITE);
    } catch (Exception ex) {
    Alert alert = new Alert("Invalid Address",
    "The supplied address is invalid\n" +
    "Please correct it and try again.", null,
    AlertType.ERROR);
    alert.setTimeout(Alert.FOREVER);
    display.setCurrent(alert, addressForm);
    return;
    try {
    // Send a message to the server
    String request = "Hello\n\n";
    //StringBuffer b = new StringBuffer();
    os = socket.openOutputStream();
    //for (int i=0;i<10;i++)
    os.write(request.getBytes());
    os.close();
    // Read the server's reply, up to a maximum
    // of 128 bytes.
    is = socket.openInputStream();
    final int MAX_LENGTH = 128;
    byte[] buf = new byte[MAX_LENGTH];
    int total = 0;
    while (total<=5)
    int count = is.read(buf, total, MAX_LENGTH - total);
    if (count < 0)
    break;
    total += count;
    is.close();
    String reply = new String(buf, 0, total);
    messageLabel.setText(reply);
    socket.close();
    display.setCurrent(displayForm);
    } catch (IOException ex) {
    Alert alert = new Alert("I/O Error",
    "An error occurred while communicating with the server.",
    null, AlertType.ERROR);
    alert.setTimeout(Alert.FOREVER);
    display.setCurrent(alert, addressForm);
    return;
    } finally {
    // Close open streams and the socket
    try {
    if (is != null) {
    is.close();
    is = null;
    } catch (IOException ex1) {
    try {
    if (os != null) {
    os.close();
    os = null;
    } catch (IOException ex1) {
    try {
    if (socket != null) {
    socket.close();
    socket = null;
    } catch (IOException ex1) {
    private void initialize() {
    display = Display.getDisplay(this);
    // Commands
    exitCommand = new Command("Exit", Command.EXIT, 0);
    okCommand = new Command("OK", Command.OK, 0);
    backCommand = new Command("Back", Command.BACK, 0);
    // The address form
    addressForm = new Form("Socket Client");
    serverName = new TextField("Server name:", "", 256, TextField.ANY);
    serverPort = new TextField("Server port:", "", 8, TextField.NUMERIC);
    addressForm.append(serverName);
    addressForm.append(serverPort);
    addressForm.addCommand(okCommand);
    addressForm.addCommand(exitCommand);
    addressForm.setCommandListener(this);
    // The connect form
    connectForm = new Form("Connecting");
    messageLabel = new StringItem(null, "Connecting...\nPlease wait.");
    connectForm.append(messageLabel);
    connectForm.addCommand(backCommand);
    connectForm.setCommandListener(this);
    // The display form
    displayForm = new Form("Server Reply");
    messageLabel = new StringItem(null, null);
    displayForm.append(messageLabel);
    displayForm.addCommand(backCommand);
    displayForm.setCommandListener(this);

    Hello all,
    I was wondering if someone found a solution to this..I would really appreciate it if u could post one...Thanks a lot..Cheerz

  • 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

  • Another Newbie, how can Mac OSX Server help my School?

    Hi all, the school where i work has just taken delivery of 11 brand new macs. 8 iMacs, 2 MBP's and a mini. What i'm interested to know and if anybody is just prepared to bullet point, is how we can really benefit from this software.
    Clearly it's going to be tricky administering 11 macs individually, so maybe sacrifice the mini to become the server. Heres some basic questions and if anybody has any other comments they can add from experience i can approach the school with my findings?
    1) Can multiple third party software installations be initiated. i.e. we have Adobe CS3 can a multiple install be initiated over the network or would all machines have to be updated individually.
    2) A big concern is storage, if a server is used can files be stored locally on the machines or would they have to be stored on the server, Xserve isn't on the cards unfortunately. Is it like a windows server where the profile is stored on the server and then just downloaded to the appropriate machine. For the meantime we ideally need to store locally or on firewire drives to keep storage issues to a minimum. It's no problem making students stick to the same mac if we can make this happen.
    3) Could backups be initiated from all machines to some sort of storage facility.
    4) I'm guessing it's easy to lock machines down, it seems very easy to do on standard OSX so i'm guessing it would be even easier on server.
    Being a school i would be grateful for any advice or recommendations on how administering this small network would be easiest done. I'm an experienced mac user but no in a network scenario, i am however keen to learn.
    Thanks in Advance

    Hi, I'll give a go at answering your questions.
    First, how tricky it will be to administer 11 macs individually truly depends on your users. I've setup offices where the employees were intelligent people who weren't interested in hacking around on their machines, they just did their work. All their user accounts had admin privileges (along with an admin account on each machine that only the appropriate people knew the password for) so they could easily change preferences and do updates, etc. I barely had a problem with them. If you have a group who are all into surfing naughty bits and bittorrenting and other things, then you'll need to lock them down. If you are going to lock them down, you can still do it without the aid of a server by having an admin account on each machine, but you will have to touch each machine periodically to install updates and such. If you do go with server, then you can manage a lot more centrally. By the nature of you having 11 machines and the limit of OS X client of only 10 file sharing connections at a time, you're almost forced into OS X Server and the Unlimited version at that.
    1) Yes you can initiate software installations simultaneously, but it will require you to capture and package those installations, and use something along the lines of FileWave, radmind, Apple Remote Desktop, etc. to perform the push. For the number of users you're dealing with, it's probably much easier to host the installer on the network, and screen control each system and run the install (along with entering the serial numbers for each one). Any future updates could be easily performed with a terminal script and access to the updater files.
    2) You can store your files anywhere you want, locally or on the server (or even on a NAS). Obviously it makes sense to host them on the server (or other central location) if they are collaborative files (ie., everyone works on them or needs to see them). Your question about the windows profiles doesn't make sense with the storage part, but you can choose how to run your server/client model. You can have roaming profiles where the users' home directories are stored on the server and they can login from any machine. Or you can have individual machines and the server only authenticates the user for access to mail/file/whatever services.
    3) Yes. Either by using Time Machine if it gets fixed in 10.5.2, Retrospect (which I don't trust and haven't for years), rsync (which is free and built into the OS and is cross platform so you could even back up Windows clients), or some other commercial client like PresSTORE.
    4) Yes, as I stated above you can lock down the client machines and of course server can be locked down to avoid people from messing it up.
    I know you mentioned an Xserve isn't an option, but how about a MacPro tower? In your situation, I would setup a MacPro with a single 2.8Ghz Quad core chip, Unlimited MacOS X Server, 2GB RAM, and 2 x 500 GB SATA drives for $3648 (cheaper if you get the drives from elsewhere). If there's the chance you could migrate other school services to the new server (email, websites, shared calendar, jabber server, etc.) you could upgrade the processor and memory (RAM can also be had cheaper from a 3rd party). You setup the two drives in a mirror RAID for fault protection and it would contain your OS and your file shares. Then get 2 external firewire drives, at least 500 GB each. Configure your network backups (and the server itself) to backup to an external drive, leave it attached for a week, and at the end of the week, eject the drive, disconnect it, and plug in the other drive (both should be named the same). Then take the first drive off-site (to another building on campus, etc.). Repeat every week. This gives you a rotating off-site backup. If even that is not an option, the mini could be the server, but you definitely want to max the RAM, and buy one of those nice mirrored RAID enclosures from OWC as your main drive, along with the 2 externals for rotating backup.
    I hope that's answered some of your questions, feel free to ask more if need be. May I ask where you are located? If by some amazing chance we're close by, I might be more of a help. Take care and good luck.
    Jeff

  • A gap between letters started to show in my indesgn files. tried to undo with tracking, the paragraph settings. nothing helped. it ruins the fluent view of the document. how can i restore the program so that doesn't happen?

    a gap between letters started to show in my indesign files. tried to undo with tracking, then with the paragraph settings. nothing helped. it ruins the fluent view of the document. how can i restore the program so that doesn't happen?
    for example: say i write a paragraph. then, in a weird some sort of way an involuntary gap suddenly appears between different letters of random words(i did not recognize any pattern to the gap appearing) throughout the entire paragraph. once i've double clicked on that paragraph, and made a minor change, lets say tapped a 'space' key, and then clicked ctrl+z to undo, it has aligned(or fixed) the entire paragraph and made it look ok again. i've tried numerous ways to undo the entire thing, but cannot find the reason. i've been working for a few years and there's no reason why this thing all of a sudden should happen right now.
    if anyone has stumbled on something like that and can advise, i would welcome it.
    MNS-KG
    Vadim

    yep...i'm typing with hebrew. i'll make a printscreen with the settings you've asked for@:
    if you look closely you'll see that almost every line has a single letter apart. in hebrew there is no usually a singe letter structured words.

Maybe you are looking for

  • How to create a workflow composite with the ability to upload a document in

    Hi, Is there any way to attach/upload a document while creating or modifying a user. I have a requirement where user will create a document(.xls/.csv/.doc) with his details and he needs to upload that document while updating the profile. If he is cre

  • Out put to Blu-Ray?

    I am finally ready to out put my 80 min. documentary to DVD for selling at film festivals. Do I go with Blue_Ray? If I do with the cheeper DVD will it be in HD? Do people without a Blu-Ray player get the benefit of a Blu-Ray disc?

  • Illustrator cs4

    I teach a graphic arts class grades 9-12. We are currently implementing Illustrator CS4 into our curriculum. I am (with limited success) learning it on the fly. We are using the Adobe Illustrator Classroom In A Book. I am finding that the students ne

  • Firefox is having trouble with flash video.

    When I watch flash video (usually Youtube), the video would play normally for a while. But then the picture would look weird and it would be impossible to watch. The only way to fix this is to restart the computer. This doesn't happen when I switch t

  • Multiple libraries with different desktop shortcuts

    I know that iTunes can boot from different libraries by holding Shift while starting. But is it possible to create a shortcut on desktop to open iTunes using a defined library (so I dont have to hold Shift while starting iTunes)? Like for instance I