Register for your free account! | Forgot your password?

Go Back   elitepvpers > Silkroad Online > SRO Coding Corner
You last visited: Today at 18:07

  • Please register to post and access all features, it's quick, easy and FREE!

Difference between TCPListener and Socket.Listen?

Old   #1
elite*gold: 0
Join Date: Aug 2013
Posts: 23
Received Thanks: 2
Question Difference between TCPListener and Socket.Listen?

As the title says, -when it comes to sro- is there a difference between TCPListener and Socket.Listen?

ReviveSRO is offline  
Old 06/09/2018, 09:09   #2
elite*gold: 0
Join Date: Jan 2009
Posts: 220
Received Thanks: 423
TcpListener or TcpClient provide simpler methods for listening or connecting using the TCP.
Internally they're also using the Socket class, which in contrast also supports different protocols, such as UDP, making it more complicated to use for beginners as functions like Socket.ReceiveFrom are exclusively designed for UDP.
You kinda need to know what you're doing when using Socket.

The only thing relevant for Silkroad is the used protocol being TCP.

DaxterSoul is offline  
1 User
Old 06/09/2018, 09:38   #3
elite*gold: 0
Join Date: Aug 2013
Posts: 23
Received Thanks: 2
I see, so doesn't matter using either .. I will stick with Socket.Listen then ... thank you Daxter
ReviveSRO is offline  
Old 07/17/2018, 06:15   #4
elite*gold: 0
Join Date: May 2006
Posts: 474
Received Thanks: 198
looking at the metadata they are practically the same both inherit from class
tcpListener() is a wrapper for a more simple straight-forward stuff.
Socket.Listen() provides a lot more flexibility, that being said it tends to get more complex(not really).
Isoline* is offline  

« How do I encrypt the ASCII code | Static IP - Failed to Patch Error 2 »

Similar Threads
.net TCPListener.AcceptTCPClient Problem
10/25/2017 - .NET Languages - 3 Replies
Moin, ich möchte n server machen mit multi clients dazu brauch ich ja die tcplistener.acceptcpclient methode welche mir den letzten verbundenen client zurückliefert. Jo soweit so gut hab den code am start Nur ein problem... ES GIBT DIE METHODE BEI MIR NICHT Wisst ihr da weiter?
Difference Between Luck and Chance
02/01/2007 - CO2 Guides & Templates - 69 Replies
To be honest when people always say its 4/10 chance (or what ever) and it's then argued with, "No it's luck".. I wanna say what the F**K! For all those too stupid stupid to understand, here finally, the answer!! - When you say it will happen when you are lucky, that is when the chance that it will happen actually happens! Lets say for example: "The chance of these dropping a met is 1/150" "No it's luck" ^ EXACTLY U DUMB ASS
06/29/2006 - CO2 Main - Discussions / Questions - 4 Replies
LUCK! ALL LUCK! CRAZY SOBs! lol ROFFLE COPTER! THERE IS NO TRICK. >:o >:o >:o >:o >:o >:o >:o >:o >:o >:o :eek: :eek: :eek: :eek: :eek: :eek: :eek: :eek: :eek: :eek: All this stupid BS about Sockets is driving me crazy.. If anyone ever found out the TRUE "SECRET" it would not be posted on a PUBLIC forum... lol Silly noobs I know if i knew a socket "trick" i wouldnt share.. it would be bad for business! lol :ops: :ops: sorry i am nauseus :D :bandit:

All times are GMT +1. The time now is 18:07.

Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Abuse
Copyright ©2018 elitepvpers All Rights Reserved.