SOcket programming trouble

This is a discussion on SOcket programming trouble within the Networking/Device Communication forums, part of the General Programming Boards category; osted January 10th, 2008 by sodja Hi all! I'm doing some simple server/client based socket progs in C. My problem ...

  1. #1
    Registered User
    Join Date
    Jan 2008
    Posts
    1

    SOcket programming trouble

    osted January 10th, 2008 by sodja

    Hi all!

    I'm doing some simple server/client based socket progs in C. My problem is that the sending routine uses the protocol family PF_PACKET -> with SOCK_DGRAM, IPPROTO_UDP so i made some own cooked frames and send them with sendto(). I' have monitored them with tcpdump, the packet arrives, the ip sum is ok the udp socket too.

    The in the receiver routine is PF_INET, SOCK_DGRAM, IPPROTO_UDP the socket is binded to the proper device and never becomes readable.... WHY??????????? tcpdump sees that the packet is arrived the dest address and port are ok, but the socket never becomes readable...

    Is someone have practice in this kind of solution?????

    so once again i must send with PF_PACKET (because of some ehternet broadcast features) and must receive with PF_INET.

    thx sodja

  2. #2
    Malum in se abachler's Avatar
    Join Date
    Apr 2007
    Posts
    3,189
    what OS?
    have code?
    Until you can build a working general purpose reprogrammable computer out of basic components from radio shack, you are not fit to call yourself a programmer in my presence. This is cwhizard, signing off.

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. Winsock asynchronous socket + MessageBox() = trouble?
    By jmd15 in forum Networking/Device Communication
    Replies: 8
    Last Post: 02-07-2006, 01:50 PM
  3. 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
  4. Odd socket trouble
    By Twiggy in forum C Programming
    Replies: 0
    Last Post: 03-31-2003, 04:25 PM
  5. Socket Blocking Trouble!
    By LearningMan in forum Windows Programming
    Replies: 6
    Last Post: 01-09-2003, 09:09 AM

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