FrontPage





//#include        <tchar.h>                                       //  for TCHAR etc.                                //
                                                                //                                                //











                                                                //                                                //

//#include        <windows.h>                                     //  for win32API                                  //

#include        <process.h>                                     //  for _beginthreadex()                          //

#pragma         comment(lib,"ws2_32.lib")                       //  for winsock                                   //





#endif                                                          //                                                //
                                                                //                                                //

                                                                //                                                //


{                                                               //                                                //

                                                                //                                                //





                                                                //                                                //



                                                                //                                                //



};                                                              //                                                //



{                                                               //                                                //



                                                                //                                                //



                                                                //                                                //


                                                                //                                                //

    {                                                           //                                                //




    }                                                           //                                                //
                                                                //                                                //

    {                                                           //                                                //




    }                                                           //                                                //
};                                                              //                                                //
                                                                //                                                //





{                                                               //                                                //

                                                                //                                                //



                                                                //                                                //


};                                                              //                                                //
                                                                //                                                //




char main( int argc, char **argv )                              //                                                //
{                                                               //                                                //


                                                                //                                                //





                                                                //                                                //

    {                                                           //                                                //





        }                                                       //                                                //
                                                                //                                                //






        }                                                       //                                                //
                                                                //                                                //






        }                                                       //                                                //
                                                                //                                                //







            }                                                   //                                                //

            {                                                   //                                                //




            }                                                   //                                                //
        }                                                       //                                                //
                                                                //                                                //



        }                                                       //                                                //
                                                                //                                                //



        }                                                       //                                                //
                                                                //                                                //



                                                                //                                                //



        }                                                       //                                                //
                                                                //                                                //




        }                                                       //                                                //
                                                                //                                                //

                                                                //                                                //




        }                                                       //                                                //
                                                                //                                                //

    }                                                           //                                                //
                                                                //                                                //

}                                                               //                                                //



{                                                               //                                                //




                                                                //                                                //



                                                                //                                                //











                                                                //                                                //

                                                                //                                                //

    {                                                           //                                                //




                                                                //                                                //



            {                                                   //                                                //





                }                                               //                                                //
            }                                                   //                                                //
                                                                //                                                //


        }                                                       //                                                //
                                                                //                                                //









            }                                                   //                                                //
                                                                //                                                //




                                                                //                                                //







            }                                                   //                                                //
                                                                //                                                //





            }                                                   //                                                //

            {                                                   //                                                //




            }                                                   //                                                //
                                                                //                                                //

        }                                                       //                                                //
                                                                //                                                //

        {                                                       //                                                //




            }                                                   //                                                //
                                                                //                                                //








                                                                //                                                //








                    }                                           //                                                //
                                                                //                                                //

                         MAX_SESSIONS > sessionIndicator; sessionIndicator++ ) //                                 //
                    {                                           //                                                //








                        }                                       //                                                //
                    }                                           //                                                //
                }                                               //                                                //

                {                                               //                                                //





                }                                               //                                                //
            }                                                   //                                                //
                                                                //                                                //

            {                                                   //                                                //

                {                                               //                                                //




                    {                                           //                                                //




                        }                                       //                                                //

                        {                                       //                                                //


                        }                                       //                                                //





                    }                                           //                                                //








                    }                                           //                                                //


                                                                //                                                //












                    }                                           //                                                //
                }                                               //                                                //
            }                                                   //                                                //

        }                                                       //                                                //
    }                                                           //                                                //
                                                                //                                                //




                                                                //                                                //


}                                                               //                                                //



{                                                               //                                                //







                                                                //                                                //

    {                                                           //                                                //



                                                                //                                                //





        }                                                       //                                                //
                                                                //                                                //






        }                                                       //                                                //
                                                                //                                                //



                                                                //                                                //








        }                                                       //                                                //
                                                                //                                                //










        }                                                       //                                                //
                                                                //                                                //








        }                                                       //                                                //



    }                                                           //                                                //
                                                                //                                                //


                                                                //                                                //


}                                                               //                                                //





{                                                               //                                                //
}                                                               //                                                //


char cl_mt::init( void )                                        //                                                //
{                                                               //                                                //

                                                                //                                                //

    {                                                           //                                                //


                                                                //                                                //

    }                                                           //                                                //
                                                                //                                                //

}                                                               //                                                //


char cl_mt::destroyThreads( void )                              //                                                //
{                                                               //                                                //

                                                                //                                                //




                                                                //                                                //

}                                                               //                                                //



{                                                               //                                                //


}                                                               //                                                //



{                                                               //                                                //



                                                                //                                                //








}                                                               //                                                //



{                                                               //                                                //
}                                                               //                                                //




{                                                               //                                                //

                                                                //                                                //

    {                                                           //                                                //

    }                                                           //                                                //






}                                                               //                                                //



{                                                               //                                                //
}                                                               //                                                //


char cl_client::create_thread( void )                           //                                                //
{                                                               //                                                //

                                                                //                                                //

    {                                                           //                                                //



        }                                                       //                                                //

        {                                                       //                                                //







        }                                                       //                                                //
                                                                //                                                //

    }                                                           //                                                //
                                                                //                                                //

}                                                               //                                                //


char cl_server::create_thread( void )                           //                                                //
{                                                               //                                                //

                                                                //                                                //

    {                                                           //                                                //



        }                                                       //                                                //

        {                                                       //                                                //







        }                                                       //                                                //
                                                                //                                                //

    }                                                           //                                                //
                                                                //                                                //

}                                                               //                                                //
>cl.exe seqSv.cpp
Microsoft(R) 32-bit C/C++ Optimizing Compiler Version 15.00.30729.01 for 80x86
Copyright (C) Microsoft Corporation.  All rights reserved.
seqSv.cpp
Microsoft (R) Incremental Linker Version 9.00.30729.01
Copyright (C) Microsoft Corporation.  All rights reserved.
/out:seqSv.exe
seqSv.obj
>seqSv.exe 3 localhost
vn_pid = 5564
it takes 16 msec.
This is client's thread.
This is server's thread.
waiting for clients.
a client accepted: 127.0.0.1
session ID: 0
sessions: 1
go next selection.
recvBytes = 7.
server rec: Hello.
go next selection.
recvBytes = 7.
client rec: Hello.
This is client's thread.
Client's thread killed.
recvBytes = 0.
session closed.
go next selection.
go next selection.
This is server's thread.
Server's thread killed.
>




トップ   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS