Ang619
Ang619
CC#
Created by Ang619 on 7/4/2023 in #help
❔ my socket changes his connected attribute to false right after i sucessfully received data :(
Unfortunetly that didnt help, i am still trying to solve this somehow
11 replies
CC#
Created by Ang619 on 7/4/2023 in #help
❔ my socket changes his connected attribute to false right after i sucessfully received data :(
Gotta try that. Ty
11 replies
CC#
Created by Ang619 on 7/4/2023 in #help
❔ my socket changes his connected attribute to false right after i sucessfully received data :(
Unfortunatly not..
11 replies
CC#
Created by AceChewy on 7/4/2023 in #help
❔ Next Steps
@acechewy I am a beginner myself so i cant really help you. Blazor comes to my mind, but i think thats too complicated for your current state.
12 replies
CC#
Created by AceChewy on 7/4/2023 in #help
❔ Next Steps
Or If you have a listbox you can do something like: "UserListBox.Items.Add("Simon");
12 replies
CC#
Created by AceChewy on 7/4/2023 in #help
❔ Next Steps
Just to get you started: When you created a textbox for example with drag and drop, you can right click that textbox and go to properties. There, you should change its name to something useful like "FirstNameTextBox". Then, you can acess it for example like that: "FirstNameTextBox.Text = "Michael";
12 replies
CC#
Created by AceChewy on 7/4/2023 in #help
❔ Next Steps
Maybe jump into windows forms , there you can build your first graphical userface with drag and drop , and then use your learned c#skills to build cool stuff. When you create a project, dont select console application, select windows forms app. You will find the drag and drop elements under view - show toolbox. Try to build a calculator with an User Interface there.
12 replies
CC#
Created by Ang619 on 7/4/2023 in #help
❔ my socket changes his connected attribute to false right after i sucessfully received data :(
I just wonder if that would help me? Because once the socket changes his attribute to connected = false, i cant receive any more messages. A heartbear would be cool to check if users are indeed still online, but i dont think that helps with my problem :/ Right now the server simply removes a client, when it cant send a message to him because the socket is not connected anymore or similar. I already checked if the server removes the client, but thats not the case. I dont get why the socket suddenly disconnects at the client side.
11 replies
CC#
Created by Nurglini on 7/3/2023 in #help
❔ Live USB/Wireless Video Access Help
I am a beginner myself, so take my answer with caution. Basically a video are many frames (pictures) per second. You could send this pictures through the Sockets via TCP Stream. Something like Socket socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp); You could then send it in a Loop something like
while(true){
code...
socket.SendAsync(...)}
while(true){
code...
socket.SendAsync(...)}
3 replies
CC#
Created by Ang619 on 7/3/2023 in #help
I never reach the return, and i dont know why?
I will take a good look at this in the evening. Looks really good on the first look
20 replies
CC#
Created by Shiv on 7/3/2023 in #help
❔ Multiple Read and write to an excel file simultaneously C#
This sounds good
19 replies
CC#
Created by Ang619 on 7/3/2023 in #help
I never reach the return, and i dont know why?
oh its when i call the task on my application.
var discovery = new ChatroomsDiscovery();
chatroomList = await discovery.StartDiscoveryAsync();
var discovery = new ChatroomsDiscovery();
chatroomList = await discovery.StartDiscoveryAsync();
But when i think about it, the delay really doesnt do anything. Need to think about it for a sec.
20 replies
CC#
Created by Ang619 on 7/3/2023 in #help
I never reach the return, and i dont know why?
That helped a lot. I changed await chatroomList = await discovery.StartDiscoveryAsync(); into chatroomList = await discovery.StartDiscoveryAsync(); That did the trick. Thank you really much.
20 replies
CC#
Created by Ang619 on 7/3/2023 in #help
I never reach the return, and i dont know why?
Okay thanks for the responses. I will further think about it and try your solutions
20 replies
CC#
Created by Shiv on 7/3/2023 in #help
❔ Multiple Read and write to an excel file simultaneously C#
I dont know it fore sure but they definetly use Databases.
19 replies
CC#
Created by Shiv on 7/3/2023 in #help
❔ Multiple Read and write to an excel file simultaneously C#
I am no expert, but as far as i know when working with some "external" device (network adapter, USB, printer), then you need to work async. In your case you work with the network adapter, so you need to use async or your program will freeze. If multiple users exist, i also think you need threads or task on the network side, so it can handle multiple users
19 replies
CC#
Created by Ang619 on 7/3/2023 in #help
Socket Exception when creating a UDP client, and i dont know why :(
I found the solution to my problem: I changed _udpClient = new UdpClient(_discoveryPort); to
_udpClient = new UdpClient();
_udpClient.EnableBroadcast = true;
_udpClient = new UdpClient();
_udpClient.EnableBroadcast = true;
Then later i can use it like that await _udpClient.SendAsync(discoveryMessage, discoveryMessage.Length, new IPEndPoint(IPAddress.Broadcast, _discoveryPort));
24 replies
CC#
Created by Ang619 on 7/3/2023 in #help
Socket Exception when creating a UDP client, and i dont know why :(
Unfortunatly i cant do that. The application should communicate on a specific port.
24 replies
CC#
Created by Ang619 on 7/3/2023 in #help
Socket Exception when creating a UDP client, and i dont know why :(
Cause once i dont start the server, my discovery code works as intended. I tried to open one instance by clicking the .exe in the windows folder, and start another instance from VS, but then the error still occurs. I need to further think about this.
24 replies
CC#
Created by Ang619 on 7/3/2023 in #help
Socket Exception when creating a UDP client, and i dont know why :(
Your solution unfortunatly didnt solve my problem. But i think i found out what causes the problem: Both the client side and the server side are unfortunatly in the same project. When the server is running, the server EndPoint seems to reserve the port on which it listens for incoming clients.
24 replies