Thread: SOcket programming trouble

  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,195
    what OS?
    have code?

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, 02: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, 05:25 PM
  5. Socket Blocking Trouble!
    By LearningMan in forum Windows Programming
    Replies: 6
    Last Post: 01-09-2003, 10:09 AM