User Profile

Collapse

Profile Sidebar

Collapse
Svinja
Svinja
Last Activity: Nov 15 '08, 05:13 PM
Joined: Nov 4 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Svinja
    replied to Multicast
    thx for answer Icecrack but this doesnt help, i know what multicast is and how it works, i was just wondering if it works across internet(not just LAN). Well, i have tried it and it doesn't.
    See more | Go to post

    Leave a comment:


  • Svinja
    replied to Multicast
    ok, i probably wasn't clear with my question, the question is - does multicast works just over lan or over internet too? How does my local router knows who else is in my multicast group on the internet, does it use IGMP to search for every possible multicast user or what? thx.
    See more | Go to post

    Leave a comment:


  • Svinja
    replied to Multicast
    my router/(dsl modem) is netopia 2240n

    it seems that windows xp somehow supports multicast and does all the work instead of the router.

    i really dont undestand how multicast works, mulitcast addresses are in range 224.0.0.0-239.255.255.255 , but are those public addresses or they work only on private networks(lan)?
    See more | Go to post

    Leave a comment:


  • Svinja
    started a topic Multicast

    Multicast

    Hello, i was reading an article on multicasting on Microsoft TechNet and it says that if i want to implement multicast on my network i need this:




    i am using multicast on my LAN and it works without router. That is my question - how can multicast work without router? It may seem like a stupid question but i really need an answer...thx...
    See more | Go to post

  • Svinja
    replied to C# Socket Communication Behind a router
    in .NET
    You need to forward ports only for the server(incoming connection).
    Client does not need to forward port because of the way NAT in your router works.

    When client(outcomin g connection) start the connection, it sends some packets over the router, NAT(in the router) remembers clients IP and port and puts it in temporary table. That way when packets(incomin g) come for client, the router knows on which IP to send it because of the...
    See more | Go to post

    Leave a comment:


  • Svinja
    replied to UPnP
    in .NET
    I send SOAP messages to UPnP device(router) and then wait for the answer. UPnP is actually very simple protocol. UPnP standard is made by UPnP forum.

    First you must understand UPnP(first three chapters are most important for good start):
    https://www.sane.nl/sane2006/program...-papers/R6.pdf

    This is the link for official UPnP documentation:
    http://www.upnp.org/resources/upnpresources.z ip
    (UPnP-DeviceArchitect ure-v1.0.pdf...
    See more | Go to post

    Leave a comment:


  • Svinja
    started a topic UPnP
    in .NET

    UPnP

    Hello,

    I am using UPnP in c# to communicate with my router. So far i have managed to do this:
    1. Get router info(xml)
    2. Get external(public ) IP address
    3. Add and delete port mapping

    Is there any way to see which ports are forwarded? I think it is possible with eventing but my router doesnt support it. I tried with queryStateVaria ble action but with no success. I am not using NAT traversal.
    See more | Go to post

  • Svinja
    started a topic Network accessibility

    Network accessibility

    Hello,

    I am trying to check if some ports on my computer are forwarded properly(i am behind a router).The normal method for this is to create a server on your computer and send a request to some free web proxy to connect back to you. So if connection is established, port is forwarder properly. This works ok but i takes around 5-10 seconds. The question is: why cant i check if port is forwarded properly simply by trying to connect to...
    See more | Go to post

  • Hi, this sample takes two number from textBox1 and textBox2, adds them, and outputs them to textBox3:
    Code:
    Int32 number1 = Convert.ToInt32(textBox1.Text);
    Int32 number2 = Convert.ToInt32(textBox2.Text);
    Int32 number3 = number1 + number2;
    textBox3.Text = number3.ToString();
    See more | Go to post

    Leave a comment:


  • Svinja
    replied to WebClient.UploadFile problem
    in .NET
    I was right, asp/php script is necessary:
    c# code:
    Code:
    WebClient webClient = new WebClient();
    byte []responseBytes=webClient.UploadFile("http://www.etfos.hr/~dhuis/Upload.php", @"c:\data2.dat");
    String response = Encoding.Default.GetString(responseBytes);
    MessageBox.Show(response);
    php code(Upload.php ):
    Code:
    <?php
    $uploadDir = 'Upload/'; 
    $uploadFile
    ...
    See more | Go to post

    Leave a comment:


  • Svinja
    replied to WebClient.UploadFile problem
    in .NET
    Thanks for your answer but i believe you are wrong, the uri is correct. "http://www.etfos.hr/~dhuis/test.txt" means that i want to put the file in
    "http://www.etfos.hr/~dhuis/" and name it "test.txt". I believe i should have the receiving script on my web server, i will try to make one and post it if i succeed...
    See more | Go to post

    Leave a comment:


  • Svinja
    replied to WebClient.UploadFile problem
    in .NET
    Do i have to make some asp/php code to recieve it on my server? I thought http will do it for me like ftp does?
    See more | Go to post

    Leave a comment:


  • Svinja
    replied to Read StreamReader in reverse order
    in .NET
    Hi, there is a similar thread:
    http://bytes.com/forum/thread250018.html...
    See more | Go to post

    Leave a comment:


  • Svinja
    started a topic WebClient.UploadFile problem
    in .NET

    WebClient.UploadFile problem

    Hi, i am using WebClient.Uploa dFile to upload a file on my web page, code:
    Code:
    WebClient webClient = new WebClient();
    webClient.Credentials = new NetworkCredential(userName, pass);
    webClient.UploadFile("http://www.etfos.hr/~dhuis/test.txt", @"c:\test.txt");
    i get an error "The remote server returned an error: (404) FIle not found"
    my web page is http://www.etfos.hr/~dhuis...
    See more | Go to post

  • Svinja
    replied to Visual studio 2008 problem
    in C
    release build helps, thx a lot
    See more | Go to post

    Leave a comment:


  • Svinja
    replied to Visual studio 2008 problem
    in C
    I didnt do release build, i didnt even know that it exists until now. I will try.
    It is not MFC app. Even default simple window program doesnt work. The error i get on other computers is Error executing program and nothing else. I have been using VS 6.0 for about five years and never had any problems. C# programs work great only this dont.
    See more | Go to post

    Leave a comment:


  • Svinja
    started a topic Visual studio 2008 problem
    in C

    Visual studio 2008 problem

    Hi,

    I made native win32 application in VS 2008, the problem is that it works only on my computer. Which files do i have to distribute with exe file? I distribute it with
    msvcr80.dll and msvcr90.dll and Microsoft.VC80. CRT.manifest and Microsoft.VC90. CRT.manifest and APP_NAME.interm ediate.manifest and it still doesnt work?

    PS: If i convert the VS 6.0 project into VS 2008 project then it works with only exe.
    See more | Go to post

  • Svinja
    replied to Regex & \n
    in .NET
    ok i figured it out, once again, the solution was hiding in the MSDN. It turns out that "\" is a special char for regex.replace so i cant use it. If i want to match "\" i must use "\\" like this:
    Code:
    String buffer=richTextBox.Text;
    buffer = Regex.Replace(buffer, @"\\n", "!");
    MessageBox.Show(buffer);
    but anyway thx for answering.
    See more | Go to post

    Leave a comment:


  • Svinja
    replied to Regex & \n
    in .NET
    Code:
    String buffer=richTextBox.Text;
    buffer = Regex.Replace(buffer, @"\n", "!");
    //buffer=buffer.Replace(@"\n", "!");
    MessageBox.Show(buffer);
    there it is mate, as you can see i am geting text from richtextbox but if i put the text in the string manually like this:
    Code:
    buffer = Regex.Replace("a\nb", @"\n", "!");
    then it works....
    See more | Go to post

    Leave a comment:


  • Svinja
    started a topic Regex & \n
    in .NET

    Regex & \n

    Hi,
    I want to replace "\n" with "!" in c#, i tried this:
    Code:
    String buffer=richTextBox.Text;
    buffer=buffer.Replace(@"\n", "!");
    and it worked, but this didnt:
    Code:
     
    String buffer=richTextBox.Text;
    buffer = Regex.Replace(buffer, @"\n", "!");
    why?
    See more | Go to post
No activity results to display
Show More
Working...