<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>Advogato blog for miconof</title>
    <link>http://www.advogato.org/person/miconof/</link>
    <description>Advogato blog for miconof</description>
    <language>en-us</language>
    <generator>mod_virgule</generator>
    <pubDate>Sat, 11 Oct 2008 06:10:00 GMT</pubDate>
    <item>
      <pubDate>Tue, 23 Nov 2004 16:02:31 GMT</pubDate>
      <title>23 Nov 2004</title>
      <link>http://www.advogato.org/person/miconof/diary.html?start=8</link>
      <guid>http://www.advogato.org/person/miconof/diary.html?start=8</guid>
      <description>New Major feature enhancements of RedCap&lt;br&gt;
&lt;br&gt;
You can now summarize downloads.&lt;br&gt;
&lt;br&gt;
When a transfer is not finished, the partial files are named my_file.hpf.&lt;br&gt;
&lt;br&gt;
The task interface now includes facilities to stop a transfer with "stop_task", cancel a transfer and remove the file with "cancel_task", and remove a transfer which is finished or stopped with "delete_task".&lt;br&gt;
&lt;br&gt;
You can create a local directory with "lmkdir" and remove a local file with "lrm".&lt;br&gt;
&lt;br&gt;
A display bug in the "preview" feature was reviewed.&lt;br&gt;
A conversion bug for small file sizes was corrected.&lt;br&gt;
Two things in the agreement display were changed, and now "agree" and "disagree" are in lowcase.&lt;br&gt;
&lt;br&gt;
&lt;a href="http" ://freshmeat.net/projects/redcap/&gt;freshmeat.net/projects/redcap/&lt;/a&gt;</description>
    </item>
    <item>
      <pubDate>Sat, 6 Nov 2004 08:22:06 GMT</pubDate>
      <title>6 Nov 2004</title>
      <link>http://www.advogato.org/person/miconof/diary.html?start=7</link>
      <guid>http://www.advogato.org/person/miconof/diary.html?start=7</guid>
      <description>Add a new branch on freshmeat about the graphical interface to use to manage RedCap Hotline Console client. &lt;a href="http" ://freshmeat.net/projects/redcap/&gt;freshmeat.net/projects/redcap/&lt;/a&gt;</description>
    </item>
    <item>
      <pubDate>Thu, 4 Nov 2004 17:44:48 GMT</pubDate>
      <title>4 Nov 2004</title>
      <link>http://www.advogato.org/person/miconof/diary.html?start=6</link>
      <guid>http://www.advogato.org/person/miconof/diary.html?start=6</guid>
      <description>first realease of my RedCap project with a download and upload command that is working, in this realease a first version of view file also which can display file before downloading them. &lt;a href="http" ://freshmeat.net/projects/redcap/&gt;freshmeat.net/projects/redcap/&lt;/a&gt;</description>
    </item>
    <item>
      <pubDate>Tue, 2 Nov 2004 19:34:05 GMT</pubDate>
      <title>2 Nov 2004</title>
      <link>http://www.advogato.org/person/miconof/diary.html?start=5</link>
      <guid>http://www.advogato.org/person/miconof/diary.html?start=5</guid>
      <description>an other first release again but now of The Hotline protocol with CAPS revisions. &lt;a href="http" ://freshmeat.net/projects/redcap/&gt;http://freshmeat.net/projects/redcap/&lt;/a&gt;&lt;br&gt;
&lt;br&gt;</description>
    </item>
    <item>
      <pubDate>Thu, 28 Oct 2004 10:09:53 GMT</pubDate>
      <title>28 Oct 2004</title>
      <link>http://www.advogato.org/person/miconof/diary.html?start=4</link>
      <guid>http://www.advogato.org/person/miconof/diary.html?start=4</guid>
      <description>Just put a First Realease of the Caps protocole on freshmeat using between the RedCap (Hotline Client) and the Caps Interface, which talk via a "telnet" like protocole. &lt;a href="http" ://freshmeat.net/projects/redcap/&gt;http://freshmeat.net/projects/redcap/&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
It's only in french for the momment.</description>
    </item>
    <item>
      <pubDate>Fri, 8 Oct 2004 06:10:52 GMT</pubDate>
      <title>8 Oct 2004</title>
      <link>http://www.advogato.org/person/miconof/diary.html?start=3</link>
      <guid>http://www.advogato.org/person/miconof/diary.html?start=3</guid>
      <description>&lt;pre&gt;
I post today in here for a trouble I have in my devellopement in 
my project &lt;b&gt;Caps&lt;/b&gt; &lt;a href="http" ://www.caps-project.com&gt;www.caps-project.com&lt;/a&gt;. 
If someone has an idee and can help me thanks to write me a mail.
miconof@yahoo.fr
&lt;p&gt; I do a function that will upload a file to a server.
This function "void    send_file(t_thread_data *transfert)" is call in a 
thread wich in first open the connection and then will upload the file. 
The "send_file" function take in parameters the file descriptor of the 
open fd of the new connection.
All seems to work normaly, but not. The first "buffer" is sent normaly, 
but when it will go to start uploading the second buffer I obtain an 
error that said : "mmap:invalid argument; mmap:illegal seek". Then 
the thread exit and my upload file had received only is first 5 octets.
 Here is my debug starting just when "send_file" is call:

&lt;p&gt; &lt;p&gt; &lt;i&gt;[...]
openning [notes.txt]...
function:send_file_in
boucle fdd:13 offset:0
apres mmap
sending [notes.txt] on fd 12 ... 1/1269
[notes.txt]: sent 5 of 6340 bytes on fd 12, 5 allocated
boucle fdd:13 offset:5
mmap: Invalid argument
mmap:[Illegal seek]
after send_file
fin de main_create_download
[Thread 65541 (LWP 16794) exited]
[...]
&lt;/i&gt;
Here is my function ("send_file" is at the bottom).

&lt;p&gt; &lt;p&gt; #define MY_READ_SIZE 5

&lt;p&gt; &lt;p&gt; int             send_file_in(int fd, int ffd, char *file)
{
  int           part, of, mappedsize, s, t;
  struct stat   st;
  char          *file_ptr;
  off_t         offset;

&lt;p&gt; &lt;p&gt;   if (gl_redcap-&amp;gt;debug-&amp;gt;functions)
    printf("function:send_file_in\n");
  offset = 0;
  mappedsize = 0;
  fstat(ffd, &amp;amp;st);
  fflush(stdout);
  part = 1;
  of = (st.st_size / MY_READ_SIZE) +1;
  offset = lseek(ffd, 0, SEEK_SET);
  t = st.st_size;
  while (mappedsize &amp;lt; t)
    {
      printf("boucle fdd:%d offset:%d\n", ffd, (int)offset);
      if ((file_ptr = mmap(0, MY_READ_SIZE, PROT_READ, MAP_PRIVATE, ffd, offset)) == MAP_FAILED)
        {
          perror ("mmap");
          printf("mmap:[%s]\n", strerror(errno));
          return (0);
        }
      printf("apres mmap\n");
      printf("sending [%s] on fd %d ... %d/%d\n", file, fd, part++, of);
      if ((s = write(fd, file_ptr, MY_READ_SIZE)) == -1)
        {
          perror("send");
          printf("[%s]\n", strerror(errno));
          return (0);
        }
      if (munmap(file_ptr, MY_READ_SIZE) == -1)
        {
          perror ("munmap");
          printf("[%s]\n", strerror(errno));
        }
      mappedsize += MY_READ_SIZE;
      printf("[%s]: sent %d of %d bytes on fd %d, %d allocated\n",
             file, s, t, fd, mappedsize);
      if ((offset = lseek(ffd, MY_READ_SIZE, SEEK_CUR)) == -1)
        {
          perror ("lseek");
          printf("lseek:[%s]\n", strerror(errno));
          return (0);
        }
    }
  offset = lseek(ffd, 0, SEEK_SET);
  return(0);
}

&lt;p&gt; &lt;p&gt; void    send_file(t_thread_data *transfert)
{
  int ffd;

&lt;p&gt; &lt;p&gt;   printf("openning [%s]...\n", transfert-&amp;gt;info-&amp;gt;name);
  if ((ffd = open(transfert-&amp;gt;info-&amp;gt;name, O_RDONLY, 0)) &amp;lt; 0)
    {
      perror("open");
    }
  send_file_in(transfert-&amp;gt;fd, ffd, transfert-&amp;gt;info-&amp;gt;name);
  printf("after send_file\n");
/*   if (close(ffd) == -1) */
/*     { */
/*       perror("close"); */
/*       printf("[%s]\n", strerror(errno)); */
/*     } */
}
&lt;/pre&gt;</description>
    </item>
    <item>
      <pubDate>Sat, 2 Oct 2004 08:47:46 GMT</pubDate>
      <title>2 Oct 2004</title>
      <link>http://www.advogato.org/person/miconof/diary.html?start=2</link>
      <guid>http://www.advogato.org/person/miconof/diary.html?start=2</guid>
      <description>Hi, i don't post in here since a long time...&lt;br&gt;  &lt;br&gt;  I just got my &lt;b&gt;new laptop&lt;/b&gt; a &lt;b&gt;x31&lt;/b&gt; to remplace my powerbook G4 (it's my father one, i will give it back to him).&lt;br&gt;  I installed NetBSD on it. To boot the installer i use a usb drive which was recognise as a hard drive by the bios. The only thing to be carreful is to select (after pluging the usb drive) the drive boot order under the bios and to put the usb drive in first. For the momment i'm configuring (playing in fact), but i will restart all the installation from the begining to make an hibernation part on my hard drive.&lt;br&gt;  &lt;br&gt;  I also work on my project &lt;b&gt;Caps&lt;/b&gt; &lt;a href="http://freshmeat.net/~caps/" &gt;http://freshmeat.net/~caps/&lt;/a&gt; or &lt;a href="http://www.caps-project.com" &gt;http://www.caps-project.com&lt;/a&gt;. Which is a new hotline multi-OS client and server.&lt;br&gt;  &lt;br&gt;  I will also move my personnal server which is actualy run under NetBSD on an eden 500mhz on a &lt;b&gt;compaq proliant ml370 petium III 1ghz&lt;/b&gt; that a friend give to me, thanks Raph :-) . Because it's a real server, and really noisy, i must build a wood case with fan to put it in my toilet.&lt;br&gt;  &lt;br&gt;  One of the last thing i do also is to install an old version of Linux 2.0.33 &lt;b&gt;MkLinux&lt;/b&gt; on my powermac 6100/60 which i will use to monitor my server with MRTG.</description>
    </item>
    <item>
      <pubDate>Sun, 9 Nov 2003 20:59:35 GMT</pubDate>
      <title>9 Nov 2003</title>
      <link>http://www.advogato.org/person/miconof/diary.html?start=1</link>
      <guid>http://www.advogato.org/person/miconof/diary.html?start=1</guid>
      <description>My NetBSD file server name is Rapace it run under an Epia M mini itx, and i had trouble with the mainboard ethernet card, with the help of Gilbou i update my NetBSD to current, and now it work really whell.&lt;br&gt;
I did also a script wich i put in a crontab which look at the download status of my mldonkey, and then it send it to the background of my osX main computer wich name is Titan. I also put new drive in Rapace my file server it now have 300 gig.&lt;br&gt;
&lt;br&gt;
I'm also looking in how to put my mldonkey into a chroot.&lt;br&gt;
&lt;br&gt;
I don't find an other computer for my firewall, i also need a small switch.&lt;br&gt;
&lt;br&gt;
My hotline client server project will start very soon, we have our first meet in 2 days.&lt;br&gt;</description>
    </item>
    <item>
      <pubDate>Wed, 16 Jul 2003 09:49:02 GMT</pubDate>
      <title>16 Jul 2003</title>
      <link>http://www.advogato.org/person/miconof/diary.html?start=0</link>
      <guid>http://www.advogato.org/person/miconof/diary.html?start=0</guid>
      <description>Hello, I'm a &lt;b&gt;student&lt;/b&gt;, I wanted to become a &lt;b&gt;Network and System administrator&lt;/b&gt;, but I think I'm only at the beginning of a long trip.&lt;br&gt;
&lt;br&gt;
For the momment, I'm in a job experience of a Network administrator, I work at &lt;b&gt;&lt;a href="http://www.viafrance.com" &gt;viaFrance&lt;/a&gt;&lt;/b&gt;, it's a website on wich are list "all" the events in France. Their network is under win2000.&lt;br&gt;
-In first I give them their own internet connection. We are localise in an hotel, and before we used the hotel internet connection.&lt;br&gt;
-I build a NetBSD bridge between viaFrance network and the hotel network.&lt;br&gt;
-I plane all the backup of the data and the data base, but it doesn't work as wheel as I want for the momment.&lt;br&gt;
-I tried to put an Ipcop firewall but it's not finish yet.&lt;br&gt;
&lt;br&gt;
In my home I work under Mac OsX, I have a file serveur under NetBSD on which I run a NFS serveur. I put all my files on the NetBSD and I use them on the mac.&lt;br&gt;
I wanted to put in place a NetBSD firewall on an other computer.&lt;br&gt;
&lt;br&gt;
The projet I plane for after my job experience is to build an Hotline Client-Serveur which can work under i386 ppc sun alpha. This client-serveur will communicate only encrypte data.</description>
    </item>
  </channel>
</rss>
