whaa socket programming!

This is a discussion on whaa socket programming! within the C Programming forums, part of the General Programming Boards category; all this socket programming stuff seems a 'little' weird to me. all these structures.... how is someone ever going to ...

  1. #1
    template<typename T> threahdead's Avatar
    Join Date
    Sep 2002
    Posts
    214

    whaa socket programming!

    all this socket programming stuff seems a 'little' weird to me.
    all these structures.... how is someone ever going to remember?

    im confused.

    i now got a first look at programming sockets in C.
    could anyone come up with suggestions what i should try to program?
    (something really really easy please)
    would be cool.

    cya

    EDIT: im programming in an unix environment.

  2. #2
    Registered User
    Join Date
    Nov 2002
    Posts
    491
    Server that outputs teh ascii table forever and ever (until client disconnects)

    aka, chargen

    Look at any of the simplistic UNIX daemons like time, chargen, etc.

  3. #3
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    Write a MUD from scratch. That'll keep you busy for a while.

    Quzah.
    Hope is the first step on the road to disappointment.

  4. #4
    template<typename T> threahdead's Avatar
    Join Date
    Sep 2002
    Posts
    214
    thanks for your suggestions but i dont even know how to
    use the bind(), connect(), etc... functions.
    do i have to simply learn them by rote?

    well i dont know how to master the structures and the many headers. well anyway thanks!

  5. #5
    template<typename T> threahdead's Avatar
    Join Date
    Sep 2002
    Posts
    214
    salem: i read the first of the links you posted.
    but i dont seem to get smarter of that.

    its late now, ill have a try tomorrow again.

    gn8

  6. #6
    Registered User
    Join Date
    Nov 2002
    Posts
    491
    If you cannot understand then maybe you should wait until you have learned more.

  7. #7
    Registered User
    Join Date
    Jan 2003
    Posts
    99
    Yes maybe u should wait or start out SLOW. I would recommend typing in many examples of other socket programs created by other people. When you feel comfortable you can start writing for instance a chat program to be used over a LAN or a program that would sit on a port and just wait for another computer to connect to it. Just start out slow and move up.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. socket programming question, closing sockets...
    By ursula in forum Networking/Device Communication
    Replies: 2
    Last Post: 05-31-2009, 05:17 PM
  2. when to close a socket
    By Wisefool in forum Networking/Device Communication
    Replies: 5
    Last Post: 11-02-2003, 09:33 AM
  3. problem closing socket
    By Wisefool in forum Networking/Device Communication
    Replies: 2
    Last Post: 10-29-2003, 11:19 AM
  4. problem closing a socket
    By Wisefool in forum C Programming
    Replies: 1
    Last Post: 10-28-2003, 12:38 PM
  5. socket newbie, losing a few chars from server to client
    By registering in forum Linux Programming
    Replies: 2
    Last Post: 06-07-2003, 11:48 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21