Results 1 to 4 of 4

Thread: programmino client - server in C

  1. #1
    Petty Officer 1st Class dangaio's Avatar
    Join Date
    Sep 2003
    Location
    Como
    Posts
    905

    Default programmino client - server in C

    tra gli N programmatori che bazzicano su questo forum, c'è ne 1 che se ne intende di programmazione in C?

    Mi serve del codice per creare 2 piccoli e semplicissimi programmini (interfaccia a carattere) che si limitano a comunicare tra di loro, attraverso l'uso dei socket con la libreria winsock 1.1.
    In pratica 1 fa da client e una volta ottenuto i dati riguardo all'indirizzo ip del server e della porta da usare, si connette e passa una stringa di dati.
    il server si limita a restare in ascolto, attiva la connessione, riceve la stringa di dati (comprensibile) e la elabora. (la mostra a video, ecc)

    se qualcuno è in grado di farlo, può mandarmi un pm che gli invio i dettagli a riguardo?


    -------------------
    Qualche passata nei media
    Intervento alla IVDC 2008
    Intervista su Punto Informatico
    Intervista su Unseen 64
    ---------------

  2. #2
    Lieutenant Commander ahzael's Avatar
    Join Date
    Apr 2004
    Location
    Melbourne/Roma
    Posts
    7.270

    Default

    bo, se ti serve so farlo in Java o in C utilizzando MPI, ma francamente mai fatto in C puro.
    In diretta dalla terra dei canguri
    On WoW Daggerspine - soon Outland
    Ermucco Lev 60 Fury Warrior
    Ahzael Lev 70 Epic Druid
    **** OnDeira Albion ****
    Ahzael Skyscream RR7L1 Smiter No.1 di vorti
    E tutti gli Ahzael del mondo
    ************************
    Themaltake Soprano VX AMD 5000 2 gb Corsair
    Gigabyte GeForce 8600GT 512 , x2 250 WD
    Bachelor Computer Science, software engeneering @ Deakin University
    Honours of IT completed Thesis : "A novel IPTV system through mix P2P and Multicast system"


    Currently PhD
    Research "DDos attacks guard through multicore systems"
    "I PLAY" pd, magari avercelo il tempo per giocare :asd:

  3. #3
    Lieutenant Commander Axet's Avatar
    Join Date
    Sep 2003
    Location
    Ginevra
    Posts
    33.807

    Default

    In C mai usato le socket quindi non saprei, in VB o in java non c'è problema :O

    I'm no hero. Never was. Never will be.
    -----
    Soul of the mind, key to life's ether
    Soul of the lost, withdrawn from its vessel
    May strength be granted so the world might be mended...
    So the world might be mended...

  4. #4
    Lieutenant Commander San Vegeta's Avatar
    Join Date
    Oct 2003
    Location
    Bologna
    Posts
    12.154

    Default

    ma su google è pieno di esempi -.-
    I rubinetti a casa di Chuck Norris non perdono, vincono.

    In the beginning there was nothing...then Chuck Norris Roundhouse kicked that nothing in the face and said "Get a job". That is the story of the universe.

    Quote Originally Posted by Wolfo View Post
    Concordo e propongo ban temporanei per chi critica la topa , la topa non si critica , dal trombabile in su non si commenta in modo sgradevole.
    la tua ignoranza in materia e' raccapricciante
    -cit. Estrema, 2022

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
[Output: 51.61 Kb. compressed to 43.94 Kb. by saving 7.68 Kb. (14.88%)]