|
-
Jun 10th, 2002, 09:46 AM
#1
Thread Starter
New Member
Winsock Problems in .NET?
For some unknown reason vb.NET decides that each time I send a certain set of characters via the .SendData it will "lose" the IP.
Here's a bit of background:
I'm connecting via UDP
Remote port is variable (27015 for example)
Local port is bound to 554
I can send everything EXCEPT the characters I need to send to initiate the connection, "ÿÿÿÿ" <---ByteCode minus the quotes.
The code is nothing more than
PHP Code:
---sub for connect seq------
wskRCon.RemoteHost = txtIP.Text
wskRCon.RemotePort = txtPort.Text
wskRCon.Bind(554)
sendchallenge
----sendchallenge sub-------
wskRCon.SendData(ByteCode & "challenge rcon")
I even setup a message box to see if it lost the IP before or after I sent the ByteCode. Its always after. Like I said, I can send ANYTHING but the ÿÿÿÿ. This code had worked in VB6 with no probs (much like everything else). Any ideas?
-
Jun 10th, 2002, 09:49 AM
#2
winsock is obsolete..look into the System.Net.Sockets classes for info on udp and tcp communications.
-
Jun 10th, 2002, 09:57 AM
#3
Thread Starter
New Member
Originally posted by Cander
winsock is obsolete..look into the System.Net.Sockets classes for info on udp and tcp communications.
DOH!
That's not what I wanted to hear. I'm starting to not like .NET. All this extra stuff to learn. Ugh.
Thanks for the info though........
Know of any good tutorials?
-
Jun 10th, 2002, 10:01 AM
#4
I dont have any specific links..but if you goto
http://www.planet-source-code.com
and goto the .NET section, you can search for tcp and or socket
and you will find plenty of examples there.. one of em is from me Chris Andersen..but dont use that one as there are some errors i just never got around to fixing.. :P
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|