swrap icon indicating copy to clipboard operation
swrap copied to clipboard

Example or compile guide

Open LucasGobbs opened this issue 5 years ago • 5 comments

It seems to me that this repository is no longer active. so I don't know if it would be interesting. Perhaps a compilation guide and a small example demonstrating how to use the interface could be placed

LucasGobbs avatar May 27 '20 00:05 LucasGobbs

No longer active? I did a pull request here not too long ago. An example demonstrating basic TCP send/receive wouldn't be too difficult. Give it a couple months and somebody (maybe me) will find the time to add it. Or look around for Unix socket tutorials, because this library works the same way.

On 2020-05-26 05:48 PM, LucasGobbs wrote:

It seems to me that this repository is no longer active. so I don't know if it would be interesting. Perhaps a compilation guide and a small example demonstrating how to use the interface could be placed

-- You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub [1], or unsubscribe [2].

Links:

[1] https://u15781542.ct.sendgrid.net/ls/click?upn=AqJ-2F-2ByL3-2BqJfLt-2FcyMbbzxN5B5V8qy-2F7TogFleMxIwXxq3g-2FXbWWo1TT5NKfuGpf7FmVmWrBqZPhuIPVKdbHVA-3D-3Do9F7_U31jt5HgHBh7k3Grc5s4l-2BPPmk9yZiH-2FItD7Ll9Eh7PSSbhCJYt29Ss3N4-2F7MNOzLWfFWLgmcZuaWtDsxtTXx-2B9JBxbUOC14hA6J-2B9QAVHm9GCvv6x-2FQu8b0LDaJ9ykFitU1qELWaOMZdnTGe4xrUAxN3ypKedhiMGpo-2BxPTmX9kiMsd6XblyQGUd9Z2cohKgPGWkMlEktm-2FuKZwQW3dQKt89Zosqb9O4Wa9e23EA2PhMYQ1qkBGQLwlrvUipLky62abZh9H2xSDQgW-2BRADKmcs18StZ0iLkFwjRrnDFb0k-3D [2] https://u15781542.ct.sendgrid.net/ls/click?upn=AqJ-2F-2ByL3-2BqJfLt-2FcyMbbz1VPHhCQn9jHAfLcGV-2BxI-2F97VjbBvORwNSn4-2BtlnGTxgnHFGuI0hL3YAFnO21cDAbOP3DJlRF-2F-2Bmexxgi55JemNRlKksc7MJ-2B1l0-2BdUNN3RHG5fXVmzeaLv309LRqu0DlQ-3D-3DiVi8_U31jt5HgHBh7k3Grc5s4l-2BPPmk9yZiH-2FItD7Ll9Eh7PSSbhCJYt29Ss3N4-2F7MNOzLWfFWLgmcZuaWtDsxtTXx-2B9JBxbUOC14hA6J-2B9QAVHm9GCvv6x-2FQu8b0LDaJ9ykFOXSoal33Afh5IyG-2FaIEntXoQPbvX6bm9IFnm1gtE5xzc5P2wtvQeKqvCaUHEvnTO0707IbXklhkPjD7J6si8msubwAhDzQClfwqHGpNkWs-2BRSclhTevIYeeq3dsRv-2F-2FnLNqHHmFs-2FO-2BYX22K2cc536sTrthGCV4Vaa-2Bek9g-2BPDo-3D

ghost avatar May 27 '20 00:05 ghost

so I'm sorry for the false assumption, I'm going to take a deeper look at it

LucasGobbs avatar May 27 '20 01:05 LucasGobbs

I wasn't trying to berate you, just being smug. I think I put a simple test case in one of the closed issues. It doesn't do anything though. I assume you're familiar with the STB libraries.

On 2020-05-26 06:06 PM, LucasGobbs wrote:

so I'm sorry for the false assumption, I'm going to take a deeper look at it

-- You are receiving this because you commented. Reply to this email directly, view it on GitHub [1], or unsubscribe [2].

Links:

[1] https://u15781542.ct.sendgrid.net/ls/click?upn=AqJ-2F-2ByL3-2BqJfLt-2FcyMbbzxN5B5V8qy-2F7TogFleMxIwXxq3g-2FXbWWo1TT5NKfuGpf2KKeF3m1ekUsZp84j3ZR51z-2Bx5VsT-2BdOcdyg0LzlVPg-3DJSEP_U31jt5HgHBh7k3Grc5s4l9DFzkDMdNRsiEQV84QI2jk3piZudrWka1cUD-2FnrSvPcxC011025LqMn-2Fb8qkOHnbkZWnuoeH2cWhytcgavG9VcgcKCxCAFkVBoE45FBjjtqDz-2FuP2SrZi7tG3Fr2lhl6sMGGHnorbhnbmc7yRjNuE16vk9irs515jQNp6pXTflL8gV09nGDDh00sCG8JoIYcaLKzAYuhLrC2IynYp76J2-2FS3fLRBPJ8diMZg8GAJIyuNTMhbH03h4FFGdG43dyAIaK-2FlWzvKmf-2FV5KH9Hp0n-2Bg-3D [2] https://u15781542.ct.sendgrid.net/ls/click?upn=AqJ-2F-2ByL3-2BqJfLt-2FcyMbbz1VPHhCQn9jHAfLcGV-2BxI-2F97VjbBvORwNSn4-2BtlnGTxgnHFGuI0hL3YAFnO21cDAbBOQivq5E-2FEYEbTbGEECALNvHjgshMNdKjR8PZzp7ie8XrUgYqN6bJGuU8KR4AaHkw-3D-3Df-ZP_U31jt5HgHBh7k3Grc5s4l9DFzkDMdNRsiEQV84QI2jk3piZudrWka1cUD-2FnrSvPcxC011025LqMn-2Fb8qkOHnbkZWnuoeH2cWhytcgavG9VcgcKCxCAFkVBoE45FBjjtqSvdyrwSCzNRgYaZ59vsgk9oc9arXOOOmWU2aMGORqK6ju9dzNIXquRpR9jsMMhf4BC6FfukPtVOw51TyCARtkSzYj-2BYIiWIcXg3870gmznogIHlMK9aXOhN9FJo8S4g9ibpRi1dDlnzRaNyHHQhFROZK3f2Wrw7AsERszcTPelI-3D

ghost avatar May 27 '20 01:05 ghost

"No longer active" can also be seen as stable and feature complete imo. swrap is awesome in its current form :D

r-lyeh avatar May 27 '20 09:05 r-lyeh

@r-lyeh is pretty much correct. A neat thing about small libraries like these is that they're usually complete at first release. Beyond that I simply maintain them, making adjustments as issues come up. Usually I'll also add new features if I think of any good ones, though I'm not actively working on any programming projects so new features or libraries are unlikely at the moment.

As for examples or compile guides. I guess I could add a boilerplate explanation to the header itself, but perhaps the better solution would be a test.c with some tests. Some of my other libraries already have that, and they all use the same conventions for header-only libraries.

The test in nibrans is a single compilation unit, so it uses LIBNAME_STATIC before including the header and then just uses it from there. For multiple compilation units you'd use LIBNAME_IMPLEMENTATION in one and just include the header in others like a normal header (since LIBNAME_EXTERN is implied you don't need to specify it).

BareRose avatar May 27 '20 09:05 BareRose