help-octave
[Top][All Lists]
Advanced

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

Help with socket package


From: Markus Bergholz
Subject: Help with socket package
Date: Tue, 7 May 2013 00:38:51 +0200


I try to connect to a redis db server.

address@hidden ~]$ octave
GNU Octave, version 3.6.3
...

octave:1> pkg load sockets
octave:2> redis=socket(AF_INET, SOCK_STREAM, 0);
octave:3> redis_info=struct("addr", "127.0.0.1", "port", 6379);
octave:4> r=connect(redis, redis_info);
octave:5> rset='set test 1'
rset = set test 1
octave:6> send(r,rset)
panic: Segmentation fault -- stopping myself...
attempting to save variables to `octave-core'...
error: octave_base_value::save_binary(): wrong type argument `octave_socket'
save to `octave-core' complete
Speicherzugriffsfehler (Speicherabzug geschrieben)
address@hidden ~]$

I'm not sure if the connection has worked or not. r has a value of 0 after octave:4> 
Anyone of you have an idea?
Or know my mistake?
Or has already communicate successful with redis?

greetings,
markus

reply via email to

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