Boggo
❔ 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
❔ 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
❔ 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
❔ 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
❔ 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