{"payload":{"feedbackUrl":"https://github.com/orgs/community/discussions/53140","repo":{"id":701756083,"defaultBranch":"main","name":"sotochat","ownerLogin":"13dmcculloch","currentUserCanPush":false,"isFork":false,"isEmpty":false,"createdAt":"2023-10-07T13:16:08.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/142945292?v=4","public":true,"private":false,"isOrgOwned":false},"refInfo":{"name":"","listCacheKey":"v0:1697019083.0","currentOid":""},"activityList":{"items":[{"before":"778f52ed4e04be443919503b3573a586444a8d01","after":"0c5842d2378f2f95b47dbd67af37e023dd2ae02a","ref":"refs/heads/main","pushedAt":"2023-10-12T19:24:36.000Z","pushType":"push","commitsCount":3,"pusher":{"login":"13dmcculloch","name":"Douglas","path":"/13dmcculloch","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/142945292?s=80&v=4"},"commit":{"message":"\tmodified: README.md\nAdded some stuff to try to exit more cleanly by closing sockets etc.\nStill haven't dealt with the rogue message send child process on the\nserver.","shortMessageHtmlLink":"\tmodified: README.md"}},{"before":"cb9d884ace81a5a1d3053f5a9fedf5719b641502","after":"778f52ed4e04be443919503b3573a586444a8d01","ref":"refs/heads/main","pushedAt":"2023-10-11T11:16:41.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"13dmcculloch","name":"Douglas","path":"/13dmcculloch","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/142945292?s=80&v=4"},"commit":{"message":"\tmodified: src/client.c\n\tmodified: src/server.c\nAdded some signal handling.\nNeed to close sockets on exit. Error handling needed.","shortMessageHtmlLink":"\tmodified: src/client.c"}},{"before":"01e4db2e32c23719781cea92922c9dec0584476e","after":"cb9d884ace81a5a1d3053f5a9fedf5719b641502","ref":"refs/heads/main","pushedAt":"2023-10-11T10:50:52.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"13dmcculloch","name":"Douglas","path":"/13dmcculloch","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/142945292?s=80&v=4"},"commit":{"message":"\tmodified: src/server.c\nBack to address book method (works). Now need to exit cleanly by\nclosing open sockets and killing processes etc.","shortMessageHtmlLink":"\tmodified: src/server.c"}},{"before":"dc0399bff7920e998087b59a60c514d532077633","after":"adc2aae5fdbeb5b33ac028c034b7f354ee806793","ref":"refs/heads/client_fd","pushedAt":"2023-10-11T10:40:14.000Z","pushType":"push","commitsCount":2,"pusher":{"login":"13dmcculloch","name":"Douglas","path":"/13dmcculloch","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/142945292?s=80&v=4"},"commit":{"message":"\tmodified: src/server.c\nIt seems that the message process and parent process are only allowed\nto write to sockets that they themselves have created. Therefore,\ncreating a socket in a parent process and then trying to write to it in the\nchild process results in a \"bad file descriptor\" error from write().\n\nI show that this is the case by printing the file descriptors of the\nsockets belonging to the parent and the child at the start. The fd of\nthe \"receive messages\" socket in the child process is the same as\nthe fd of one of the parent sockets, suggesting that the two processes\nmay only operate on sockets that they themselves have created.\n\nThis means that I'll have to go back to the address book format for now.","shortMessageHtmlLink":"\tmodified: src/server.c"}},{"before":null,"after":"dc0399bff7920e998087b59a60c514d532077633","ref":"refs/heads/client_fd","pushedAt":"2023-10-11T10:11:23.000Z","pushType":"branch_creation","commitsCount":0,"pusher":{"login":"13dmcculloch","name":"Douglas","path":"/13dmcculloch","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/142945292?s=80&v=4"},"commit":{"message":"\tmodified: src/client.c\n\tmodified: src/server.c\nI am trying to bypass the address book and send client sockets straight\nto the message process. However, there are some issues with shared\nmemory initialisation, and there are lots of \"0\" file descriptors in the\nshm, which are causing issues of course.","shortMessageHtmlLink":"\tmodified: src/client.c"}},{"before":"8294b1b211420ffe3aa0cb7b8903280835d584d3","after":"01e4db2e32c23719781cea92922c9dec0584476e","ref":"refs/heads/main","pushedAt":"2023-10-09T20:27:08.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"13dmcculloch","name":"Douglas","path":"/13dmcculloch","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/142945292?s=80&v=4"},"commit":{"message":"\tmodified: src/server.c\nBack to basics... let's hope that I can work properly this time.\nNo spaghettifying all at once!\n\nNeed to check socket initialisation.","shortMessageHtmlLink":"\tmodified: src/server.c"}},{"before":"769c81dd4481c2bdc9161dcc11b9c73530875d7e","after":"8294b1b211420ffe3aa0cb7b8903280835d584d3","ref":"refs/heads/main","pushedAt":"2023-10-09T20:08:54.000Z","pushType":"force_push","commitsCount":0,"pusher":{"login":"13dmcculloch","name":"Douglas","path":"/13dmcculloch","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/142945292?s=80&v=4"},"commit":{"message":"\tmodified: inc/network_libs.h\n\tmodified: src/client.c\n\tmodified: src/server.c\nBasic two-way functionality achieved. Janky and buggy. Needs work.","shortMessageHtmlLink":"\tmodified: inc/network_libs.h"}},{"before":null,"after":"769c81dd4481c2bdc9161dcc11b9c73530875d7e","ref":"refs/heads/fd","pushedAt":"2023-10-09T17:38:24.000Z","pushType":"branch_creation","commitsCount":0,"pusher":{"login":"13dmcculloch","name":"Douglas","path":"/13dmcculloch","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/142945292?s=80&v=4"},"commit":{"message":"\tmodified: inc/server.h\n\tmodified: src/server.c\nMake -1 the empty fd!!!","shortMessageHtmlLink":"\tmodified: inc/server.h"}},{"before":"774f28633c34dc437a655d48368f750c727fc758","after":"769c81dd4481c2bdc9161dcc11b9c73530875d7e","ref":"refs/heads/main","pushedAt":"2023-10-09T15:46:27.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"13dmcculloch","name":"Douglas","path":"/13dmcculloch","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/142945292?s=80&v=4"},"commit":{"message":"\tmodified: inc/server.h\n\tmodified: src/server.c\nMake -1 the empty fd!!!","shortMessageHtmlLink":"\tmodified: inc/server.h"}},{"before":"a22112b6dfaf17c9076b0c9164720438a69851a6","after":"774f28633c34dc437a655d48368f750c727fc758","ref":"refs/heads/main","pushedAt":"2023-10-09T14:28:28.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"13dmcculloch","name":"Douglas","path":"/13dmcculloch","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/142945292?s=80&v=4"},"commit":{"message":"\tmodified: src/client.c\n\tmodified: src/network_libs.c\n\tmodified: src/server.c\nClient process handling. Still not receiving its own messages...","shortMessageHtmlLink":"\tmodified: src/client.c"}},{"before":"3356a3c8a9e30bfdcbf1c235578f7ec05d085e5d","after":"a22112b6dfaf17c9076b0c9164720438a69851a6","ref":"refs/heads/main","pushedAt":"2023-10-08T10:51:27.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"13dmcculloch","name":"Douglas","path":"/13dmcculloch","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/142945292?s=80&v=4"},"commit":{"message":"\tmodified: inc/Messages.h\n\tmodified: inc/network_libs.h\n\tmodified: src/client.c\n\tmodified: src/main.c\n\tmodified: src/server.c\nHad it working, but then spaghettified code and it's no longer working.\nNeed to sort out some of the issues. Don't want to go back to last\ncommit...","shortMessageHtmlLink":"\tmodified: inc/Messages.h"}},{"before":"cbd38ca46efc4f0167da1c32ffd25e027353f8dc","after":"3356a3c8a9e30bfdcbf1c235578f7ec05d085e5d","ref":"refs/heads/main","pushedAt":"2023-10-07T20:49:18.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"13dmcculloch","name":"Douglas","path":"/13dmcculloch","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/142945292?s=80&v=4"},"commit":{"message":"\tmodified: README.md","shortMessageHtmlLink":"\tmodified: README.md"}},{"before":"bf81700c01e0202c3d393e6cb2719c92d25f6a7c","after":"cbd38ca46efc4f0167da1c32ffd25e027353f8dc","ref":"refs/heads/main","pushedAt":"2023-10-07T20:46:15.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"13dmcculloch","name":"Douglas","path":"/13dmcculloch","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/142945292?s=80&v=4"},"commit":{"message":"\tmodified: README.md","shortMessageHtmlLink":"\tmodified: README.md"}},{"before":"b9c7d58a7ee88085e693620edf2cd87966e7152e","after":"bf81700c01e0202c3d393e6cb2719c92d25f6a7c","ref":"refs/heads/main","pushedAt":"2023-10-07T20:44:42.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"13dmcculloch","name":"Douglas","path":"/13dmcculloch","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/142945292?s=80&v=4"},"commit":{"message":"\tmodified: README.md","shortMessageHtmlLink":"\tmodified: README.md"}},{"before":"8294b1b211420ffe3aa0cb7b8903280835d584d3","after":"b9c7d58a7ee88085e693620edf2cd87966e7152e","ref":"refs/heads/main","pushedAt":"2023-10-07T20:35:20.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"13dmcculloch","name":"Douglas","path":"/13dmcculloch","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/142945292?s=80&v=4"},"commit":{"message":"\tmodified: src/server.c\nCheck whether we still get the `bind: connection in use` issue when\nconnecting from another address (we shouldn't: only one pair should\nbe supported per address anyway, because you can't have two users\nper address (with full functionality) on this server. The second user\nper address would be deaf because their incoming server would be\nunable to bind to the address of the first user.","shortMessageHtmlLink":"\tmodified: src/server.c"}},{"before":"9db8f03aba216d1abf79dfaafd6ad765c7210a81","after":"8294b1b211420ffe3aa0cb7b8903280835d584d3","ref":"refs/heads/main","pushedAt":"2023-10-07T19:48:49.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"13dmcculloch","name":"Douglas","path":"/13dmcculloch","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/142945292?s=80&v=4"},"commit":{"message":"\tmodified: inc/network_libs.h\n\tmodified: src/client.c\n\tmodified: src/server.c\nBasic two-way functionality achieved. Janky and buggy. Needs work.","shortMessageHtmlLink":"\tmodified: inc/network_libs.h"}},{"before":null,"after":"9db8f03aba216d1abf79dfaafd6ad765c7210a81","ref":"refs/heads/main","pushedAt":"2023-10-07T13:18:33.000Z","pushType":"branch_creation","commitsCount":0,"pusher":{"login":"13dmcculloch","name":"Douglas","path":"/13dmcculloch","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/142945292?s=80&v=4"},"commit":{"message":"\tnew file: LICENSE\n new file: README.md\n\tnew file: inc/Messages.h\n\tnew file: inc/client.h\n\tnew file: inc/network_libs.h\n\tnew file: inc/server.h\n\tnew file: makefile\n\tnew file: obj/placeholder\n\tnew file: src/Messages.c\n\tnew file: src/client.c\n\tnew file: src/main.c\n\tnew file: src/network_libs.c\n\tnew file: src/server.c\nRemaking albochat but with separate ports for up/down links.\nIt should simplify the program a lot and I could get it working.","shortMessageHtmlLink":"\tnew file: LICENSE"}}],"hasNextPage":false,"hasPreviousPage":false,"activityType":"all","actor":null,"timePeriod":"all","sort":"DESC","perPage":30,"cursor":"djE6ks8AAAADldRtvwA","startCursor":null,"endCursor":null}},"title":"Activity ยท 13dmcculloch/sotochat"}