ByRef vs ByVal Clarification
I'm just starting on a class to handle client connections to a TCP server. Here is the code I've written thus far: Imports System.Net.Sockets Imports System.Net Public Class Client Private _Socket As Socket Public Property Socket As Socket Get Return _Socket End Get Set(ByVal value As Socket) _Socket = value End Set End Property Public Enum State RequestHeader ''#Waiting for, or in the process of receiving, the request header ResponseHeader ''#Sending the response header Stream ''#Setup is complete, sending regular stream End Enum Public Sub New() End Sub Public Sub New(ByRef Socket As Socket)