PubSubServer's linux issues fixed

This commit is contained in:
Taha authored and John Colvin committed 2024-06-26 14:28:51 -04:00
1 parent 5cf7eacd82
commit c39fc70a64
53 files changed
+2915 -1464

No files matched your search

@@ -124,7 +124,14 @@ namespace bts {
public long publish_time_epoch_ms = DateTimeOffset.UtcNow.ToUnixTimeMilliseconds();
public byte[] data_to_publish;
public void sanity_check() {
Log.assert(!String.IsNullOrEmpty(tag_type));
Log.assert(!String.IsNullOrEmpty(tag));
Log.assert(!String.IsNullOrEmpty(connection));
}
public void serialize_into_str(Stream str) {
sanity_check();
BinaryWriter bw = new BinaryWriter(str);
bw.write_string_cpp(connection);
bw.write_string_cpp(publishing_app);