Ximo
unread,Jul 29, 2011, 7:06:56 AM7/29/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to freemat-devel
Hi!
We are moving our teaching programs from Matlab to FreeMat and I had
to create some scripts and a Library that I think can be useful to
someone else:
- A simple "atof" function, similar to strnum.
- A simple "strsplit" function, that separates a string into a
cellarray, using blanks as separators.
- The library is a "simple" network interface to TCP and UDP using
"import" command. Here are the headers of the library:
int udp_send(char *data, int tam, int dest_port, char *ip);
int udp_recv(char *data, int tam, int port);
int tcp_connect(char *host, int port);
int tcp_disconnect(int fd);
int tcp_recv(int fd, char *buf, int max_tam);
int tcp_send(int fd, char *buf, int tam);
char tcp_getchar(int fd);
void tcp_ungetchar();
int tcp_readline(int fd, char *buf, int max_tam);
Is this useful for anyone?
It seems that google groups is not very friendly with attachments. Is
there any place to release the code?
Greetings!
Ximo