Jump to content
Xtreme .Net Talk

Using the WInsock Control in VB.NET


Recommended Posts

Guest jcvilla
Posted

I need some help in VB.NET regarding the WInsock Control. What happens is that I am making a very advanced messenger in VB6/C++ but then I decided to go to VB.NET but I have a problem with the winsock controll. I can make a client and a server and establish a connection but when I transmit data it executes the Winsock1_DataArrival event in the server but when i put "Winsock1.GetData (data)" it does nothing, it simply stops running the code as if nothing happened. I tryed alot of things, I tryed changing the Variable "Data" type string to type object and when I output it to a messagebox it saya "System.Byte[]". I would really apreciate some reply so that I can continue this messenger. On the meantime I am going to be searching around the Web seeking for answers.

 

You can contact me at jcvilla@coqui.net or g5trooper@coqui.net.

-Thanks

Guest jcvilla
Posted

I know that.

 

I know I am supposed to use the System.Net.Sockets and I already made the server and the client and I also found a way to use the winsock control. The thing is that I have a program that I already made in VB6 and it uses Winsock control so I converted it and I need to fix the problem, the problem is that like TcpListener what I am receving is in a byte Array which I need to convert to string in order to see the content. I already developed some code to do this and both methods work. Thanks anyways.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...