Questions tagged [system.net.sockets]

65 questions
0
votes
1 answer

Why am I getting IOException and SocketException while writing to NetworkStream?

I have a dll which connects me to a software, let's call it driver1. I have a java program which has to connect to driver1 and query its status. The dll provides me functions for connecting and querying the status. I wrote a c++ program which I gave…
rendar
  • 73
  • 1
  • 9
0
votes
1 answer

Simulate remote Robot movement

I am working on a assignment which has given by my tutor where he showed me a demo project which developed by using Java but i don't have any experience in java but i do have few experience in C# and i have to complete given requirement such…
mshiyam
  • 63
  • 2
  • 3
  • 10
-1
votes
2 answers

Is there a way to get tcp server to send responses other than echoing incoming messages?

I am obviously new to TCP servers. The code below works just fine - It "only" echoes the messages it receives. But my question is "simple": How can I send responses to my client - other than simply echoing the request as I do below? For instance, if…
user1836609
  • 75
  • 2
  • 10
-2
votes
1 answer

Starting a "new thread IsBackground = true "in Form2() and getting stuck in while(true) loop

I'm making a multithreaded chat server and chat client. The client has a Form1 called Login and a Form2 called MainProgram. The following code is from "Login". What I'm trying to do is transitioning from Login to MainProgram... MainProgram…
Adam
  • 1
  • 3
-4
votes
2 answers

Breaking a big class into smaller methods

I have difficulty breaking a class consisting of one method into smaller methods. I have a simple socket class that Initiate, send and receive a message in one step (one method). Now I would like to divide this into separate steps of Initialization,…
New User
  • 1
  • 2
1 2 3 4
5