Esempio n. 1
0
 private long httpUpload(fastCSharp.net.tcp.commandServer.socket client)
 {
     fastCSharp.code.cSharp.tcpBase.httpPage httpPage = client.HttpPage;
     foreach (fastCSharp.net.tcp.http.requestForm.value file in httpPage.Form.Files)
     {
         if (file.SaveFileName == null)
         {
             return(file.Value.Count);
         }
         FileInfo fileInfo = new FileInfo(file.SaveFileName);
         long     length   = fileInfo.Length;
         fileInfo.Delete();
         File.Delete(file.SaveFileName);
         return(length);
     }
     return(long.MinValue);
 }
Esempio n. 2
0
 private bool setSession(fastCSharp.net.tcp.commandServer.socket client, string value)
 {
     fastCSharp.code.cSharp.tcpBase.httpPage httpPage = client.HttpPage;
     return(httpPage.SetSession(value));
 }
Esempio n. 3
0
 private string getSession(fastCSharp.net.tcp.commandServer.socket client)
 {
     fastCSharp.code.cSharp.tcpBase.httpPage httpPage = client.HttpPage;
     return(httpPage.GetSession <string>());
 }
Esempio n. 4
0
 private void setCookie(fastCSharp.net.tcp.commandServer.socket client, string name, string value)
 {
     fastCSharp.code.cSharp.tcpBase.httpPage httpPage = client.HttpPage;
     httpPage.SetCookie(new net.tcp.http.cookie(name, value));
 }