diff --git a/lsocket.pbi b/lsocket.pbi index b98a18e..3ace63a 100644 --- a/lsocket.pbi +++ b/lsocket.pbi @@ -13,6 +13,17 @@ CompilerIf #PB_Compiler_OS <> #PB_OS_Linux CompilerError "Only for Linux" CompilerEndIf +;*********************** +;* The SIGPIPE Signal must be Handled Inside / Ignored +#SIGPIPE = 13 + +Procedure SignalIgnore() + Debug("Signal Ignore") +EndProcedure +;*********************** + +signal_(#SIGPIPE, @SignalIgnore()); + DeclareModule lsocket Structure sockaddr sa_family.w @@ -57,7 +68,7 @@ EndDeclareModule Module lsocket Global NewMap lsockets_server.sockaddr_in() Global NewMap lsockets_client.sockaddr_in() - + Procedure CreateSocket(Port.i, Queuelengt.i = 64, Type.i = #SOCK_STREAM, Protocol.i = #AF_INET, BindedIP.s = "127.0.0.1") ; Return Server Socket < 0 Error Protected SocketID.i SocketID = socket_(Protocol, Type, 0)