Results 1 to 7 of 7

Thread: Socket Tutorial

  1. #1
    Member omidkamangar's Avatar
    Join Date
    Mar 2006
    Location
    Kurdistan
    Posts
    239

    Question Socket Tutorial

    Does anyone know a good (and short if possible) tutorial on socket programming in C/C++ ?
    This will be over soon, and then I can ...

  2. #2

    Socket Tutorial

    i have a simple and brief yet very useful tutorial for client and server side socket programming. its pdf presentation.... how would i give it to you. i cant attach it here.

  3. #3
    Have you looked at this?
    Seems like a ery simple tutorial.
    http://www.alhem.net/Sockets/tutorial/
    My crime is that of curiosity. My crime is that of judging people by what they say and think, not what they look like. My crime is that of outsmarting you, something that you will never forgive.

  4. #4
    yes its really good and comprehensive

  5. #5
    Member omidkamangar's Avatar
    Join Date
    Mar 2006
    Location
    Kurdistan
    Posts
    239

    Exclamation

    Quote Originally Posted by imsandy_007 View Post
    i have a simple and brief yet very useful tutorial for client and server side socket programming. its pdf presentation.... how would i give it to you. i cant attach it here.
    I sent you my email address but nothing happened.
    This will be over soon, and then I can ...

  6. #6
    Hello guys , I am very new in socket programming using php. Is it possible to swap a client ip and port ? This is what I am trying to do.
    Let say you have Comp1 and Comp2
    and you have Server between them.
    My goal is to get Comp1 and Comp2 know each others IP
    so Comp1 connects to server
    and server stores comp1's IP
    in a text file or other place
    and Comp2 connect to server
    and server also stores his info
    and then both comp1 and comp2 dowload the tex file
    and use the info on it.

    Please I would appreciate any supportive suggestions.
    Thanks in advanced.
    matt

  7. #7
    To: Mattjam

    Yes you can do it !!
    Run the client program in comp1 and comp2 and server program on Server .

    In your server program you can open a file and save the client ip address and port number.

    Now,
    You can ask the content of this file as a network packet from the server to the compX system and take action after parsing the packet info.
    Or
    You can download the text file via tftp or ftp protocol and use the data stored in it for your use.

    Note: You need to handle the data carefully applying the sanity checks to be sure about the integrity of the data .

    Hope this helps !!
    Manish Gupta

Similar Threads

  1. SQL tutorial
    By omidkamangar in forum Linux - Software, Applications & Programming
    Replies: 2
    Last Post: 03-17-2007, 01:55 AM
  2. C++ Tutorial
    By Waka-Gashira in forum Windows - General Topics
    Replies: 9
    Last Post: 02-28-2005, 04:54 PM
  3. PHP Tutorial
    By Waka-Gashira in forum Windows - General Topics
    Replies: 8
    Last Post: 01-27-2005, 09:10 AM
  4. sharing socket between process in linux
    By Vikash Singh in forum Linux - Software, Applications & Programming
    Replies: 2
    Last Post: 11-10-2003, 07:37 PM
  5. Suse 7.0 socket library
    By TaraMc in forum Suse
    Replies: 1
    Last Post: 05-15-2002, 05:00 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •