Re: Communicate UNIX from c#

Tech-Archive recommends: Fix windows errors by optimizing your registry



> Another question. My server program in the Unix box accepts only a C
> struct type. How do i pass a struct from C# client application that is
> compatible
> with the server C program?How do i modify my client c# application without
> changing anything in the server?
>
there is no such thing as a 'default way to write a C struct in a file'(the
socket in this case).
I advise you to check which format expect the C server and write the same
thing in C#.

BTW web services are just for that.
every time you want to call a new method or pass a new parameter, you've got
plenty of tedious coding to write.
Web service are real easy to write in C#.
In C it would still be a tedious task but, at least, you will find plenty of
library which makes it 'relatively easy' as far as C program are
concerned...


.



Relevant Pages

  • Re: Socket Programming Problem
    ... number to the server and server increments the number and sends it back to ... the client. ... exit(EXIT_FAILURE); ... if(bind(sockfd, (struct sockaddr*) &server_str, ...
    (comp.unix.programmer)
  • Re: Work progresses on ISO COBOL definition of native support for XML
    ... client program talking to a user and a server program containing 'business ... The XML file replaces a parameter structure passed by other means, ... Three instances of the server program are launched, ...
    (comp.lang.cobol)
  • Error in send and recv(). Please help.
    ... I wrote a client and server program in C. ... The server is actually IPv6 ... struct sockaddr_in6 *in6their; ... int sockfd, numbytes; ...
    (comp.unix.programmer)
  • Remoting/Threading
    ... I am somewhat new to the concept of remoting in c#. ... I have a server program running that updates a database and a binary ... There are going to be 300-400 client machines that will ...
    (microsoft.public.dotnet.languages.csharp)
  • Socket Programming in C
    ... I'm new to socket programming and what I am trying to do is create ... a client and server program that simulates rolling a die. ... struct sockaddr_in ServAddr, ClntAddr; ...
    (comp.unix.programmer)