You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to https://github.com/dotnet/corefx/issues/10981, I copied the implementation from corefx/src/System.Net.Sockets/tests/FunctionalTests/UnixDomainSocketTest.cs and use it locally like below. (I'm using dotnet core 2.0.0 on Ubuntu)
Operation not supported
at System.Net.Sockets.Socket.UpdateStatusAfterSocketErrorAndThrowException(SocketError error, String callerName)
at System.Net.Sockets.Socket.Listen(Int32 backlog)
at test01.Program.Main(String[] args) in /home/klein/code/temp/test01/Program.cs:line 106
Is there any solution or workaround to let dotnet core build a domain socket server in Linux? Thanks!
The text was updated successfully, but these errors were encountered:
NonStatic2014
changed the title
Socket.Listen() does not support UNIX d
Socket.Listen() does not support UNIX Domain Socket
Nov 6, 2017
You specified SocketType.Dgram. The error you're getting isn't coming from .NET, it's coming from the OS, saying it doesn't support that configuration. Did you try SocketType.Stream instead of SocketType.Dgram?
and prints out "done", whereas changing that SOCK_STREAM to SOCK_DGRAM results in it printing out "listen: Operation not supported". listen returns EOPNOTSUPP when "The socket is not of a type that supports the listen() operation."
Thank you Stephen! I tried with STREAM + IP protocol and it worked. For IPC, which protocol would be the best one if I'm using SOCK_STREAM and the data between processes will be up to 10KB?
According to https://github.com/dotnet/corefx/issues/10981, I copied the implementation from corefx/src/System.Net.Sockets/tests/FunctionalTests/UnixDomainSocketTest.cs and use it locally like below. (I'm using dotnet core 2.0.0 on Ubuntu)
The exception is something like below:
Is there any solution or workaround to let dotnet core build a domain socket server in Linux? Thanks!
The text was updated successfully, but these errors were encountered: