سلام بر تمامی برنامه نویسان سی شارپ 😉 در این مطلب کد کار با سوکت و TcpClient: نوشتن رشته (string) در سرور در #C را آماده کردم. امیدوارم که این کد برای شما مفید باشد.
کد کار با سوکت و TcpClient: نوشتن رشته (string) در سرور در #C :
using System;
using System.Collections.Generic;
using System.Net.Sockets;
using System.Text;
public class MainClass
{
public static int Main()
{
string serverName = "localhost";
Console.WriteLine( "Connecting to {0}", serverName );
using System.Collections.Generic;
using System.Net.Sockets;
using System.Text;
public class MainClass
{
public static int Main()
{
string serverName = "localhost";
Console.WriteLine( "Connecting to {0}", serverName );