سلام بر تمامی برنامه نویسان #C 😉 در این مطلب کد کار با Socket:نمایش AddressFamily و SocketType و ProtocolType در سی شارپ را آماده کردم. انشاالله که این کد براتون مفید باشه.
خروجی کد به این صورت می باشد :
AddressFamily: InterNetwork
SocketType: Stream
ProtocolType: Tcp
SocketType: Stream
ProtocolType: Tcp
کد کار با Socket:نمایش AddressFamily و SocketType و ProtocolType در سی شارپ :
using System;
using System.Net;
using System.Net.Sockets;
class MainClass
{
public static void Main()
{
IPAddress ia = IPAddress.Parse("127.0.0.1");
IPEndPoint ie = new IPEndPoint(ia, 8000);
using System.Net;
using System.Net.Sockets;
class MainClass
{
public static void Main()
{
IPAddress ia = IPAddress.Parse("127.0.0.1");
IPEndPoint ie = new IPEndPoint(ia, 8000);