CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6
  1. #1
    Join Date
    May 1999
    Location
    Austria
    Posts
    116

    Communicate with UNIX

    I have to communicate with a UNIX-System out of a Windows NT Network. What ist the best and probably the easiest way to install a good communication (Messaging system). It should work in both directions.

    ÖÖÖÖÖ@OOOOOOOOOO00000000ooooooooooo°°°°°.... . . . . . . . . . .

  2. #2
    Join Date
    May 1999
    Posts
    1

    Re: Communicate with UNIX

    TCP/IP protocol
    See the Documentation...


  3. #3
    Join Date
    Apr 1999
    Location
    Arlington, VA
    Posts
    21

    TCP/IP - Message Based Client/Server Overview

    Didi,

    As the previous post indicated, use TCP/IP. Here are some more details and some other things to consider.

    1) To perform simple communication between UNIX an NT, perform socket calls. You will need to create a Server program on your UNIX box, that will run and respond to client requests. Your NT client will connect to the socket, write data to it and wait for the server. When the server gets a connection, it will read data from the client, perform your logic, (perhaps read/ write data from a database) and write data back to the socket. Finally, the client will read data from the socket. Viola, its message based client/server.

    2) Send your data between client and server in a network neutral format, like ASCII strings. If you plan to data send structures, remember that UNIX and NT represent numbers in different formats. Also keep byte packing in mind if sending structures see the /Z options for the Visual C++ compiler.

    3) If you plan on having many clients connect to your server, you probably want the server to spawn off another thread to reply to the client.

    4) You will want to perform significant error handling on your client during each message call. I would recommend performing all message based calls using an architecture layer.

    5) Include some time-out logic in your client program, in case something goes terribly wrong with your server program.

    Hope this helps, I know it’s pretty high level. My company has extensive experience doing this type of message based client/server programming from both Visual C++ and Visual Basic on NT, and HP and SUN server platforms. We offer a complete set of solutions to get your client/server project off the ground. Drop me a line if you would like some sample code, or some help with your project.

    William Walseth
    <a href="mailto:[email protected]</a>




  4. #4
    Join Date
    May 1999
    Location
    Atlanta, GA, USA
    Posts
    443

    Re: Check Samba Server

    Hi.

    Check Samba Server at search engine.
    Samba Server is a server program with TCP/IP.

    At my company, we use this between (Solaris Unix and Digital Unix)
    and Window NT4.0. However, Linux looks like some problem with
    Samba Server.

    HTH.
    -Masaaki Onishi-


  5. #5
    Join Date
    May 1999
    Location
    Austria
    Posts
    116

    Thanx!!!

    Thanx



    ÖÖÖÖÖ@OOOOOOOOOO00000000ooooooooooo°°°°°.... . . . . . . . . . .

  6. #6
    Join Date
    Dec 1999
    Posts
    1

    Re: TCP/IP - Message Based Client/Server Overview

    Hello William.

    This was interesting tip, but mabe i can get more detalized info about it.
    I tried to communicate with you trough e-mail but i get returned mail with error that this email does'nt exists.

    So maybe You can send me some tips.



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured