[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to use send() in sockets for Octave

From: Nihar Ranjan Saha
Subject: How to use send() in sockets for Octave
Date: Mon, 30 Nov 2015 10:12:50 +0000 (UTC)

  Can you kindly help me in the steps to use the 'send' command for sending a UINT8 array in sockets for Octave. I'm using the following code, but I get the following error:
error: connect: invalid DATA to send.  Please format it prior to sending
error: called from
    gen_DACwaveform_v4 at line 8 column 1

My program is shown below:

close all

test = [1:20];
client = socket(AF_INET, SOCK_STREAM, 0);
server_info = struct("addr", "", "port", 7);
rc = connect(client, server_info);
send(rc, test);

Regards Nihar Ranjan Saha EMail: address@hidden

reply via email to

[Prev in Thread] Current Thread [Next in Thread]