Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No datagram support in socket #347

Open
FelixGaudin opened this issue Aug 17, 2023 · 0 comments
Open

No datagram support in socket #347

FelixGaudin opened this issue Aug 17, 2023 · 0 comments

Comments

@FelixGaudin
Copy link

The documentation states that using a datagram socket is possible (http://mozart2.org/mozart-v1/doc-1.4.0/op/node11.html#section.type). But when executing the following code :

SFD={New Open.socket init(type: datagram protocol: "udp" time:~1)}

There is an error that comes from the function CompatSocket in this file.

   fun {CompatSocket Domain Type Proto}
      case Domain of 'PF_INET' then
         case Type
         of 'SOCK_STREAM' then
            {New CompatTCPSocketClass init(desc:$) _}
         end
      end
   end

There is no matching for datagram and also no support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant