Thread: Net Send Programs

  1. #1
    Unregistered
    Guest

    Net Send Programs

    I would like to be able to make a program to send messages across our network. Anyone know how to do this?

  2. #2
    Registered User Sekti's Avatar
    Join Date
    Feb 2002
    Posts
    163

    done with sockets

    heres a tutorial on sockets:
    http://www.ecst.csuchico.edu/~beej/guide/net/
    +++
    ++
    + Sekti
    ++
    +++

  3. #3
    Registered User
    Join Date
    Dec 2001
    Posts
    206

    here:

    Code:
    // include files and skip to body
    
    cout<<"Who would you like to send to?";
    char name(50);
    cin>>name;
    switch(name){
    case "John Doe":
    name = "cis09";
    break;
    case "Joe Shmoe":
    name = "cis10";
    break;
    default:
    cout<<"No user by this name";
    cin>>name;
    cout<<"";
    return 0;
    }
    cout<<"\nType the message(under 950 chars):";
    char message(950);
    cin>>message;
    int netsend1 = strlen(name);
    int netsend2 = strlen(message);
    char netsend[netsend1 + netsend2 + 10]
    strcpy(netsend, "net send ");
    strcat(netsend, name);
    strcat(netsend, message);
    
    system(netsend);
    this is jsut an example - im sure you dont have some guy named joe shmoe on a computer named cis10... if you do.... have a cookie

  4. #4
    Registered User
    Join Date
    Dec 2001
    Posts
    206
    ..........
    fine...... dont thank me......
    .........



    .....*cries and runs into room*

  5. #5
    Registered User
    Join Date
    Apr 2002
    Posts
    3
    just to add this URL


    here is how it looks

    http://www.ariolic.com/images/netsend_shot.gif

  6. #6
    Registered User
    Join Date
    Sep 2001
    Posts
    4,912
    Just use CGI or something. All you need to know is the HTML transmission conventions. Yahoo.com has some pretty nifty algorithms.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. (Windows) Send keyboard and mouse to another program?
    By Chrisname in forum Windows Programming
    Replies: 4
    Last Post: 06-13-2009, 06:13 PM
  2. How to Send Mac Address From Client to Server
    By Lieyza197 in forum C Programming
    Replies: 2
    Last Post: 05-27-2009, 09:58 AM
  3. Got any tutorials or programs?? Send them to my web site!
    By robmil29 in forum C++ Programming
    Replies: 6
    Last Post: 09-27-2004, 11:38 AM
  4. LISP (DrScheme) any one?
    By Jeremy G in forum A Brief History of Cprogramming.com
    Replies: 5
    Last Post: 03-31-2004, 12:52 PM
  5. executing c++ programs on the web
    By gulti01 in forum C++ Programming
    Replies: 4
    Last Post: 08-12-2002, 03:12 AM