Skip to content

Commit

Permalink
Removed superfluous junk.
Browse files Browse the repository at this point in the history
  • Loading branch information
GavinHigham committed Oct 12, 2013
1 parent 693c9f3 commit c7d4260
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 33 deletions.
Binary file added Planets.pxm
Binary file not shown.
Empty file added brainoutput.txt
Empty file.
Binary file added braintest
Binary file not shown.
13 changes: 11 additions & 2 deletions braintest.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,11 @@ int main()
{
//Setup json objects
json_error_t *errors;
json_t *auth = json_object();
json_t *cfg = json_object();
json_t *braindata = json_object();
json_object_set(auth, "appName", json_string("TestFour"));
json_object_set(auth, "appKey", json_string("9f54141b4b4c567c558d3a76cb8d715cbde03096"));
json_object_set(cfg, "enableRawOutput", json_false());
json_object_set(cfg, "format", json_string("Json"));

Expand Down Expand Up @@ -52,11 +55,16 @@ int main()
//Get the socket size.
//getsockopt(fdsocket,SOL_SOCKET,SO_RCVBUF,(void *)&socket_size, &m);

char *cfg_string = json_dumps(cfg, 0);
char *cfg_string = json_dumps(cfg, 0);
char *auth_string = json_dumps(auth, 0);
/*
n = write(sockfd, auth_string, strlen(auth_string));
if (n < 0)
error("ERROR writing to socket");
*/
n = write(sockfd, cfg_string, strlen(cfg_string));
if (n < 0)
error("ERROR writing to socket");

sleep(2);
fp = fopen("brainoutput.txt", "a+");

Expand All @@ -80,5 +88,6 @@ int main()
fclose(fp);
close(sockfd);
free(cfg_string);
free(auth_string);
return 0;
}
1 change: 1 addition & 0 deletions jansson
Submodule jansson added at 24c679
22 changes: 0 additions & 22 deletions linkedlisttest.c

This file was deleted.

1 change: 1 addition & 0 deletions parson
Submodule parson added at a024f1
9 changes: 0 additions & 9 deletions random.c

This file was deleted.

0 comments on commit c7d4260

Please sign in to comment.