CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: Damon123

Search: Search took 0.02 seconds.

  1. Replies
    2
    Views
    795

    getsockopt doesn't match with setsockopt

    first, I use setsockopt to set send buffer 40000
    then I use getsockopt to get the send buffer, but it is 80000

    here is my code,

    int value = 40000;
    socklen_t len;
    len = sizeof(value);

    if...
  2. Replies
    1
    Views
    642

    serious problem in send()

    I am implementing multi-server-client program.

    I use the select function to detect sockfd which is available to read and write so as to solve the blocking problem when send/recv.

    Now, I meeting...
  3. Replies
    1
    Views
    650

    Window Hooking problem

    I am implementing window hooking from one process to another process.
    In my app, I want to detect the WM_DESTROY message of notepad.
    I use SetWindowsHookEx in DLL, but I fail to do so.
    I want to...
  4. Replies
    2
    Views
    940

    recv() error during closing app

    how to deal with problem of closing my socket program when recv() ing data?

    should I stop the recv() and flush the recv buffer so as to prevent recv() error?
  5. how to get the process name of an application?

    I want to know the process name (such as iexplore.exe) from an appliaction name (such as CodeGuru Forms - Microsoft Internet Explorer).

    Any api to do so?
  6. Replies
    2
    Views
    685

    How to detect pop-up of a window?

    I want to execute some codes when a specific window is pop up, how could the pop up of that window tricker my event?
  7. Replies
    0
    Views
    616

    Netmeeting SDK problem

    I am trying to use netmeeting api to do a application sharing program.

    I want to know if netmeeting SDK provides API to unshall all shared application by one click, so that I can close the...
  8. Replies
    2
    Views
    1,051

    LPTSTR format problem

    I am using netmeeting api to write a client sharing program.

    I use GetAddr to check the ip of incoming call, if it is one of ip in my buddy list, accept the call.

    I don't know how to compare...
  9. Replies
    0
    Views
    494

    Netmeeting SDK problem

    I am using netmeeting SDK to make a peer-to-peering sharing program.

    Now I want to manually block and permit income call by the incoming IP.

    for example, when a call is arrived, I want to check...
  10. Replies
    3
    Views
    1,374

    Re: Select() problem in FD_SET

    thank you for your reply and I know that 2 different FD SET should be used for client and server.

    however, if I am in the case that I am waiting for either connection of client and server, how...
  11. Replies
    3
    Views
    1,374

    Select() problem in FD_SET

    I am writing a multiserver program.
    I use I/O mutiplexing (SELECT function).

    I am going to use one read set (rset_1) of file descriptor for clients, and another set (rset_2) for server, so as to...
  12. Replies
    13
    Views
    68,345

    Re: How to use timer in Unix ?

    then what does the (int i) mean ?

    void alarm_wakeup (int i)
  13. Replies
    13
    Views
    68,345

    Re: How to use timer in Unix ?

    I want to know how to pass parameter to the function "alarm_wakup" from main?
  14. Replies
    13
    Views
    68,345

    Re: How to use timer in Unix ?

    Thx a lot!
  15. Detect disconnection in client-server program

    I am writing a client-server program like netmeeting. In the server side, I use SELECT function (I/O multiplexing) to waiting for connection and receiving message.

    Now I want to find ways to...
  16. Replies
    13
    Views
    68,345

    How to use timer in Unix ?

    I want to start a timer to count a period of about 10 second, how should I implement the method in time.h ?
  17. Replies
    2
    Views
    641

    Re: recv() problem

    actually my program use I/O Mutiplexing, that is the SELECT function, without using any thread.

    how could I keep sending/receiving timeout packets and use a timer to count the time?
  18. Replies
    2
    Views
    641

    recv() problem

    I am writing a program like netmeeting.

    I use recv() to detect if a client disconnects manually or has error when the return value is 0 or -1.

    However, when the client's computer's network is...
Results 1 to 18 of 18





Click Here to Expand Forum to Full Width

Featured