comment envoyer un socket C#
C#
// Establish the local endpoint for the socket.
IPHostEntry ipHost = Dns.GetHostEntry(Dns.GetHostName());
IPAddress ipAddr = ipHost.AddressList[0];
IPEndPoint ipEndPoint = new IPEndPoint(ipAddr, 11000);
// Create a TCP socket.
Socket client = new Socket(AddressFamily.InterNetwork,
SocketType.Stream, ProtocolType.Tcp);
// Connect the socket to the remote endpoint.
client.Connect(ipEndPoint);
// There is a text file test.txt located in the root directory.
string fileName = "C:\\test.txt";
// Send file fileName to remote device
Console.WriteLine("Sending {0} to the host.", fileName);
client.SendFile(fileName);
// Release the socket.
client.Shutdown(SocketShutdown.Both);
client.Close();
Also in C#:
- Title
- pop up element from specific index in array
- Category
- C#
- Title
- if else statement
- Category
- C#
- Title
- c# typeof
- Category
- C#
- Title
- c# string list contains
- Category
- C#
- Title
- c# mailmessage set sender name
- Category
- C#
- Title
- how to reduce garbage collection c#
- Category
- C#
- Title
- __dopostback
- Category
- C#
- Title
- unity how to check object position
- Category
- C#
- Title
- c# how to initialize an array
- Category
- C#
- Title
- how to hide a panel ui unity
- Category
- C#
- Title
- c# null conditional
- Category
- C#
- Title
- c# length 2d array
- Category
- C#
- Title
- c# add object to array
- Category
- C#
- Title
- c# reverse array
- Category
- C#
- Title
- c sharp split by newline
- Category
- C#
- Title
- how to put double quotes in a string c#
- Category
- C#
- Title
- countdown script unity
- Category
- C#
- Title
- jumping with character controller unity
- Category
- C#
- Title
- convert array to list Unity C#
- Category
- C#
- Title
- application variable in asp.net core
- Category
- C#
- Title
- dynamic convert type c#
- Category
- C#
- Title
- generate a dropdown list from array data using razor .net mvc
- Category
- C#
- Title
- initialize enum with another enum c#
- Category
- C#
- Title
- example HttpClient c# Post
- Category
- C#
- Title
- install .net sdk ubuntu 20
- Category
- C#
- Title
- unity change tag in script
- Category
- C#
- Title
- roulette algorithm genetic algorithm
- Category
- C#
- Title
- console application in c# ms crm
- Category
- C#
- Title
- how to sort string array alphabetically in c#
- Category
- C#
- Title
- c list add element
- Category
- C#
- Title
- isInstanceOf nunit
- Category
- C#
- Title
- unity get data from firebase
- Category
- C#
- Title
- Category
- C#
- Title
- blazor display validation message
- Category
- C#
- Title
- c# replace string case insensitive
- Category
- C#
- Title
- C# .net core convert int to enum
- Category
- C#
- Title
- c# linq to get most recent item from IList
- Category
- C#
- Title
- where keyword in c#
- Category
- C#
- Title
- csharp check if env is development
- Category
- C#
- Title
- unity print to console
- Category
- C#
- Title
- declare string array c# without size
- Category
- C#
- Title
- asp.net core 3.1: cast jObject to dictionary<string,string>
- Category
- C#
- Title
- rotate player unity
- Category
- C#
- Title
- visual studio c# mark class deprecated
- Category
- C#
- Title
- beard styles without mustache Intitle:work with me
- Category
- C#
- Title
- C# resize window without title bar
- Category
- C#
- Title
- c# linq select from object list
- Category
- C#
- Title
- unity mobile controls
- Category
- C#
- Title
- how to run csharp in visual studio code
- Category
- C#
- Title
- c# make string null
- Category
- C#
- Title
- c# new list object
- Category
- C#
- Title
- what is using static in c#
- Category
- C#
- Title
- wpf make size fill all grid
- Category
- C#
- Title
- load information with txt file to uwp c#
- Category
- C#
- Title
- Assets\playermove.cs(30,37): error CS1003: Syntax error, ',' expected
- Category
- C#
- Title
- c sharp add item to dictionary
- Category
- C#
- Title
- iformfile blobclient
- Category
- C#
- Title
- how to convert string to bool c#
- Category
- C#
- Title
- lazy loading c#
- Category
- C#
- Title
- how to insert into a list c#
- Category
- C#
- Title
- asp.netcore: develop on win10 run on ubuntu
- Category
- C#
- Title
- unity how to change text in script
- Category
- C#
- Title
- C# Cast double to float
- Category
- C#
- Title
- unity prevent system from creation
- Category
- C#
- Title
- jump script unity 2d
- Category
- C#
- Title
- csharp datetime string format
- Category
- C#
- Title
- condition when a animation finishes in unity
- Category
- C#
- Title
- Request.Form
- Category
- C#
- Title
- object escape player unity
- Category
- C#
- Title
- c# float to string
- Category
- C#
- Title
- c# reflection create generic type
- Category
- C#
- Title
- c# listview
- Category
- C#
- Title
- background color with opacity
- Category
- C#
- Title
- unity clamp rotation
- Category
- C#
- Title
- c# arraylist
- Category
- C#
- Title
- c# keyboard enter
- Category
- C#
- Title
- How to search for a string from readline in c#
- Category
- C#
- Title
- assign datasource to dropdownlist in c#
- Category
- C#
- Title
- Celsius to Fahrenheit c#
- Category
- C#
- Title
- Unity if object doens't exist
- Category
- C#
- Title
- c# long to int
- Category
- C#
- Title
- dto and automapper
- Category
- C#
- Title
- c# query string builder
- Category
- C#
- Title
- c# expandoobject indexer
- Category
- C#
- Title
- unity how to see what scen you are in
- Category
- C#
- Title
- loops in coding
- Category
- C#
- Title
- winforms c# add data to datagridview with a button
- Category
- C#
- Title
- override Microsoft.AspNetCore.Authorization.AuthorizeAttribute
- Category
- C#
- Title
- c# ienumerable to list
- Category
- C#
- Title
- c# udpclient receive buffer size
- Category
- C#
- Title
- razor: show editable list
- Category
- C#
- Title
- freeze position unity c#
- Category
- C#
- Title
- c# format string to date yyyymmdd
- Category
- C#
- Title
- null coalescing operator c#
- Category
- C#
- Title
- unity gameobjects with tag
- Category
- C#
- Title
- c# while loop
- Category
- C#
- Title
- viewBag as a list
- Category
- C#
- Title
- c# rsa example
- Category
- C#
- Title
- The CodeDom provider type "Microsoft.CodeDom.Providers.DotNetCompilerPlatform.CSharpCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=2.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" could not be located.
- Category
- C#
- Title
- trello
- Category
- C#