Aug 24, 2014 05:17 AM
(This post was last modified: Aug 24, 2014 05:19 AM by katetem.)
|
C#
[Socket] How do you think of this C# socket class? |
|
Code public void Send(String data)Eventually, this will lead to big problems. What if you need to send over a string that has "\r\n" inside of it? Format the packet differently.
slowly becoming less active, contact me on-site before dealing.
That is the most horrific socket class I've ever seen in my entire life. If I had more time I'd bottleneck it, but it's over 600 lines and over half of them has to be at least deleted or reconstructured. This could have been done much more simpler, but good to see you learning.
Aug 24, 2014 07:19 PM
(This post was last modified: Aug 24, 2014 07:19 PM by katetem.)
(Aug 24, 2014 02:00 PM)beta69 Wrote: That is the most horrific socket class I've ever seen in my entire life. If I had more time I'd bottleneck it, but it's over 600 lines and over half of them has to be at least deleted or reconstructured. This could have been done much more simpler, but good to see you learning. Could you point out wheres the problem instead of telling bulls? |
|
|


