Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by Laopang

  1. Laopang

    CSocket::Send

    Try to use CAsyncSocket, it is an asynchonism socket. And, why do you use a "while" loop? It always send the data , and there is no opportunity to receive data. No taboo from the fat man!
  2. Laopang

    Zombie process

    I speculate that maybe, some signal handlers in your program catch and ignore the SIGINT, SIGTERM etc. As the description above , you can remove the zombie process now, but I suggest you to find out the cause, it is important, I think.
  3. Laopang

    More TCP/IP questions

    5. I suggest that you may find a tool, such as 'sniffer','snort', running it in you LAN, and catch the packets ,analysing the whole ethernet frame. Then you can have a deep knowledge about TCP/IP.
  4. Laopang

    More TCP/IP questions

    1.A TCP connection is defined based on four elements: Source IP address, source port Destination IP address, destination port!
  5. Laopang

    TCP Sticky Ports?

    As I know, in the serve side (passive closed) ESTABLISH(receive FIN, send ACK)->CLOSE_WAIT(Application close the FD)->LASE_ACK(receive ACK)->CLOSE So ,if your application comes into CLOSE_WAIT, that means your application does not close the relevant FD(socket)in time. Check your application...
  6. Laopang

    Realtek 8139 pci 10/100

    I also,had a same mistake before.^_*
  7. Laopang

    how to obtain pid

    pid = getpid()
  8. Laopang

    Skipping scanf()

    Step by step , using debug tools
  9. Laopang

    linux daemon design

    Or you might try Squid(www.squid-cache.org).Although it is so huge and great , the content you may concern is simple.Try download the 2.4.x release and find the watch_child() function in main.c file.
  10. Laopang

    linux daemon design

    <Unix network programming Volume 1 Second Edition Networking APIs: Sockets and XTI> W.Richard Stevens Chapter 12
  11. Laopang

    Get the size of an HD in Linux

    if (ioctl(fd, BLKGETSIZE, ¡±ors))return -1; if (ioctl(fd, BLKSSZGET, ¡±or_size))return -1; may be: if (ioctl(fd, BLKGETSIZE,&sectors)) return ; if (ioctl(fd, BLKSSZGET,&sector_size)) return ;
  12. Laopang

    Get the size of an HD in Linux

    I think you may add : close(fd); before the application exit.
  13. Laopang

    a simple pointer question

    memset: MEMSET(3) Linux Programmer's Manual MEMSET(3) NAME memset - fill memory with a constant byte SYNOPSIS #include <string.h> void *memset(void *s, int c, size_t n); DESCRIPTION The memset() function fills the first n bytes of the...
  14. Laopang

    Reading and parsing data packet from and to, a Web Server !!??

    Sniffer might help you but it is not free. Snort is free but I do not use it before merely hear of it.
  15. Laopang

    date function

    Use ctime() to get the current date if your application runs on Linux or Unix.See the reference.

Part and Inventory Search

Back
Top