Boggo
Boggo
CC#
Created by Boggo on 3/15/2023 in #help
❔ multiple Async responses
So im trying to use async for the first time, i am making a few api requests one after the other, the issue is that the order gets mixed up since the requests are being made asynchronously. I need a way of ensuring the order is enforced
94 replies
CC#
Created by Boggo on 3/14/2023 in #help
❔ ListBox Text OverFlow
I am using a list box to store messages on a message app. However if a message is of a certain length it will overflow and go off screen, i want to either enable some form of multi line?
2 replies
CC#
Created by Boggo on 3/13/2023 in #help
❔ Client-Server Encryption
Whats the best way to encrypt data sent from a client to server --> server to client?
26 replies
CC#
Created by Boggo on 3/12/2023 in #help
❔ Cross Thread synchronization of locks
In over my head, I am trying to use a lock to pause some code on one thread, and i want to release (Monitor.Exit()) from another thread. How do i synchronise this?
153 replies
CC#
Created by Boggo on 3/11/2023 in #help
❔ Auto Properties
4 replies
CC#
Created by Boggo on 3/9/2023 in #help
❔ Hosting a server
I am currently hosting a server on local network, the server is console app running c#. I want to be able to connect from elsewhere. Whats the best approach to this? I have in mind hosting somewhere or setting up my wifi with some portforwarding stuff?
32 replies
CC#
Created by Boggo on 3/9/2023 in #help
❔ Wait until Queue isnt empty
The obvious solution would be to run an infinite loop with an if condition, but this hardly seems an effective solution. Is there a way to pause the program until the queue has some data in it?
9 replies
CC#
Created by Boggo on 2/18/2023 in #help
❔ Client-Server Model
So im hosting a server locally on 127.0.0.1 so currently i can only connect to it from my own computer. If i want to be able to access it from anywhere assuming its running, how can i do this?
4 replies
CC#
Created by Boggo on 2/16/2023 in #help
❔ 2D Dictionary
i'm wondering if it would be possible to create a 2d Dictionary of sorts where it would look something like: Dictionary<key, Dictionary<key, value>>. Context is each server should have a dictionary of clients, with an associated tcpClient value.
9 replies
CC#
Created by Boggo on 2/15/2023 in #help
❔ labelling data types in packet headers
So im sending a packet over a network stream, wanting to add the packet type to the header, but how do i do this. Do i add it as a string then use a switch statement on the server side to determine what to cast it to? This seems inefficient.
3 replies
CC#
Created by Boggo on 2/14/2023 in #help
❔ Sizing of Byte Arrays
So im sending byte arrays over a network stream, the byte arrays represent objects of various types. I am wondering how best to assign a size to the byte array when recieving it, should it be done dynamically in each case somehow? or does it not matter if the end of the byte array is empty?
25 replies
CC#
Created by Boggo on 2/7/2023 in #help
❔ Basic Networking
On client side of a client-server model. Is it best to globally define a tcp Client and network stream and keep this open, flushing after operations. or to open and close a network stream locally each time its required?
2 replies
CC#
Created by Boggo on 1/25/2023 in #help
❔ Image.FromStream
i have this code (below) that im 99% sure was working before, now testing again is giving an error thrown my the Image.FromStream Class
15 replies
CC#
Created by Boggo on 1/25/2023 in #help
✅ Binary Formatter
What is better practice to use rather than binary formatter? VS tells me its obsolete
26 replies
CC#
Created by Boggo on 1/17/2023 in #help
✅ Best way to get a response from an API
Needing to get a small image from an API response, im aware of multiple ways of doing this, is it best practice to use webclient or something like HttpWebRequest?
6 replies
CC#
Created by Boggo on 1/17/2023 in #help
❔ DataGridView Buttons
So I'm trying to put some data from a database into a DGV, i wish to have a button as the last column which would be clickable etc. I am populating the DGV with a datatable so how can i add this button?
2 replies