Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
F

FlyOnIT

@FlyOnIT
About
Posts
10
Topics
4
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Packaging Setup Files in a single File [modified]
    F FlyOnIT

    Use Inno Setup

    C# help tutorial question announcement workspace

  • How to Check when a computer is connected to internet
    F FlyOnIT

    Yes, but the problem isn't this. I need know where a computer is connected, how can i check it? checking with this method every second with a timer?

    C# question tutorial

  • HttpWebRequest + CookieContainer
    F FlyOnIT

    I'd like to use an Async. HttpWebRequest for my application (because, i have a long loop and my GUI seem to freeze) but i have to pass a CookieContainer and retrieve it from each request, how can i do? someone can do an example? i can't find anything on the net with Cookies, thank you

    C# question tutorial

  • How to detect Attempt to connect?
    F FlyOnIT

    I need detect it, or at least know when the computer is connected, i think i can use wininet, but how? adding a timer and check if it's connected every second?

    C# tutorial question

  • How to Check when a computer is connected to internet
    F FlyOnIT

    I read about wininet.dll, but i'd like to know if a computer is connected as soon as is connected, how can i know it? i thought using a timer, but i don't think it's a good idea..

    C# question tutorial

  • Help - Send a File via Socket
    F FlyOnIT

    Please someone can help me?

    C# sysadmin help tutorial

  • Help - Send a File via Socket
    F FlyOnIT

    Ok, here is the Code, what's wrong? //Client Side FileStream fstream = File.Open(txtPathFile.Text, FileMode.Open); byte[] buffer = new byte[fstream.Length]; fstream.Read(buffer, 0, buffer.Length); fstream.Close(); Send("$UploadFile," + NameFileUpload.Remove(0, NomeFileUpload.ToString().LastIndexOf(@"\")).Remove(0, 1) + "," + buffer.Length + "|"); s.Send(buffer); //Server Side else if (data.StartsWith("$UploadFile")) { string[] b = data.Split(','); string nameFile = b[1]; string size = b[2]; byte[] buffer = new byte[Int32.Parse(size)]; sock1.Receive(buffer); File.WriteAllBytes(@"C:\" +nameFile, buffer); }

    C# sysadmin help tutorial

  • Help - Send a File via Socket
    F FlyOnIT

    Ok, here is the Code, what's wrong? //Client Side FileStream fstream = File.Open(txtPathFile.Text, FileMode.Open); byte[] buffer = new byte[fstream.Length]; fstream.Read(buffer, 0, buffer.Length); fstream.Close(); Send("$UploadFile," + NameFileUpload.Remove(0, NomeFileUpload.ToString().LastIndexOf(@"\")).Remove(0, 1) + "," + buffer.Length + "|"); s.Send(buffer); //Server Side else if (data.StartsWith("$UploadFile")) { string[] b = data.Split(','); string nameFile = b[1]; string size = b[2]; byte[] buffer = new byte[Int32.Parse(size)]; sock1.Receive(buffer); File.WriteAllBytes(@"C:\" +nameFile, buffer); }

    C# sysadmin help tutorial

  • Help - Send a File via Socket
    F FlyOnIT

    I'm having problem in the Server Side; How do i receive the file? and if i need the extension of the file, i have to send it with the client? and then how do i retrieve it? Thanks else if (data.StartsWith("$UploadFile")) { }

    C# sysadmin help tutorial

  • Help - Send a File via Socket
    F FlyOnIT

    I have a Client and a Sever, i connect the client to the server via Socket, now i'd like to send a file from the Client to the Server, i read about Socket.SendFile(fileName), but can't find how, from the server i have to receive the file using it (sendfile) in the client, i'd like to see an example, thank you!

    C# sysadmin help tutorial
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups