Skip to content

No datagram support in socket #347

@FelixGaudin

Description

@FelixGaudin

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions